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

21 lines
671 B
Smarty

{**
* Последняя активность
* Последние топики
*}
{component_define_params params=[ 'topics' ]}
<div class="ls-activity-block-recent-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}
</div>