mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 01:14: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} |