2014-07-28 19:55:18 +03:00
|
|
|
{**
|
|
|
|
* Список топиков
|
|
|
|
*
|
|
|
|
* @param array $topics
|
|
|
|
* @param array $paging
|
|
|
|
*}
|
|
|
|
|
|
|
|
{$topics = $smarty.local.topics}
|
2015-02-10 03:41:16 +02:00
|
|
|
{$paging = $smarty.local.paging}
|
2014-07-28 19:55:18 +03:00
|
|
|
|
|
|
|
{if $topics}
|
2015-01-30 13:57:52 +02:00
|
|
|
{add_block group='toolbar' name='component@toolbar-scrollnav.toolbar.scrollnav' show=count( $topics )}
|
2014-07-28 19:55:18 +03:00
|
|
|
|
|
|
|
{foreach $topics as $topic}
|
|
|
|
{include './topic-type.tpl' topic=$topic isList=true}
|
|
|
|
{/foreach}
|
|
|
|
|
2015-02-10 03:41:16 +02:00
|
|
|
{component 'pagination' total=+$paging.iCountPage current=+$paging.iCurrentPage url="{$paging.sBaseUrl}/page__page__/{$paging.sGetParams}" classes='js-pagination-topics'}
|
2014-07-28 19:55:18 +03:00
|
|
|
{else}
|
2015-04-08 14:41:06 +03:00
|
|
|
{component 'blankslate' text=$aLang.common.empty}
|
2014-07-28 19:55:18 +03:00
|
|
|
{/if}
|