Blame view

common/modules/comment/widgets/views/list-comment-review.php 793 Bytes
83b0052c   Yarik   test
1
2
3
  <?php
      /**
       * @var \yii\data\DataProviderInterface $dataProvider
8a551494   Yarik   test
4
       * @var Comment $commentClass
83b0052c   Yarik   test
5
       */
8a551494   Yarik   test
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
      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(),
              ],
          ],
f0a961be   Yarik   test
22
          'layout'       => "{items}\n<div class='navi-buttons-wr style'>{pager}</div>",
8a551494   Yarik   test
23
      ]);