global $bootstrap; if (!empty($bootstrap) AND !$bootstrap->called('template')) { $bootstrap->process_templates(); } // the rest of your code here