</div> </div> </div> <?php $stack = 0; while ($reply->reply && $stack < 4) { $loggedId = User::loggedId(); if ($reply->reply->receiver_id == $loggedId && $reply->reply->receiver_status == Message::STATUS_REMOVED || $reply->reply->sender_id == $loggedId && $reply->reply->sender_status == Message::STATUS_REMOVED) { $reply = $reply->reply; } else { ?> <div class="row"> <div class="col-sm-2 text-center"> <?php echo Avatar::widget(['author' => $reply->reply->senderUser]); ?> </div> <div class="col-sm-10"> <div class="popover right podium"> <div class="arrow"></div> <div class="popover-title"> <small class="pull-right"><span data-toggle="tooltip" data-placement="top" title="<?php echo Yii::$app->formatter->asDatetime($reply->reply->created_at, 'long'); ?> "><?php echo Yii::$app->formatter->asRelativeTime($reply->reply->created_at); ?> </span></small> <?php echo Html::encode($reply->reply->topic);
$rating = '+' . $rating; } elseif ($rating < 0) { $ratingClass = 'danger'; } $loggedId = User::loggedId(); ?> <div class="row" id="post<?php echo $model->id; ?> "> <div class="col-sm-2 text-center" id="postAvatar<?php echo $model->id; ?> "> <?php echo Avatar::widget(['author' => $model->author, 'showName' => false]); ?> </div> <div class="col-sm-10" id="postContent<?php echo $model->id; ?> "> <div class="popover right podium"> <div class="arrow"></div> <div class="popover-title"> <small class="pull-right"> <span data-toggle="tooltip" data-placement="top" title="<?php echo Yii::$app->formatter->asDatetime($model->created_at, 'long'); ?> "><?php echo Yii::$app->formatter->asRelativeTime($model->created_at);
if (!Yii::$app->user->isGuest) { ?> <br> <div class="row"> <div class="col-sm-12 text-right"> <a href="<?php echo Url::to(['default/post', 'cid' => $category->id, 'fid' => $forum->id, 'tid' => $thread->id]); ?> " class="btn btn-primary btn-lg"><span class="glyphicon glyphicon-leaf"></span> New Reply</a> </div> </div> <br> <div class="row"> <div class="col-sm-2 text-center"> <?php echo Avatar::widget(['author' => User::findMe(), 'showName' => false]); ?> </div> <div class="col-sm-10"> <div class="popover right podium"> <div class="arrow"></div> <div class="popover-title"> <small class="pull-right"><?php echo Html::tag('span', Yii::t('podium/view', 'In a while'), ['data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => Yii::t('podium/view', 'As soon as you click Post Reply')]); ?> </small> <strong><?php echo Yii::t('podium/view', 'Post Quick Reply'); ?> </strong> <?php echo User::findMe()->podiumTag;
if (!Yii::$app->user->isGuest) { ?> <br> <div class="row"> <div class="col-sm-12 text-right"> <a href="<?php echo Url::to(['post', 'cid' => $category->id, 'fid' => $forum->id, 'tid' => $thread->id]); ?> " class="btn btn-primary btn-lg"><span class="glyphicon glyphicon-leaf"></span> New Reply</a> </div> </div> <br> <div class="row"> <div class="col-sm-2 text-center"> <?php echo Avatar::widget(['author' => $podiumUser, 'showName' => false]); ?> </div> <div class="col-sm-10"> <div class="popover right podium"> <div class="arrow"></div> <div class="popover-title"> <small class="pull-right"><?php echo Html::tag('span', Yii::t('podium/view', 'In a while'), ['data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => Yii::t('podium/view', 'As soon as you click Post Reply')]); ?> </small> <strong><?php echo Yii::t('podium/view', 'Post Quick Reply'); ?> </strong> <?php echo $podiumUser->getPodiumTag();
echo $this->render('/elements/profile/_navbar', ['active' => 'messages']); ?> </div> <div class="col-sm-9"> <?php echo $this->render('/elements/messages/_navbar', ['active' => 'view']); ?> <br> <div <?php echo Helper::replyBgd(); ?> > <div class="row"> <div class="col-sm-3 text-center"> <?php echo Avatar::widget(['author' => $model->sender]); ?> </div> <div class="col-sm-9"> <div class="popover right podium"> <div class="arrow"></div> <div class="popover-title"> <small class="pull-right"><span data-toggle="tooltip" data-placement="top" title="<?php echo Yii::$app->formatter->asDatetime($model->created_at, 'long'); ?> "><?php echo Yii::$app->formatter->asRelativeTime($model->created_at); ?> </span></small> <?php echo Html::encode($model->topic);
foreach ($words as $word) { $content = preg_replace("/{$word}/", '*#*&*?*' . $word . '*%*(*!*', $content); } $content = str_replace(['*#*&*?*', '*%*(*!*'], ['<mark>', '</mark>'], $content); } ?> <div class="row" id="post<?php echo $model->postData->id; ?> "> <div class="col-sm-2 text-center" id="postAvatar<?php echo $model->postData->id; ?> "> <?php echo Avatar::widget(['author' => $model->postData->user, 'showName' => false]); ?> </div> <div class="col-sm-10" id="postContent<?php echo $model->postData->id; ?> "> <div class="popover right podium"> <div class="arrow"></div> <div class="popover-title"> <small class="pull-right"> <?php echo Html::tag('span', Yii::$app->formatter->asRelativeTime($model->postData->created_at), ['data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => Yii::$app->formatter->asDatetime($model->postData->created_at, 'long')]); if ($model->postData->edited && $model->postData->edited_at) { ?> <em>(<?php