|
|
@ -1,17 +1,13 @@ |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
|
|
use zertex\avatar_generator\AvatarGenerator; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* @var $item \common\modules\blog\widgets\CommentView */ |
|
|
|
/* @var $item \common\modules\blog\widgets\CommentView */ |
|
|
|
/* @var $child integer */ |
|
|
|
/* @var $child integer */ |
|
|
|
|
|
|
|
|
|
|
|
$avatar = new AvatarGenerator(); |
|
|
|
|
|
|
|
?> |
|
|
|
?> |
|
|
|
|
|
|
|
|
|
|
|
<div data-id="<?= $item->comment->id ?>" class="blog-comment <?= $child ? 'blog-comment-child' : 'blog-comment-parent' ?>" style="margin-left: <?= $child * 30 ?>px">
|
|
|
|
<div data-id="<?= $item->comment->id ?>" class="blog-comment <?= $child ? 'blog-comment-child' : 'blog-comment-parent' ?>" style="margin-left: <?= $child * 30 ?>px">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="media mb-4"> |
|
|
|
<div class="media mb-4"> |
|
|
|
<img class="d-flex mr-3 rounded-circle blog-comment-avatar" src="<?= $avatar->show($item->comment->user_id->username) ?>" alt="">
|
|
|
|
<img class="d-flex mr-3 rounded-circle blog-comment-avatar" src="<?= Yii::$app->avatar->show($item->comment->user->username) ?>" alt="">
|
|
|
|
<div class="media-body"> |
|
|
|
<div class="media-body"> |
|
|
|
<a name="comment_<?= $item->comment->id ?>"></a>
|
|
|
|
<a name="comment_<?= $item->comment->id ?>"></a>
|
|
|
|
<h5 class="mt-0"><?= $item->comment->user->username ?> |
|
|
|
<h5 class="mt-0"><?= $item->comment->user->username ?> |
|
|
|