1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-17 13:54:26 +03:00
ifhub.club/application/frontend/skin/developer/components/activity/activity.tpl
2014-10-10 23:29:24 +07:00

32 lines
952 B
Smarty

{**
* Список событий активности
*
* @param array $events
* @param integer $targetId
* @param integer $count
*}
{$component = 'activity'}
{$events = $smarty.local.events}
<div class="{$component} {mod name=$component mods=$smarty.local.mods} {$smarty.local.classes}" {$smarty.local.attributes}>
{if $events}
{* Список *}
<ul class="activity-event-list js-activity-event-list">
{include './event-list.tpl' events=$events}
</ul>
{* Кнопка подгрузки *}
{if $smarty.local.count > Config::Get('module.stream.count_default')}
{$last = end($events)}
{include 'components/more/more.tpl'
count = $smarty.local.count
classes = "js-activity-more"
attributes = "data-proxy-last_id=\"{$last->getId()}\" data-param-target_id=\"{$smarty.local.targetId}\""}
{/if}
{else}
{include 'components/alert/alert.tpl' text=$aLang.common.empty mods='empty'}
{/if}
</div>