View file modules/forum/views/index/forum.php

File size: 1.12Kb
<div class="title"> <?=$forum_title; ?> </div>
<?php if($forums->rowCount() == 0): ?>
<div class="error"><?=Lang::get('forum_no_subforums', 'forum'); ?></div>
<?php else: ?>
<?php foreach($forums as $forum): ?>
<div class="post"><?=System::image('nav.png'); ?> <a href="/forum/section-<?=$forum['id']; ?>"><?=$forum['name']; ?></a>
<?=$this->topicsCounter($forum['id']); ?> 
<?php if(User::level() > 1): ?>
[<a href="/forum/section_actions-<?=$forum['id']; ?>?do=edit">+</a> | <a href="/forum/section_actions-<?=$forum['id']; ?>?do=delete">x</a>]
<?php endif; ?>

<?php if($forum['desc'] != ''): ?>
<br/><span style="font-size: xx-small;"> &nbsp;<?=$forum['desc']; ?></span>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php $pages->view(); ?>
<?php endif; ?>

<div class="block">
<?php if(User::level() > 1): ?>
<?=System::image('nav.png'); ?> <a href="/forum/add_section-<?=$fid?>"><?=Lang::get('forum_add_section', 'forum'); ?></a><br/>
<?php endif ?>
<?=System::image('back.png'); ?> <a href="/forum"><?=Lang::get('forum_title', 'forum'); ?></a><br/>
<?=System::image('back.png'); ?> <a href="/"><?=Lang::get('mainpage'); ?></a><br/>
</div>