Ejemplo n.º 1
0
 function render_body($source)
 {
     if (!($body = $source->getBody())) {
         return false;
     }
     $body = $source->isHtml() ? $body : converttext($body);
     //hot words
     if ($hw = AMP_lookup('hotwords')) {
         $body = str_replace(array_keys($hw), array_values($hw), $body);
     }
     return $this->_renderer->p(eval_includes($body), array('class' => $this->_css_class_body));
 }
Ejemplo n.º 2
0
 function _addExtraHeader()
 {
     if (!($extraHeader = eval_includes($this->_template->getPageHeader()))) {
         return false;
     }
     $this->_header->addExtraHtml($extraHeader);
 }
Ejemplo n.º 3
0
 function _getCurrentTemplate()
 {
     if (!isset($this->_current_template_version)) {
         $this->_setCurrentTemplate(evalhtml(eval_includes($this->getHtmlTemplate())));
     }
     return $this->_current_template_version;
 }