diff --git a/classes/actions/ActionBlog.class.php b/classes/actions/ActionBlog.class.php index 2abe51ac..889af0f4 100644 --- a/classes/actions/ActionBlog.class.php +++ b/classes/actions/ActionBlog.class.php @@ -598,6 +598,10 @@ class ActionBlog extends Action { $aResult=$this->Topic_GetTopicsCollective($iPage,Config::Get('module.topic.per_page'),$sShowType,$sPeriod=='all' ? null : $sPeriod*60*60*24); } $aTopics=$aResult['collection']; + /** + * Вызов хуков + */ + $this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics)); /** * Формируем постраничность */ @@ -723,16 +727,16 @@ class ActionBlog extends Action { $oTopicRead->setDateRead(date("Y-m-d H:i:s")); $this->Topic_SetTopicRead($oTopicRead); } - /** - * Вызов хуков - */ - $this->Hook_Run('topic_show',array("oTopic"=>$oTopic)); /** * Выставляем SEO данные */ $sTextSeo=strip_tags($oTopic->getText()); $this->Viewer_SetHtmlDescription(func_text_words($sTextSeo, Config::Get('seo.description_words_count'))); $this->Viewer_SetHtmlKeywords($oTopic->getTags()); + /** + * Вызов хуков + */ + $this->Hook_Run('topic_show',array("oTopic"=>$oTopic)); /** * Загружаем переменные в шаблон */ diff --git a/classes/actions/ActionIndex.class.php b/classes/actions/ActionIndex.class.php index b14e435f..34f341f8 100644 --- a/classes/actions/ActionIndex.class.php +++ b/classes/actions/ActionIndex.class.php @@ -119,6 +119,10 @@ class ActionIndex extends Action { $aResult=$this->Topic_GetTopicsTop($iPage,Config::Get('module.topic.per_page'),$sPeriod=='all' ? null : $sPeriod*60*60*24); } $aTopics=$aResult['collection']; + /** + * Вызов хуков + */ + $this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics)); /** * Формируем постраничность */ @@ -166,6 +170,10 @@ class ActionIndex extends Action { $aResult=$this->Topic_GetTopicsDiscussed($iPage,Config::Get('module.topic.per_page'),$sPeriod=='all' ? null : $sPeriod*60*60*24); } $aTopics=$aResult['collection']; + /** + * Вызов хуков + */ + $this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics)); /** * Формируем постраничность */ @@ -200,6 +208,10 @@ class ActionIndex extends Action { */ $aResult=$this->Topic_GetTopicsNew($iPage,Config::Get('module.topic.per_page')); $aTopics=$aResult['collection']; + /** + * Вызов хуков + */ + $this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics)); /** * Формируем постраничность */ @@ -239,6 +251,10 @@ class ActionIndex extends Action { */ $aResult=$this->Topic_GetTopicsGood($iPage,Config::Get('module.topic.per_page')); $aTopics=$aResult['collection']; + /** + * Вызов хуков + */ + $this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics)); /** * Формируем постраничность */ diff --git a/classes/actions/ActionPersonalBlog.class.php b/classes/actions/ActionPersonalBlog.class.php index 4fd84989..24811577 100644 --- a/classes/actions/ActionPersonalBlog.class.php +++ b/classes/actions/ActionPersonalBlog.class.php @@ -103,6 +103,10 @@ class ActionPersonalBlog extends Action { $aResult=$this->Topic_GetTopicsPersonal($iPage,Config::Get('module.topic.per_page'),$sShowType,$sPeriod=='all' ? null : $sPeriod*60*60*24); } $aTopics=$aResult['collection']; + /** + * Вызов хуков + */ + $this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics)); /** * Формируем постраничность */ diff --git a/classes/actions/ActionProfile.class.php b/classes/actions/ActionProfile.class.php index 011f84b4..3d03aee7 100644 --- a/classes/actions/ActionProfile.class.php +++ b/classes/actions/ActionProfile.class.php @@ -172,6 +172,10 @@ class ActionProfile extends Action { */ $aResult=$this->Topic_GetTopicsPersonalByUser($this->oUserProfile->getId(),1,$iPage,Config::Get('module.topic.per_page')); $aTopics=$aResult['collection']; + /** + * Вызов хуков + */ + $this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics)); /** * Формируем постраничность */ @@ -244,6 +248,10 @@ class ActionProfile extends Action { */ $aResult=$this->Topic_GetTopicsFavouriteByUserId($this->oUserProfile->getId(),$iPage,Config::Get('module.topic.per_page')); $aTopics=$aResult['collection']; + /** + * Вызов хуков + */ + $this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics)); /** * Формируем постраничность */ diff --git a/classes/actions/ActionTag.class.php b/classes/actions/ActionTag.class.php index 753ee361..26fc4bef 100644 --- a/classes/actions/ActionTag.class.php +++ b/classes/actions/ActionTag.class.php @@ -66,6 +66,10 @@ class ActionTag extends Action { */ $aResult=$this->Topic_GetTopicsByTag($sTag,$iPage,Config::Get('module.topic.per_page')); $aTopics=$aResult['collection']; + /** + * Вызов хуков + */ + $this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics)); /** * Формируем постраничность */ diff --git a/classes/actions/ActionUserfeed.class.php b/classes/actions/ActionUserfeed.class.php index cbca02c3..18d1bae8 100644 --- a/classes/actions/ActionUserfeed.class.php +++ b/classes/actions/ActionUserfeed.class.php @@ -65,6 +65,10 @@ class ActionUserfeed extends Action { * Получаем топики */ $aTopics = $this->Userfeed_read($this->oUserCurrent->getId()); + /** + * Вызов хуков + */ + $this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics)); $this->Viewer_Assign('aTopics', $aTopics); if (count($aTopics)) { $this->Viewer_Assign('iUserfeedLastId', end($aTopics)->getId()); @@ -97,6 +101,10 @@ class ActionUserfeed extends Action { * Получаем топики */ $aTopics = $this->Userfeed_read($this->oUserCurrent->getId(), null, $iFromId); + /** + * Вызов хуков + */ + $this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics)); /** * Загружаем данные в ajax ответ */