2014-07-19 19:50:52 +03:00
|
|
|
{**
|
|
|
|
* Лента
|
|
|
|
*
|
|
|
|
* @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">
|
2014-07-28 19:55:18 +03:00
|
|
|
{include 'components/topic/topic-list.tpl' topics=$topics paging=$aPaging}
|
2014-07-19 19:50:52 +03:00
|
|
|
</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'
|
2014-10-10 19:29:24 +03:00
|
|
|
count = $smarty.local._count
|
|
|
|
classes = "js-{$component}-more"
|
|
|
|
attributes = "data-proxy-last_id=\"{$last->getId()}\""}
|
2014-07-19 19:50:52 +03:00
|
|
|
{/if}
|
|
|
|
{else}
|
2014-10-10 19:29:24 +03:00
|
|
|
{include 'components/alert/alert.tpl' text=$aLang.common.empty mods='empty'}
|
2014-07-19 19:50:52 +03:00
|
|
|
{/if}
|
|
|
|
</div>
|