From: Roland Häder Date: Mon, 7 Dec 2009 22:16:22 +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=1eec48acf4ae8da969b99668ba76fd3856f1c1d2;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 14891aaf..d7c5875c 100644 --- a/inc/classes/main/template/menu/class_MenuTemplateEngine.php +++ b/inc/classes/main/template/menu/class_MenuTemplateEngine.php @@ -317,7 +317,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla /** * Intializes the menu * - * @param $templateDependency A template to load to satisfy dependencies + * @param $templateDependency A template to load to satisfy dependencies * @return void * @todo Add cache creation here */ @@ -328,14 +328,8 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla // Handle the dependency template $this->handleTemplateDependency('menu', $templateDependency); - // Load the header template for this page - $this->getTemplateInstance()->loadCodeTemplate('menu_global_start'); - - // Set the variable group to page - $this->setVariableGroup('menu'); - - // Set its content in this template instance - $this->assignVariable('menu_start', $this->getTemplateInstance()->getRawTemplateData()); + // Code cleaned up... + $this->partialStub('Cleaned because we do not want templates with partly HTML code.'); } /** @@ -344,14 +338,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla * @return void */ private function finishMenu () { - // Load the header template for this page - $this->getTemplateInstance()->loadCodeTemplate('menu_global_end'); - - // Set the variable group to page - $this->setVariableGroup('menu'); - - // Set its content in this template instance - $this->assignVariable('menu_end', $this->getTemplateInstance()->getRawTemplateData()); + $this->partialStub('Cleaned because we do not want templates with partly HTML code.'); } /** @@ -361,17 +348,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla * @return void */ private function startEntryList ($templateDependency = '') { - // Handle the dependency template - $this->handleTemplateDependency('entries', $templateDependency); - - // Load the header template for this page - $this->getTemplateInstance()->loadCodeTemplate('menu_entries_start'); - - // Set the variable group to page - $this->setVariableGroup('menu'); - - // Set its content in this template instance - $this->assignVariable('entries_start', $this->getTemplateInstance()->getRawTemplateData()); + $this->partialStub('Cleaned because we do not want templates with partly HTML code.'); } /** @@ -380,14 +357,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla * @return void */ private function finishEntryList () { - // Load the header template for this page - $this->getTemplateInstance()->loadCodeTemplate('menu_entries_end'); - - // Set the variable group to page - $this->setVariableGroup('menu'); - - // Set its content in this template instance - $this->assignVariable('entries_end', $this->getTemplateInstance()->getRawTemplateData()); + $this->partialStub('Cleaned because we do not want templates with partly HTML code.'); } /**