mirror of
https://github.com/Oreolek/ifhub-skin.git
synced 2024-05-17 16:38:24 +03:00
26 lines
663 B
Smarty
26 lines
663 B
Smarty
|
{**
|
||
|
* Навгиация создания топика
|
||
|
*}
|
||
|
|
||
|
{$items = []}
|
||
|
|
||
|
{* Формируем список пунктов *}
|
||
|
{$topicTypes = $LS->Topic_GetTopicTypes()}
|
||
|
|
||
|
{foreach $topicTypes as $type}
|
||
|
{$items[] = [ 'name' => $type->getCode(), 'url' => $type->getUrlForAdd(), 'text' => $type->getName() ]}
|
||
|
{/foreach}
|
||
|
|
||
|
{* Пункт "Черновики" *}
|
||
|
{$items[] = [
|
||
|
'name' => 'drafts',
|
||
|
'url' => "{router page='content'}drafts/",
|
||
|
'text' => $aLang.topic.drafts,
|
||
|
'count' => $iUserCurrentCountTopicDraft
|
||
|
]}
|
||
|
|
||
|
{component 'nav'
|
||
|
name = 'create'
|
||
|
activeItem = $sMenuSubItemSelect
|
||
|
mods = 'pills'
|
||
|
items = $items}
|