Blame view

common/modules/comment/widgets/views/list-comment-review.php 815 Bytes
14a09168   Alex Savenko   init commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <?php

      /**

       * @var \yii\data\DataProviderInterface $dataProvider

       * @var Comment $commentClass

       */

      use common\modules\comment\models\Comment;

      use common\modules\comment\widgets\CommentWidget;

      echo \yii\widgets\ListView::widget([

          'dataProvider' => $dataProvider,

          'itemView'     => '_review_comment_view',

          'options'      => [

              'tag'   => 'ul',

              'class' => 'proektant-comments style',

          ],

          'itemOptions'  => [

              'tag'   => 'li',

              'class' => CommentWidget::$baseClass[ 'comment_container' ],

              'data' => [

                  'form' => $commentClass->formName(),

              ],

          ],

          'layout'       => "{items}\n<div class='navi-buttons-wr style'>{pager}</div>",

      ]);