mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-13 06:18:18 +03:00
21 lines
671 B
Smarty
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> |