mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-04-29 23:49:21 +03:00
48 lines
1.3 KiB
Smarty
48 lines
1.3 KiB
Smarty
{**
|
|
* Страница добавления контента
|
|
*}
|
|
|
|
{extends './layout.base.tpl'}
|
|
|
|
{block 'layout_options' append}
|
|
{if $sEvent != 'edit'}
|
|
{$_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
|
|
]}
|
|
|
|
{* Пункт "Отложенные" *}
|
|
{$_items[] = [
|
|
'name' => 'deferred',
|
|
'url' => "{router page='content'}deferred/",
|
|
'text' => $aLang.topic.deferred,
|
|
'count' => $iUserCurrentCountTopicDeferred
|
|
]}
|
|
|
|
{$layoutNav = [[
|
|
name => 'content_form',
|
|
activeItem => $sMenuSubItemSelect,
|
|
items => $_items
|
|
]]}
|
|
{/if}
|
|
{/block}
|
|
|
|
{block 'layout_page_title'}
|
|
{if $sEvent == 'add'}
|
|
{$aLang.topic.add.title.add}
|
|
{else}
|
|
{$aLang.topic.add.title.edit}
|
|
{/if}
|
|
{/block} |