mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
Последние топики
This commit is contained in:
parent
05d46b661d
commit
b23d16609b
|
@ -20,7 +20,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Обработка блока с комментариями (прямой эфир)
|
* Обработка блока с топиками (прямой эфир)
|
||||||
*
|
*
|
||||||
* @package application.blocks
|
* @package application.blocks
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
|
@ -33,18 +33,15 @@ class BlockActivityRecent extends Block
|
||||||
public function Exec()
|
public function Exec()
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Получаем комментарии
|
* Получаем топики
|
||||||
*/
|
*/
|
||||||
if ($aComments = $this->Comment_GetCommentsOnline('topic', Config::Get('block.stream.row'))) {
|
if ($oTopics = $this->Topic_GetTopicsLast(Config::Get('block.stream.row'))) {
|
||||||
$oViewer = $this->Viewer_GetLocalViewer();
|
$oViewer = $this->Viewer_GetLocalViewer();
|
||||||
$oViewer->Assign('comments', $aComments, true);
|
$oViewer->Assign('topics', $oTopics, true);
|
||||||
/**
|
$sTextResult = $oViewer->Fetch("component@activity.recent-topics");
|
||||||
* Формируем результат в виде шаблона и возвращаем
|
|
||||||
*/
|
|
||||||
$sTextResult = $oViewer->Fetch("component@activity.recent-comments");
|
|
||||||
$this->Viewer_Assign('content', $sTextResult, true);
|
$this->Viewer_Assign('content', $sTextResult, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->SetTemplate('component@activity.block.recent');
|
$this->SetTemplate('component@activity.block.recent');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue