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/skin/developer/components/blog/blocks/block.blog-add.tpl
Denis Shakhov 9afb2fe21b Подготовка компонентов к переносу
Относительные пути в extend'ах заменены на независимые вида component@name.template
2015-01-29 13:41:05 +07:00

25 lines
756 B
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.

{**
* Блок с кнопкой добавления блога
*}
{extends 'Component@block.block'}
{block 'block_options' append}
{$mods = "{$mods} blog-add"}
{if ! $oUserCurrent}
{$show = false}
{/if}
{/block}
{block 'block_content'}
{if $oUserCurrent && ($oUserCurrent->getRating() > Config::Get('acl.create.blog.rating') or $oUserCurrent->isAdministrator())}
<p>{$aLang.blog.can_add}</p>
{component 'button' url="{router page='blog'}add/" mods='primary large' text=$aLang.blog.create_blog}
{else}
<p>{lang name='blog.cant_add' rating=Config::Get('acl.create.blog.rating')}</p>
{component 'button' mods='primary large' text=$aLang.blog.create_blog isDisabled=true}
{/if}
{/block}