public function hookdisplaySmartAfterPost($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('smartblogrelatedposts.tpl', $this->getCacheId())) {
             $id_cat = BlogCategory::getCategoryNameByPost(Tools::getvalue('id_post'));
             $id_lang = $this->context->language->id;
             $posts = SmartBlogPost::getRelatedPosts($id_lang, $id_cat, Tools::getvalue('id_post'));
             $this->smarty->assign(array('posts' => $posts));
         }
         return $this->display(__FILE__, 'views/templates/front/smartblogrelatedposts.tpl', $this->getCacheId());
     }
 }