Hi, is there a Smarty code to get the current theme url path. So for example, is there a code that when used such as
{$config.theme_path}
it would output
http://www.example.com/design/themes/mytheme/
Thanks
Hi, is there a Smarty code to get the current theme url path. So for example, is there a code that when used such as
{$config.theme_path}
it would output
http://www.example.com/design/themes/mytheme/
Thanks
Hi, is there a Smarty code to get the current theme url path. So for example, is there a code that when used such as
{$config.theme_path}it would output
http://www.example.com/design/themes/mytheme/Thanks
Take a look at app/functions/fn.common.php, function fn_get_theme_path
There you can see a variable with name of current theme: Settings::instance()->getValue('theme_name', '', $company_id);
Root store path can be found in Registry::get('config.dir');
Not really what I was looking for. It doesn't look like there is one so you have to construct one yourself.
There is a theme name variable so using that you can try the following to get the theme path: -
{$config.current_location}/design/themes/{$settings.theme_name}/