- // 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());
- }
-
- /**
- * Finishes the menu block header
- *
- * @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());