X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Ftemplate%2Fmenu%2Fclass_MenuTemplateEngine.php;h=305ceb25887ff193b613c4363370582b322f5c9c;hp=fdcaf207a81cf70a74892afa27fd279c5bb3bf35;hb=8dfaae4f720bbcc7be53c07f3242bc2a07d1b6ce;hpb=2c7ab1828223d7cf023ffec9468e859f8c5ea5d8 diff --git a/inc/classes/main/template/menu/class_MenuTemplateEngine.php b/inc/classes/main/template/menu/class_MenuTemplateEngine.php index fdcaf207..305ceb25 100644 --- a/inc/classes/main/template/menu/class_MenuTemplateEngine.php +++ b/inc/classes/main/template/menu/class_MenuTemplateEngine.php @@ -35,6 +35,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla private $subNodes = array( 'entry-list', 'entry', + 'entry-id', 'entries-content', 'header', 'footer', @@ -526,21 +527,10 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla /** * Starts the menu property 'entry' * - * @param $id Id of the menu * @return void */ - private function startEntry ($id) { - // Set id as current - $this->curr['entry_id'] = $id; - - // Load the entry template for this page - $this->getTemplateInstance()->loadCodeTemplate('menu_entry_' . $id . '_start'); - - // Set the variable group to page - $this->setVariableGroup('menu'); - - // Set its content in this template instance - $this->assignVariable('entry_start_' . $this->curr['id'], $this->getTemplateInstance()->getRawTemplateData()); + private function startEntry () { + $this->partialStub('Cleared due to XML rewrite.'); } /** @@ -549,15 +539,9 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla * @return void */ private function finishEntry () { - // Load the entry template for this page - $this->getTemplateInstance()->loadCodeTemplate('menu_entry_' . $this->curr['entry_id'] . '_end'); - - // Set the variable group to page - $this->setVariableGroup('menu'); - - // Set its content in this template instance - $this->assignVariable('entry_end_' . $this->curr['id'], $this->getTemplateInstance()->getRawTemplateData()); + $this->partialStub('Cleared due to XML rewrite.'); } + /** * Starts the menu property 'anchor' *