1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-05 07:54:24 +03:00
ifhub.club/application/frontend/skin/developer/modals/modal.create.tpl

36 lines
1.2 KiB
Smarty
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{**
* Модальное с меню "Создать"
*
* @styles css/modals.css
*}
{extends file='modals/modal_base.tpl'}
{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}
{block name='modal_content'}
{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">
{$aTopicTypes=$LS->Topic_GetTopicTypes()}
{foreach $aTopicTypes as $oTopicType}
{modal_create_item sName='topic' url=$oTopicType->getUrlForAdd() sTitle=$oTopicType->getName()}
{/foreach}
{modal_create_item sName='blog' sTitle=$aLang.block_create_blog}
{modal_create_item sName='talk' sTitle=$aLang.block_create_talk}
{modal_create_item sName='draft' url="{router page='content'}drafts/" sTitle="{$aLang.topic_menu_drafts} {if $iUserCurrentCountTopicDraft}({$iUserCurrentCountTopicDraft}){/if}"}
{hook run='write_item' isPopup=true}
</ul>
{/block}
{block name='modal_footer'}{/block}