Add URL template include (v. 2.72)
When adding or editing a template in the Custom Template box in the 'Template' area of the storeadmin, you can use the following modification to add an include code to represent your web site URL. For instance, if your web site is http://www.clientsite.com, this modification will allow you to add:
to the Custom Template box to represent:
or you could add:
to the Custom Template box to represent:
To create this mod, open the template.php page in the /storeadmin/ area, and just under the line:
$custom_contents = str_replace ("%VIEW_CONTENT%", '', $custom_contents);
add the line:
$custom_contents = str_replace ("%SITE_URL%", '<' .'?php echo $' .'URL; ?' .'>', $custom_contents);
And just under the line:
$contents = str_replace ('', "%VIEW_CONTENT%", $contents);
add the line:
$contents = str_replace ('<' .'?php echo $' .'URL; ?' .'>', "%SITE_URL%", $contents);
Save the file. Now, when you add %SITE_URL% to your template, it will be replaced by the actual site URL in the Web Site URL field in your Site Settings.

