]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/template/menu/class_MenuTemplateEngine.php
More methods cleared due to XML rewrite
[core.git] / inc / classes / main / template / menu / class_MenuTemplateEngine.php
index 84e94e21f1216fad404858eedd12d87e103a7bf8..305ceb25887ff193b613c4363370582b322f5c9c 100644 (file)
@@ -35,11 +35,18 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        private $subNodes = array(
                'entry-list',
                'entry',
+               'entry-id',
                'entries-content',
                'header',
                'footer',
+               'footer-id',
+               'footer-class',
+               'footer-text',
                'block',
                'title',
+               'title-id',
+               'title-class',
+               'title-text',
                'design',
                'text',
                'advert',
@@ -461,22 +468,10 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        /**
         * Starts the menu property 'title'
         *
-        * @param       $id             Id of the menu
-        * @param       $class  The title to add to the menu
         * @return      void
         */
-       private function startTitle ($id, $class) {
-               // Set id as current
-               $this->curr['id'] = $id;
-
-               // Load the title template for this page
-               $this->getTemplateInstance()->loadCodeTemplate('menu_title_' . $id . '_start');
-
-               // Set the variable group to page
-               $this->setVariableGroup('menu');
-
-               // Set its content in this template instance
-               $this->assignVariable('title_start_' . $this->curr['id'], $this->getTemplateInstance()->getRawTemplateData());
+       private function startTitle () {
+               $this->partialStub('Cleared due to XML rewrite.');
        }
 
        /**
@@ -485,14 +480,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
         * @return      void
         */
        private function finishTitle () {
-               // Load the title template for this page
-               $this->getTemplateInstance()->loadCodeTemplate('menu_title_' . $this->curr['id'] . '_end');
-
-               // Set the variable group to page
-               $this->setVariableGroup('menu');
-
-               // Set its content in this template instance
-               $this->assignVariable('title_end_' . $this->curr['id'], $this->getTemplateInstance()->getRawTemplateData());
+               $this->partialStub('Cleared due to XML rewrite.');
        }
 
        /**
@@ -539,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.');
        }
 
        /**
@@ -562,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'
         *