public function hookLeftColumn($params) { if (Module::isInstalled('smartblog') != 1) { $this->smarty->assign(array('smartmodname' => $this->name)); return $this->display(__FILE__, 'views/templates/front/install_required.tpl'); } else { if (!$this->isCached('smartblogarchive.tpl', $this->getCacheId())) { $view_data = array(); $id_lang = $this->context->language->id; $SmartBlogPost = new SmartBlogPost(); $archives = $SmartBlogPost->getArchive(); $this->smarty->assign(array('archives' => $archives)); } return $this->display(__FILE__, 'views/templates/front/smartblogarchive.tpl', $this->getCacheId()); } }