mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-05 07:54:24 +03:00
32 lines
958 B
Smarty
32 lines
958 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'
|
|
count = $smarty.local._count
|
|
classes = "js-{$component}-more"
|
|
attributes = "data-proxy-last_id=\"{$last->getId()}\""}
|
|
{/if}
|
|
{else}
|
|
{include 'components/alert/alert.tpl' text=$aLang.common.empty mods='empty'}
|
|
{/if}
|
|
</div> |