1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-08 01:14:24 +03:00
ifhub.club/application/frontend/components/modal-create/modal-create.tpl
Alexander Yakovlev 565ff70c0b Слияние с upstream (LiveStreet/github)
Слил насколько возможно, папка install удалена.
2017-01-11 14:57:03 +07:00

33 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.

{**
* Модальное с меню "Создать"
*}
{capture '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 ls-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>
{/capture}
{component 'modal'
title = {lang 'modal_create.title'}
content = $smarty.capture.modal_content
classes = 'js-modal-default'
mods = 'create'
id = 'modal-write'}