1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-16 13:24:26 +03:00
ifhub.club/application/frontend/skin/developer/blocks/block.blogAdd.tpl

27 lines
796 B
Smarty
Raw Normal View History

{**
* Блок с кнопкой добавления блога
*
* @styles css/blocks.css
*}
2014-01-25 14:39:19 +02:00
{extends 'blocks/block.aside.base.tpl'}
2014-01-25 14:39:19 +02:00
{block 'block_type'}blog-add{/block}
2014-01-25 14:39:19 +02:00
{block 'block_options'}
{if ! $oUserCurrent}
{$bBlockNotShow = true}
{/if}
{/block}
2014-01-25 14:39:19 +02:00
{block 'block_content'}
{if $oUserCurrent and ($oUserCurrent->getRating() > {cfg name='acl.create.blog.rating'} or $oUserCurrent->isAdministrator())}
2014-01-25 14:39:19 +02:00
<p>{$aLang.blog.can_add}</p>
{include 'components/button/button.tpl' sUrl="{router page='blog'}add/" sMods='primary large' sText=$aLang.blog.create_blog}
{else}
<p>{lang name='blog.cant_add' rating=Config::Get('acl.create.blog.rating')}</p>
{include 'components/button/button.tpl' sMods='primary large' sText=$aLang.blog.create_blog bIsDisabled=true}
{/if}
{/block}