?> </div> <div class="question-author-box2"> <div class="question-author-time">ответил <a class="muted-link" href="<?php echo Url::toRoute(['/post/default/view', 'id' => $topic->last_post_id, '#' => 'post' . $topic->last_post_id]); ?> "> <time is="time-ago" datetime="<?php echo Yii::$app->formatter->asDatetime($topic->last_post_created_at, 'php:c'); ?> " title="<?php echo Yii::$app->formatter->asDatetime($topic->last_post_created_at, 'long'); ?> "><?php echo $dateTimeAgo->get($topic->last_post_created_at); ?> </time> </a> </div> <div class="question-author-avatar"> <?php echo \cebe\gravatar\Gravatar::widget(['email' => $topic->lastPostUser->email, 'options' => ['alt' => $topic->lastPostUser->username, 'class' => 'avatar', 'width' => 32, 'height' => 32], 'defaultImage' => 'retro', 'size' => 32]); ?> </div> <div class="question-author-info"> <a href="<?php echo Url::toRoute(['/user/default/view', 'id' => $topic->last_post_user_id]); ?> "><?php echo $formatter->asText($topic->last_post_username);
<div class="post-header"> <span class="post-header-user"><a href="<?php echo Url::toRoute(['/user/default/view', 'id' => $post->user_id]); ?> "><?php echo isset($post->user->username) ? $post->user->username : ''; ?> </a></span> написал <span class="post-header-time"><time is="time-ago" datetime="<?php echo Yii::$app->formatter->asDatetime($post->created_at, 'php:c'); ?> " title="<?php echo Yii::$app->formatter->asDatetime($post->created_at, 'long'); ?> "><?php echo $dateTimeAgo->get($post->created_at); ?> </time> <span class="post-header-count"><a class="muted-link" href="<?php echo Url::toRoute(['/post/default/view', 'id' => $post->id, '#' => 'post' . $post->id]); ?> ">#<?php echo $count; ?> </a></span> <?php if ($post->isTopicAuthor) { ?> <span class="post-header-owner">Автор</span> <?php }