foreach ($topics as $t) { ?> <div class=forum-topic> <?php echo html::anchor('forum/topic/' . $t->id, $t->title); ?> <br /> <?php echo __('Created by:'); ?> <b><?php echo $t->user->username; ?> </b> <i><?php echo MG::Ago($t->created); ?> </i> </div> <?php } ?> <div> <?php echo html::anchor('forum/category/' . $category->id . '/new_topic', 'Create topic'); ?> </div>
<?php echo $p->content; ?> </div> <div> <?php echo __('Created by:'); ?> <b><?php echo $p->user->username; ?> </b> <i><?php echo MG::Ago($p->created); ?> </i> <?php if ($user->id == $p->user->id) { ?> <?php echo html::anchor('forum/post/' . $p->id . '/edit', 'Edit'); ?> <?php echo html::anchor('forum/post/' . $p->id . '/delete', 'Delete'); ?> <?php } ?>
?> </div> <div class=forum-content> <?php echo $post->content; ?> </div> <div> <?php echo __('Created by:'); echo $post->user->username; ?> <?php echo MG::Ago($post->created); if ($user->id == $post->user->id) { ?> <?php echo html::anchor('forum/post/' . $post->id . '/edit', 'Edit'); ?> <?php echo html::anchor('forum/post/' . $post->id . '/delete', 'Delete'); } ?> </div>