From: Roland Häder Date: Mon, 7 Dec 2009 22:12:50 +0000 (+0000) Subject: Cleaned up because we do not want templates with partly HTML code X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=218e67a7a94b66f561bd3f96ecaf24959d767aff;p=core.git Cleaned up because we do not want templates with partly HTML code --- diff --git a/inc/classes/main/template/menu/class_MenuTemplateEngine.php b/inc/classes/main/template/menu/class_MenuTemplateEngine.php index 597b0149..14891aaf 100644 --- a/inc/classes/main/template/menu/class_MenuTemplateEngine.php +++ b/inc/classes/main/template/menu/class_MenuTemplateEngine.php @@ -293,8 +293,8 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla /** * Handles the template dependency for given node * - * @param $node The node we should load a dependency template - * @param $templateDependency A template to load to satisfy dependencies + * @param $node The node we should load a dependency template + * @param $templateDependency A template to load to satisfy dependencies * @return void */ private function handleTemplateDependency ($node, $templateDependency) { @@ -396,23 +396,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla * @return void */ private function startBlockHeader () { - // Do we have a template instance? - if (is_null($this->getTemplateInstance())) { - // Init template instance for underlaying web templates - $templateInstance = ObjectFactory::createObjectByConfiguredName('web_template_class'); - - // Set it in this template engine - $this->setTemplateInstance($templateInstance); - } // END - if - - // Load the header template for this page - $this->getTemplateInstance()->loadCodeTemplate('menu_header_start'); - - // Set the variable group to page - $this->setVariableGroup('menu'); - - // Set its content in this template instance - $this->assignVariable('header', $this->getTemplateInstance()->getRawTemplateData()); + $this->partialStub('Cleaned because we do not want templates with partly HTML code.'); } /** @@ -421,14 +405,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla * @return void */ private function finishBlockHeader () { - // Load the header template for this page - $this->getTemplateInstance()->loadCodeTemplate('menu_header_end'); - - // Set the variable group to page - $this->setVariableGroup('menu'); - - // Set its content in this template instance - $this->assignVariable('header_end', $this->getTemplateInstance()->getRawTemplateData()); + $this->partialStub('Cleaned because we do not want templates with partly HTML code.'); } /** @@ -437,23 +414,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla * @return void */ private function startBlockFooter () { - // Do we have a template instance? - if (is_null($this->getTemplateInstance())) { - // Init template instance for underlaying web templates - $templateInstance = ObjectFactory::createObjectByConfiguredName('web_template_class'); - - // Set it in this template engine - $this->setTemplateInstance($templateInstance); - } // END - if - - // Load the footer template for this page - $this->getTemplateInstance()->loadCodeTemplate('menu_footer_start'); - - // Set the variable group to page - $this->setVariableGroup('menu'); - - // Set its content in this template instance - $this->assignVariable('footer', $this->getTemplateInstance()->getRawTemplateData()); + $this->partialStub('Cleaned because we do not want templates with partly HTML code.'); } /** @@ -462,14 +423,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla * @return void */ private function finishBlockFooter () { - // Load the footer template for this page - $this->getTemplateInstance()->loadCodeTemplate('menu_footer_end'); - - // Set the variable group to page - $this->setVariableGroup('menu'); - - // Set its content in this template instance - $this->assignVariable('footer_end', $this->getTemplateInstance()->getRawTemplateData()); + $this->partialStub('Cleaned because we do not want templates with partly HTML code.'); } /**