1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-12 13:58:19 +03:00
ifhub.club/application/frontend/components/activity/blocks/recent-topics.tpl
2017-03-13 04:11:41 +05:00

23 lines
713 B
Smarty

{**
* Последняя активность
* Последние топики
*}
{component_define_params params=[ 'topics' ]}
{capture 'items'}
{foreach $topics as $topic}
{component 'activity' template='recent-item'
user = $topic->getUser()
topic = $topic
date = $topic->getDatePublish()
classes = 'js-title-topic'
attributes = [
title => {$topic->getText()|strip_tags|trim|truncate:150:'...'|escape}
]}
{foreachelse}
{component 'blankslate' text={lang 'common.empty'} mods='no-background'}
{/foreach}
{/capture}
{component 'item' template='group' items=$smarty.capture.items}