1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 17:34:26 +03:00
ifhub.club/application/frontend/skin/developer/components/feed/feed.tpl
2014-07-28 23:55:18 +07:00

32 lines
965 B
Smarty

{**
* Лента
*
* @param array $topics
* @param integer $count
*}
{$component = 'feed'}
{$topics = $smarty.local.topics}
<div class="{$component} {mod name=$component mods=$smarty.local.mods} {$smarty.local.classes}" {$smarty.local.attributes}>
{if $topics}
{* Список *}
<ul class="{$component}-topic-list js-{$component}-topic-list">
{include 'components/topic/topic-list.tpl' topics=$topics paging=$aPaging}
</ul>
{* Кнопка подгрузки *}
{* TODO: if $smarty.local.count > Config::Get('module.userfeed.count_default') *}
{if count($topics) == Config::Get('module.userfeed.count_default')}
{$last = end($topics)}
{include 'components/more/more.tpl'
iCount = $smarty.local._count
sClasses = "js-{$component}-more"
sAttributes = "data-proxy-last_id=\"{$last->getId()}\""}
{/if}
{else}
{include 'components/alert/alert.tpl' mAlerts=$aLang.common.empty sMods='empty'}
{/if}
</div>