mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-30 21:45:01 +03:00
Issues #125
This commit is contained in:
parent
85bedb24ac
commit
780676c8f8
|
@ -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);
|
$aResult=$this->Topic_GetTopicsCollective($iPage,Config::Get('module.topic.per_page'),$sShowType,$sPeriod=='all' ? null : $sPeriod*60*60*24);
|
||||||
}
|
}
|
||||||
$aTopics=$aResult['collection'];
|
$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"));
|
$oTopicRead->setDateRead(date("Y-m-d H:i:s"));
|
||||||
$this->Topic_SetTopicRead($oTopicRead);
|
$this->Topic_SetTopicRead($oTopicRead);
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* Вызов хуков
|
|
||||||
*/
|
|
||||||
$this->Hook_Run('topic_show',array("oTopic"=>$oTopic));
|
|
||||||
/**
|
/**
|
||||||
* Выставляем SEO данные
|
* Выставляем SEO данные
|
||||||
*/
|
*/
|
||||||
$sTextSeo=strip_tags($oTopic->getText());
|
$sTextSeo=strip_tags($oTopic->getText());
|
||||||
$this->Viewer_SetHtmlDescription(func_text_words($sTextSeo, Config::Get('seo.description_words_count')));
|
$this->Viewer_SetHtmlDescription(func_text_words($sTextSeo, Config::Get('seo.description_words_count')));
|
||||||
$this->Viewer_SetHtmlKeywords($oTopic->getTags());
|
$this->Viewer_SetHtmlKeywords($oTopic->getTags());
|
||||||
|
/**
|
||||||
|
* Вызов хуков
|
||||||
|
*/
|
||||||
|
$this->Hook_Run('topic_show',array("oTopic"=>$oTopic));
|
||||||
/**
|
/**
|
||||||
* Загружаем переменные в шаблон
|
* Загружаем переменные в шаблон
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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);
|
$aResult=$this->Topic_GetTopicsTop($iPage,Config::Get('module.topic.per_page'),$sPeriod=='all' ? null : $sPeriod*60*60*24);
|
||||||
}
|
}
|
||||||
$aTopics=$aResult['collection'];
|
$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);
|
$aResult=$this->Topic_GetTopicsDiscussed($iPage,Config::Get('module.topic.per_page'),$sPeriod=='all' ? null : $sPeriod*60*60*24);
|
||||||
}
|
}
|
||||||
$aTopics=$aResult['collection'];
|
$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'));
|
$aResult=$this->Topic_GetTopicsNew($iPage,Config::Get('module.topic.per_page'));
|
||||||
$aTopics=$aResult['collection'];
|
$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'));
|
$aResult=$this->Topic_GetTopicsGood($iPage,Config::Get('module.topic.per_page'));
|
||||||
$aTopics=$aResult['collection'];
|
$aTopics=$aResult['collection'];
|
||||||
|
/**
|
||||||
|
* Вызов хуков
|
||||||
|
*/
|
||||||
|
$this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics));
|
||||||
/**
|
/**
|
||||||
* Формируем постраничность
|
* Формируем постраничность
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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);
|
$aResult=$this->Topic_GetTopicsPersonal($iPage,Config::Get('module.topic.per_page'),$sShowType,$sPeriod=='all' ? null : $sPeriod*60*60*24);
|
||||||
}
|
}
|
||||||
$aTopics=$aResult['collection'];
|
$aTopics=$aResult['collection'];
|
||||||
|
/**
|
||||||
|
* Вызов хуков
|
||||||
|
*/
|
||||||
|
$this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics));
|
||||||
/**
|
/**
|
||||||
* Формируем постраничность
|
* Формируем постраничность
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -172,6 +172,10 @@ class ActionProfile extends Action {
|
||||||
*/
|
*/
|
||||||
$aResult=$this->Topic_GetTopicsPersonalByUser($this->oUserProfile->getId(),1,$iPage,Config::Get('module.topic.per_page'));
|
$aResult=$this->Topic_GetTopicsPersonalByUser($this->oUserProfile->getId(),1,$iPage,Config::Get('module.topic.per_page'));
|
||||||
$aTopics=$aResult['collection'];
|
$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'));
|
$aResult=$this->Topic_GetTopicsFavouriteByUserId($this->oUserProfile->getId(),$iPage,Config::Get('module.topic.per_page'));
|
||||||
$aTopics=$aResult['collection'];
|
$aTopics=$aResult['collection'];
|
||||||
|
/**
|
||||||
|
* Вызов хуков
|
||||||
|
*/
|
||||||
|
$this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics));
|
||||||
/**
|
/**
|
||||||
* Формируем постраничность
|
* Формируем постраничность
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -66,6 +66,10 @@ class ActionTag extends Action {
|
||||||
*/
|
*/
|
||||||
$aResult=$this->Topic_GetTopicsByTag($sTag,$iPage,Config::Get('module.topic.per_page'));
|
$aResult=$this->Topic_GetTopicsByTag($sTag,$iPage,Config::Get('module.topic.per_page'));
|
||||||
$aTopics=$aResult['collection'];
|
$aTopics=$aResult['collection'];
|
||||||
|
/**
|
||||||
|
* Вызов хуков
|
||||||
|
*/
|
||||||
|
$this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics));
|
||||||
/**
|
/**
|
||||||
* Формируем постраничность
|
* Формируем постраничность
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -65,6 +65,10 @@ class ActionUserfeed extends Action {
|
||||||
* Получаем топики
|
* Получаем топики
|
||||||
*/
|
*/
|
||||||
$aTopics = $this->Userfeed_read($this->oUserCurrent->getId());
|
$aTopics = $this->Userfeed_read($this->oUserCurrent->getId());
|
||||||
|
/**
|
||||||
|
* Вызов хуков
|
||||||
|
*/
|
||||||
|
$this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics));
|
||||||
$this->Viewer_Assign('aTopics', $aTopics);
|
$this->Viewer_Assign('aTopics', $aTopics);
|
||||||
if (count($aTopics)) {
|
if (count($aTopics)) {
|
||||||
$this->Viewer_Assign('iUserfeedLastId', end($aTopics)->getId());
|
$this->Viewer_Assign('iUserfeedLastId', end($aTopics)->getId());
|
||||||
|
@ -97,6 +101,10 @@ class ActionUserfeed extends Action {
|
||||||
* Получаем топики
|
* Получаем топики
|
||||||
*/
|
*/
|
||||||
$aTopics = $this->Userfeed_read($this->oUserCurrent->getId(), null, $iFromId);
|
$aTopics = $this->Userfeed_read($this->oUserCurrent->getId(), null, $iFromId);
|
||||||
|
/**
|
||||||
|
* Вызов хуков
|
||||||
|
*/
|
||||||
|
$this->Hook_Run('topics_list_show',array('aTopics'=>$aTopics));
|
||||||
/**
|
/**
|
||||||
* Загружаем данные в ajax ответ
|
* Загружаем данные в ajax ответ
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue