1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-04 23:44:25 +03:00
ifhub.club/application/frontend/skin/developer/components/topic/topic-list.tpl
2014-10-22 21:56:53 +07:00

20 lines
546 B
Smarty

{**
* Список топиков
*
* @param array $topics
* @param array $paging
*}
{$topics = $smarty.local.topics}
{if $topics}
{add_block group='toolbar' name='components/toolbar-scrollnav/toolbar.scrollnav.tpl' show=count( $topics )}
{foreach $topics as $topic}
{include './topic-type.tpl' topic=$topic isList=true}
{/foreach}
{include 'components/pagination/pagination.tpl' aPaging=$smarty.local.paging classes='js-pagination-topics'}
{else}
{include 'components/alert/alert.tpl' text=$aLang.common.empty mods='empty'}
{/if}