Blame view

common/modules/comment/views/artbox_comment_list.php 893 Bytes
d8c1a2e0   Yarik   Big commit artbox
1
  <?php
5c2eb7c8   Yarik   Big commit almost...
2
      use common\modules\comment\models\CommentModel;
d8c1a2e0   Yarik   Big commit artbox
3
4
5
6
7
8
9
10
      use yii\base\Model;
      use yii\data\ActiveDataProvider;
      use yii\helpers\Html;
      use yii\web\View;
      use yii\widgets\ListView;
      use yii\widgets\Pjax;
      
      /**
5c2eb7c8   Yarik   Big commit almost...
11
       * @var CommentModel       $comment_model
d8c1a2e0   Yarik   Big commit artbox
12
13
14
15
16
17
18
19
       * @var array              $list_params
       * @var array              $item_options
       * @var string             $item_view
       * @var Model              $model
       * @var ActiveDataProvider $comments
       * @var View               $this
       */
      Pjax::begin();
5c2eb7c8   Yarik   Big commit almost...
20
      if(( $success = \Yii::$app->session->getFlash('artbox_comment_success') ) != NULL) {
d8c1a2e0   Yarik   Big commit artbox
21
22
23
24
25
26
          echo Html::tag('p', $success);
      }
      echo ListView::widget([
          'dataProvider' => $comments,
          'itemOptions'  => $item_options,
          'itemView'     => $item_view,
5c2eb7c8   Yarik   Big commit almost...
27
          'summary'      => '',
d8c1a2e0   Yarik   Big commit artbox
28
29
30
      ]);
      Pjax::end();