mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-04 23:44:25 +03:00
20 lines
502 B
Smarty
20 lines
502 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}
|
|
|
|
{component 'pagination' paging=$smarty.local.paging classes='js-pagination-topics'}
|
|
{else}
|
|
{component 'alert' text=$aLang.common.empty mods='empty'}
|
|
{/if} |