mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-07 17:04:24 +03:00
18 lines
595 B
Smarty
18 lines
595 B
Smarty
{**
|
|
* Навгиация создания топика
|
|
*}
|
|
|
|
{$aTopicTypes = $LS->Topic_GetTopicTypes()}
|
|
{$aItems = []}
|
|
|
|
{foreach $aTopicTypes as $oTopicType}
|
|
{$aItems[] = [ 'name' => $oTopicType->getCode(), 'url' => $oTopicType->getUrlForAdd(), 'text' => $oTopicType->getName() ]}
|
|
{/foreach}
|
|
|
|
{$aItems[] = [ 'name' => 'drafts', 'url' => "{router page='content'}drafts/", 'text' => $aLang.topic.drafts, 'count' => $iUserCurrentCountTopicDraft ]}
|
|
|
|
{include 'components/nav/nav.tpl'
|
|
sName = 'create'
|
|
sActiveItem = $sMenuSubItemSelect
|
|
sMods = 'pills'
|
|
aItems = $aItems} |