Blame view

frontend/views/blog/index.php 1.08 KB
4ca21c3e   Alexey Boroda   first commit
1
  <?php
f2acc393   Alexey Boroda   -Seo widget integ...
2
3
4
5
6
7
8
9
10
11
12
13
14
15
      
      use common\modules\product\models\Category;
      use yii\data\ActiveDataProvider;
      use yii\web\View;
      use yii\widgets\ListView;
      use common\widgets\Seo;
      
      /**
       * @var Category           $category
       * @var ActiveDataProvider $dataProvider
       * @var View               $this
       */
      $this->params[ 'seo' ][ Seo::TITLE ] = "Блог";
      $this->params[ 'breadcrumbs' ][] = 'Блог';
4ca21c3e   Alexey Boroda   first commit
16
17
18
19
20
  
  ?>
  
  <div class="col-md-12">
      <?php
f2acc393   Alexey Boroda   -Seo widget integ...
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
          
          echo ListView::widget([
              'dataProvider' => $dataProvider,
              'options'      => [
                  'tag' => false,
              ],
              'pager'        => [
                  'prevPageCssClass'     => 'left_pg',
                  'nextPageCssClass'     => 'right_pg',
                  'activePageCssClass'   => 'active',
                  'disabledPageCssClass' => '',
                  'firstPageLabel'       => false,
                  //            'nextPageLabel' =>
              ],
              'itemView'     => '_blog_item',
              'layout'       => '{items}{pager}',
          ]);
      
4ca21c3e   Alexey Boroda   first commit
39
      ?>
4ca21c3e   Alexey Boroda   first commit
40
  </div>