2013-05-06 08:45:04 +03:00
|
|
|
|
{**
|
|
|
|
|
* Модальное с меню "Создать"
|
|
|
|
|
*
|
|
|
|
|
* @styles css/modals.css
|
|
|
|
|
*}
|
|
|
|
|
|
2014-04-28 13:34:54 +03:00
|
|
|
|
{extends 'components/modal/modal.tpl'}
|
2013-01-25 22:14:41 +02:00
|
|
|
|
|
2014-10-18 09:07:45 +03:00
|
|
|
|
{block 'modal_id'}modal-write{/block}
|
|
|
|
|
{block 'modal_class'}modal-write js-modal-default{/block}
|
|
|
|
|
{block 'modal_title'}{lang 'modal_create.title'}{/block}
|
2013-02-08 17:43:47 +02:00
|
|
|
|
|
2014-10-18 09:07:45 +03:00
|
|
|
|
{block 'modal_content'}
|
2014-01-04 06:53:07 +02:00
|
|
|
|
{function modal_create_item}
|
2014-10-19 16:52:16 +03:00
|
|
|
|
<li class="write-item-type-{$item}">
|
|
|
|
|
{$sUrl = "{if ! $url}{router page=$item}add{else}{$url}{/if}"}
|
2014-01-04 06:53:07 +02:00
|
|
|
|
|
|
|
|
|
<a href="{$sUrl}" class="write-item-image"></a>
|
|
|
|
|
<a href="{$sUrl}" class="write-item-link">{$sTitle}</a>
|
|
|
|
|
</li>
|
|
|
|
|
{/function}
|
|
|
|
|
|
|
|
|
|
<ul class="write-list clearfix">
|
2014-10-06 18:54:48 +03:00
|
|
|
|
{$types = $LS->Topic_GetTopicTypes()}
|
|
|
|
|
|
|
|
|
|
{foreach $types as $type}
|
2014-10-19 16:52:16 +03:00
|
|
|
|
{modal_create_item item='topic' url=$type->getUrlForAdd() sTitle=$type->getName()}
|
2014-01-11 18:27:27 +02:00
|
|
|
|
{/foreach}
|
2014-10-06 18:54:48 +03:00
|
|
|
|
|
2014-10-19 16:52:16 +03:00
|
|
|
|
{modal_create_item item='blog' sTitle={lang 'modal_create.items.blog'}}
|
|
|
|
|
{modal_create_item item='talk' sTitle={lang 'modal_create.items.talk'}}
|
|
|
|
|
{modal_create_item item='draft' url="{router page='content'}drafts/" sTitle="{$aLang.topic.drafts} {if $iUserCurrentCountTopicDraft}({$iUserCurrentCountTopicDraft}){/if}"}
|
2014-01-04 06:53:07 +02:00
|
|
|
|
|
|
|
|
|
{hook run='write_item' isPopup=true}
|
|
|
|
|
</ul>
|
2013-05-07 02:00:51 +03:00
|
|
|
|
{/block}
|
|
|
|
|
|
2014-10-18 09:07:45 +03:00
|
|
|
|
{block 'modal_footer'}{/block}
|