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