<div class="title"><b><?=$name; ?></b></div>
<?php if($array->rowCount() == 0): ?>
<div class="error"><?=Lang::get('news_no_articles', 'news'); ?></div>
<?php else: ?>
<?php foreach($array as $category):  ?>
<div class="menu">
<?=System::image('arrow.png'); ?> <a href="/news/article-<?=$category['id']?>"><?=$category['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"><?=Lang::get('news_add_article', 'news'); ?></a><br/>
<?=System::image('nav.png'); ?> <a href="/news/editcat-<?=$catid?>"><?=Lang::get('news_edit_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>