1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 09:24:25 +03:00
ifhub.club/application/frontend/skin/developer/topics/topic_list.tpl

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}