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

File size: 998B
<div class="title"> <?=Lang::get('forum_title', 'forum'); ?> </div>
<?php if(count($forums) == 0): ?>
<div class="error"><?=Lang::get('forum_no_forums', 'forum'); ?></div>
<?php else: ?>
<?php foreach($forums as $forum): ?>
<div class="post"><?=System::image('nav.png'); ?> <a href="/forum/forum-<?=$forum['id']; ?>"><?=$forum['name']; ?></a> <?=$this->internalCounter($forum['id']); ?>
<?php if(User::level() > 1): ?>
 [<a href="/forum/actions-<?=$forum['id']; ?>?do=edit">+</a> | <a href="/forum/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 endif; ?>
<div class="block">
<?php if(User::level() > 1): ?>
<?=System::image('nav.png'); ?> <a href="/forum/index/add_forum"><?=Lang::get('forum_add', 'forum'); ?></a><br/>
<?php endif; ?>
<?=System::image('back.png'); ?> <a href="/"><?=Lang::get('mainpage'); ?></a>
</div>