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.blogCategories.tpl

34 lines
1.1 KiB
Smarty

{**
* Категории блогов
*
* @styles css/blocks.css
*}
{extends file='blocks/block.aside.base.tpl'}
{block name='block_title'}{$aLang.block_category_blog}{/block}
{block name='block_type'}blog-categories{/block}
{block name='block_header_end'}
{if $oUserCurrent and $oUserCurrent->isAdministrator()}
<a href="{router page="admin"}blogcategory/" title="{$aLang.admin_list_blogcategory}" class="icon-cog blog-categories-admin"></a>
{/if}
{/block}
{block name='block_content'}
{if $aBlogCategories}
<ul class="nested-list">
<li class="nested-list-item {if !$oBlogCategoryCurrent}active{/if}">
<a href="{router page='blogs'}">{$aLang.block_category_blog_all} ({$iCountBlogsAll})</a>
</li>
{foreach $aBlogCategories as $oCategory}
<li class="nested-list-item {if $oBlogCategoryCurrent and $oBlogCategoryCurrent->getId()==$oCategory->getId()}active{/if}">
<a style="margin-left: {$oCategory->getLevel()*20}px;" href="{$oCategory->getUrlWeb()}">{$oCategory->getTitle()|escape:'html'} ({$oCategory->getCountBlogs()})</a>
</li>
{/foreach}
</ul>
{else}
No categories {* TODO: Language *}
{/if}
{/block}