/** * Renders the final page output * * @return string The rendered page; */ public function render() { $marker = array('###PAGETITLE###' => $this->pageTitle, '###CONTENT###' => $this->content, '###BASEURL###' => $this->configuration['baseUrl'], '###ANALYTICS###' => ''); if (isset($this->configuration['analytics']) && strlen($this->configuration['analytics'])) { $marker['###ANALYTICS###'] = $this->configuration['analytics']; } $view = new TemplateView(); $view->addMarkerHandler($this); $view->setTemplate($this->template); $view->setMarker($marker); return $view->render(); }