/** * Renders the view. It simply gets all the parameters we've been adding to it * and puts them in the context of the template renderer so that they can be accessed * as normal parameters from within the template * * @return Returns a rendered template */ function render() { // assign all the values $blogSettings = $this->_blogInfo->getSettings(); $templateSet = $blogSettings->getValue("template"); $this->_template->assign($this->_params->getAsArray()); $ts = new TemplateSets(); $storage = new TemplateSetStorage(); if ($ts->isBlogTemplate($templateSet, $this->_blogInfo->getId())) { $blogTemplate = $storage->getTemplateFolder($templateSet, $this->_blogInfo->getId()); } else { $blogTemplate = $storage->getTemplateFolder($templateSet); } $this->_template->assign("blogtemplate", $blogTemplate); parent::render(); }