hello all....
I'm using the sts template system and i love it...
only thing that i miss (or could not find :-) is a way to change bottons and images for each template.
keeping the option to switch the template off reverting to stock osc..
so coded it , and it works great...
here it is :
in includes/functions/html_output.php
put :
//BOF STS MOD TO DISPLAY IMAGES FROM TEMPLATE DIR ONLY IF THEY EXIST
// YOU NEED TO PUT THEM IN THE FULL PATH LIKE catalog/includes/sts_templates/test/includes/languages/dutch/images/buttons/button_buy_now.gif
if (MODULE_STS_DEFAULT_STATUS=="true") {
if ($_GET['sts_template']=="") {
if (file_exists('includes/sts_templates/'.MODULE_STS_TEMPLATE_FOLDER.'/'.$src)) {
$src='includes/sts_templates/'.MODULE_STS_TEMPLATE_FOLDER.'/'.$src;
}
} else {
if (file_exists('includes/sts_templates/'.$_GET['sts_template'].'/'.$src)) {
$src='includes/sts_templates/'.$_GET['sts_template'].'/'.$src;
}
}
}
//EOF STS MOD
directly after :
function tep_image($src, $alt = '', $width = '', $height = '', $params = '') {
thats it ... if you have a image in the right template dir it uses it , otherwise it picks the origenal.
tested in stock osc and imagemagic.
Let me know if you found it usefull , maybe post it to the contribution...
grtx , arnold