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)); }
function _addExtraHeader() { if (!($extraHeader = eval_includes($this->_template->getPageHeader()))) { return false; } $this->_header->addExtraHtml($extraHeader); }
function _getCurrentTemplate() { if (!isset($this->_current_template_version)) { $this->_setCurrentTemplate(evalhtml(eval_includes($this->getHtmlTemplate()))); } return $this->_current_template_version; }