mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 01:14:24 +03:00
34 lines
1.2 KiB
Smarty
34 lines
1.2 KiB
Smarty
|
{**
|
|||
|
* Модальное с меню "Создать"
|
|||
|
*}
|
|||
|
|
|||
|
{extends 'components/modal/modal.tpl'}
|
|||
|
|
|||
|
{block 'modal_id'}modal-write{/block}
|
|||
|
{block 'modal_class'}modal-write js-modal-default{/block}
|
|||
|
{block 'modal_title'}{lang 'modal_create.title'}{/block}
|
|||
|
|
|||
|
{block 'modal_content'}
|
|||
|
{function modal_create_item}
|
|||
|
<li class="write-item-type-{$item}">
|
|||
|
{$url = "{if ! $url}{router page=$item}add{else}{$url}{/if}"}
|
|||
|
|
|||
|
<a href="{$url}" class="write-item-image"></a>
|
|||
|
<a href="{$url}" class="write-item-link">{$title}</a>
|
|||
|
</li>
|
|||
|
{/function}
|
|||
|
|
|||
|
<ul class="write-list clearfix">
|
|||
|
{foreach $LS->Topic_GetTopicTypes() as $type}
|
|||
|
{modal_create_item item='topic' url=$type->getUrlForAdd() title=$type->getName()}
|
|||
|
{/foreach}
|
|||
|
|
|||
|
{modal_create_item item='blog' title={lang 'modal_create.items.blog'}}
|
|||
|
{modal_create_item item='talk' title={lang 'modal_create.items.talk'}}
|
|||
|
{modal_create_item item='draft' url="{router page='content'}drafts/" title="{$aLang.topic.drafts} {if $iUserCurrentCountTopicDraft}({$iUserCurrentCountTopicDraft}){/if}"}
|
|||
|
|
|||
|
{hook run='write_item' isPopup=true}
|
|||
|
</ul>
|
|||
|
{/block}
|
|||
|
|
|||
|
{block 'modal_footer'}{/block}
|