1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00
ifhub.club/application/frontend/skin/synio/blocks/block.blogAdd.tpl

27 lines
778 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.

{**
* Блок с кнопкой добавления блога
*
* @styles css/blocks.css
*}
{extends file='blocks/block.aside.base.tpl'}
{block name='block_type'}blog-add{/block}
{block name='block_options'}
{if ! $oUserCurrent}
{$bBlockNotShow = true}
{/if}
{/block}
{block name='block_content'}
{if $oUserCurrent and ($oUserCurrent->getRating() > {cfg name='acl.create.blog.rating'} or $oUserCurrent->isAdministrator())}
<p>{$aLang.blog_can_add}</p>
<a href="{router page='blog'}add/" class="button button-primary button-large">{$aLang.blog_add}</a>
{else}
<p>{$aLang.blog_cant_add|ls_lang:"rating%%`$oConfig->get('acl.create.blog.rating')`"}</p>
<button class="button button-primary button-large" disabled>{$aLang.blog_add}</button>
{/if}
{/block}