/**
* 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) {
* @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.');
}
/**
* @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.');
}
/**
* @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.');
}
/**
* @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.');
}
/**