mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-12 13:58:19 +03:00
23 lines
713 B
Smarty
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} |