<?php use frontend\modules\bbii\controllers\ForumController; use yii\helpers\Html; use frontend\modules\bbii\AppAsset; $assets = AppAsset::register($this); /* @var $this ForumController */ /* @var $model BbiiForum */ $image = 'forum'; if (!isset($model->last_post_id) || ForumController::forumIsRead($model->id)) { $image .= '2'; } else { $image .= '1'; } if ($model->locked) { $image .= 'l'; } if ($model->moderated) { $image .= 'm'; } if (!$model->public) { $image .= 'h'; } ?> <?php if ($model->type) { ?> <div class = "forum well"> <table class="table table-striped table-condensed"> <tr>