Blame view

frontend/views/site/comments.php 1.03 KB
464ede30   Alexey Boroda   -Global comments
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  <?php
      
      use artbox\webcomment\models\CommentModel;
      use artbox\webcomment\widgets\CommentWidget;
      use yii\web\View;
      
      /**
       * @var View         $this
       * @var CommentModel $model
       */
  
  ?>
  
  <div>
      
      <?php
          echo CommentWidget::widget(
              [
a8e21a4c   Alexey Boroda   -Comments configured
19
20
21
22
23
24
                  'model'             => $model,
                  'display_name'      => 'name',
                  'entityIdAttribute' => 'id',
                  'reply'             => true,
                  'delete'            => false,
                  'more'              => [
464ede30   Alexey Boroda   -Global comments
25
26
27
                      'show_' => true,
                      'key'   => 2,
                  ],
a8e21a4c   Alexey Boroda   -Comments configured
28
29
30
31
                  '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',
464ede30   Alexey Boroda   -Global comments
32
33
34
35
36
              ]
          );
      ?>
  
  </div>