echo $formatter->asText($this->title); ?> </h1> </div> <div id="t<?php echo $topic->id; ?> " class="topic-discussion"> <?php foreach ($posts as $post) { ?> <?php $item['post_count']++; ?> <?php echo Post::widget(['model' => $post, 'topic' => $topic, 'count' => $item['post_count']]); ?> <?php } ?> </div> <?php if (!Yii::$app->getUser()->getIsGuest()) { ?> <?php echo Editor::widget(['activeFormOptions' => ['action' => Url::to(['/topic/default/view', 'id' => $topic->id, '#' => 'postform'])], 'model' => $model, 'messageAttribute' => 'message']); ?> <?php } ?> <div class="pagination-center">