comments.php
1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
use artbox\webcomment\models\CommentModel;
use artbox\webcomment\widgets\CommentWidget;
use yii\web\View;
/**
* @var View $this
* @var CommentModel $model
*/
?>
<div id="content" class="feedback-wr">
<div class="container">
<div class="row">
<div class="col-md-12">
<h4 class="text-uppercase title-comment">Оставить отзыв</h4>
<?php
echo CommentWidget::widget(
[
'model' => $model,
'display_name' => 'name',
'entityIdAttribute' => 'id',
'reply' => true,
'layout' => "{form}<div class='comments-border'></div><h4 class='text-uppercase title-comment'>Отзывы</h4>{list} {reply_form}",
'delete' => false,
'more' => [
'show_' => true,
'key' => 2,
],
'formView' => '@frontend/views/site/comment/artbox_comment_form',
'listView' => '@frontend/views/site/comment/artbox_comment_list',
'replyView' => '@frontend/views/site/comment/artbox_comment_reply',
'itemView' => '@frontend/views/site/comment/artbox_comment_item',
]
);
?>
</div>
</div>
</div>
</div>