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
|
|
|
|
|
2013-05-06 07:33:38 +03:00
|
|
|
|
{block name='modal_id'}modal-write{/block}
|
|
|
|
|
{block name='modal_class'}modal-write js-modal-default{/block}
|
|
|
|
|
{block name='modal_title'}{$aLang.block_create}{/block}
|
2013-02-08 17:43:47 +02:00
|
|
|
|
|
2013-05-06 07:33:38 +03:00
|
|
|
|
{block name='modal_content'}
|
2014-01-04 06:53:07 +02:00
|
|
|
|
{function modal_create_item}
|
|
|
|
|
<li class="write-item-type-{$sName}">
|
|
|
|
|
{$sUrl = "{if ! $url}{router page=$sName}add{else}{$url}{/if}"}
|
|
|
|
|
|
|
|
|
|
<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-01-11 18:27:27 +02:00
|
|
|
|
{$aTopicTypes=$LS->Topic_GetTopicTypes()}
|
|
|
|
|
{foreach $aTopicTypes as $oTopicType}
|
|
|
|
|
{modal_create_item sName='topic' url=$oTopicType->getUrlForAdd() sTitle=$oTopicType->getName()}
|
|
|
|
|
{/foreach}
|
2014-01-04 06:53:07 +02:00
|
|
|
|
{modal_create_item sName='blog' sTitle=$aLang.block_create_blog}
|
|
|
|
|
{modal_create_item sName='talk' sTitle=$aLang.block_create_talk}
|
2014-07-28 19:55:18 +03:00
|
|
|
|
{modal_create_item sName='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}
|
|
|
|
|
|
|
|
|
|
{block name='modal_footer'}{/block}
|