{** * Список событий активности * * @param array $events * @param integer $targetId * @param integer $count * * @param string $mods * @param string $classes * @param string $attributes *} {$component = 'activity'} {$events = $smarty.local.events} {$moreCount = $smarty.local.count - count($events)}
{if $events} {* Список *} {* Кнопка подгрузки *} {if $smarty.local.count > Config::Get('module.stream.count_default')} {$last = end($events)} {component 'more' count = $moreCount classes = 'js-activity-more' ajaxParams = [ 'last_id' => $last->getId(), 'target_id' => $smarty.local.targetId ]} {/if} {else} {component 'blankslate' text=$aLang.common.empty} {/if}