Originally Posted by
lat9
Darn it, I didn't consider template-cloning. That function is intended to "direct" the template's observer-class as to whether or not it's to apply the template modifications to the various price and HTML elements.
I'll need to ponder this to determine the "best" solution.
What about an additional check or explode in /includes/functions/zca_bootstrap_functions.php with an extra entry of some sort in the template_info.php with comments that say "if using the Clone a Template plugin, you need to add the Target Template in zca_bootstrap_functions.php first".
Maybe something like: (not tested)
PHP Code:
function zca_bootstrap_active()
{
return (isset($GLOBALS['template_dir']) && $GLOBALS['template_dir'] == (in_array($GLOBALS['template_dir'],explode(",",'bootstrap,bootstrap_test')) ));
}
Bookmarks