<div class="title"><b><?=Lang::get('news_categories', 'news'); ?></b></div>
<?php if($array->rowCount() == 0): ?>
<div class="menu"><?=Lang::get('news_no_categories', 'news'); ?></div>
<?php else: ?>
<?php foreach ($array as $categories): ?>
<div class="menu">
&raquo; <a href="/news/category-<?=$categories['id']?>"><?=$categories['name']; ?></a>
</div>
<?php endforeach; ?>
<?=$pages->view(); ?>
<?php endif; ?>
<div class="block">
<?php if(User::loged() and User::level() > 1): ?>
<?=System::image('nav.png'); ?> <a href="/news/index/add_category"><?=Lang::get('news_add_category', 'news'); ?></a><br/>
<?php endif; ?>
<?=System::image('back.png'); ?> <a href="/news"><?=Lang::get('news_title', 'news'); ?></a><br/>
<?=System::image('back.png'); ?> <a href="/"><?=Lang::get('mainpage'); ?></a>
</div>