mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 09:24:25 +03:00
23 lines
688 B
Smarty
23 lines
688 B
Smarty
{**
|
|
* Список топиков
|
|
*}
|
|
|
|
{if $aTopics}
|
|
{add_block group='toolbar' name='toolbar/toolbar.topic.tpl' iCountTopic=count($aTopics)}
|
|
|
|
{foreach $aTopics as $oTopic}
|
|
{if $LS->Topic_IsAllowTopicType($oTopic->getType())}
|
|
{$sTemplateType = "topics/topic.type.{$oTopic->getType()}.tpl"}
|
|
|
|
{if $LS->Viewer_TemplateExists($sTemplateType)}
|
|
{include file=$sTemplateType bTopicList=true}
|
|
{else}
|
|
{include 'topics/topic_base.tpl' bTopicList=true}
|
|
{/if}
|
|
{/if}
|
|
{/foreach}
|
|
|
|
{include 'components/pagination/pagination.tpl' aPaging=$aPaging sClasses='js-pagination-topics'}
|
|
{else}
|
|
{include 'components/alert/alert.tpl' mAlerts=$aLang.blog_no_topic sMods='empty'}
|
|
{/if} |