1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-16 21:34:25 +03:00
ifhub.club/application/frontend/skin/developer/components/activity/activity.tpl
2014-07-18 22:45:16 +07:00

30 lines
951 B
Smarty

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