1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-28 20:45:00 +03:00
ifhub.club/application/frontend/components/topic/topic-list.tpl
2015-04-08 18:41:30 +07:00

21 lines
609 B
Smarty

{**
* Список топиков
*
* @param array $topics
* @param array $paging
*}
{$topics = $smarty.local.topics}
{$paging = $smarty.local.paging}
{if $topics}
{add_block group='toolbar' name='component@toolbar-scrollnav.toolbar.scrollnav' show=count( $topics )}
{foreach $topics as $topic}
{include './topic-type.tpl' topic=$topic isList=true}
{/foreach}
{component 'pagination' total=+$paging.iCountPage current=+$paging.iCurrentPage url="{$paging.sBaseUrl}/page__page__/{$paging.sGetParams}" classes='js-pagination-topics'}
{else}
{component 'blankslate' text=$aLang.common.empty}
{/if}