2013-06-18 12:26:58 +03:00
|
|
|
|
{**
|
|
|
|
|
* Блок с кнопкой добавления блога
|
|
|
|
|
*
|
|
|
|
|
* @styles css/blocks.css
|
|
|
|
|
*}
|
|
|
|
|
|
2014-01-25 14:39:19 +02:00
|
|
|
|
{extends 'blocks/block.aside.base.tpl'}
|
2013-06-18 12:26:58 +03:00
|
|
|
|
|
2014-01-25 14:39:19 +02:00
|
|
|
|
{block 'block_type'}blog-add{/block}
|
2013-06-18 12:26:58 +03:00
|
|
|
|
|
2014-01-25 14:39:19 +02:00
|
|
|
|
{block 'block_options'}
|
2013-06-18 12:26:58 +03:00
|
|
|
|
{if ! $oUserCurrent}
|
|
|
|
|
{$bBlockNotShow = true}
|
|
|
|
|
{/if}
|
|
|
|
|
{/block}
|
|
|
|
|
|
2014-01-25 14:39:19 +02:00
|
|
|
|
{block 'block_content'}
|
2013-06-18 12:26:58 +03:00
|
|
|
|
{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>
|
2013-06-18 12:26:58 +03:00
|
|
|
|
|
2014-05-15 19:45:14 +03:00
|
|
|
|
{include 'components/button/button.tpl' sUrl="{router page='blog'}add/" sMods='primary large' sText=$aLang.blog.create_blog}
|
2013-06-18 12:26:58 +03:00
|
|
|
|
{else}
|
2014-06-11 12:43:59 +03:00
|
|
|
|
<p>{lang name='blog.cant_add' rating=Config::Get('acl.create.blog.rating')}</p>
|
2013-06-18 12:26:58 +03:00
|
|
|
|
|
2014-05-15 19:45:14 +03:00
|
|
|
|
{include 'components/button/button.tpl' sMods='primary large' sText=$aLang.blog.create_blog bIsDisabled=true}
|
2013-06-18 12:26:58 +03:00
|
|
|
|
{/if}
|
|
|
|
|
{/block}
|