mirror of
https://github.com/Oreolek/ifhub-skin.git
synced 2024-06-29 05:14:59 +03:00
40 lines
1 KiB
Smarty
40 lines
1 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
|
||
|
]}
|
||
|
|
||
|
{$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}
|