Blame view

frontend/views/site/comments.php 965 Bytes
464ede30   Alexey Boroda   -Global comments
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
  <?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(
              [
                  'model'        => $model,
                  'display_name' => 'name',
                  'reply'        => true,
                  '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>