1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub-skin.git synced 2024-07-03 07:14:58 +03:00
ifhub-skin/components/activity/blocks/recent-comments.tpl

23 lines
719 B
Smarty

{**
* Последняя активность
* Топики отсортированные по времени последнего комментария
*}
{component_define_params params=[ 'comments' ]}
{capture 'items'}
{foreach $comments as $comment}
{$topic = $comment->getTarget()}
{component 'activity' template='blocks/recent-comment'
user = $comment->getUser()
topic = $topic
commentN = $comment->getID()
date = $comment->getDate()}
{foreachelse}
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
{/foreach}
{/capture}
{component 'item' template='group' items=$smarty.capture.items}