BSTemplate::cache(array_merge($globaltemplates, (array)$fetchtemplates));
BSApp::debug('time for tpl cache: ' . BSFunctions::fetch_microtime_diff($start));
+
+ $header = BSTemplate::fetch('header')->evaluate();
+ $doctype = BSTemplate::fetch('doctype')->evaluate();
+ $headinclude = BSTemplate::fetch('headinclude')->evaluate();
+ $footer = BSTemplate::fetch('footer')->evaluate();
}
// ###################################################################
// #################### Start isso_pre_parse_hook ####################
// the pre-parse hook for ISSO's template engine
-function isso_pre_parse_hook($template, $obj)
+function isso_pre_parse_hook($template)
{
- $globals = array(
- 'header' => BSTemplate::fetch('header')->evaluate(),
- 'doctype' => BSTemplate::fetch('doctype')->evaluate(),
- 'headinclude' => BSTemplate::fetch('headinclude')->evaluate(),
- 'footer' => BSTemplate::fetch('footer')->evaluate()
- );
-
- print_r($globals);
-
- $obj->vars = array_merge($globals, $obj->vars);
-
$template = preg_replace('#\$help\[(.*)\]#', '" . fetch_help_link("\1") . "', $template);
return $template;
}