Commit d38bb7e752d06b63922f377927d69c044a0cdfb0

Authored by alex
1 parent c8fbb9d2

пагинация в блоге

frontend/controllers/ServiceController.php
... ... @@ -43,8 +43,8 @@
43 43  
44 44 $layoutMicrodata=(count($model->prices)>1)?
45 45 [
46   - '@context'=> 'http://schema.org/',
47   - '@type'=> 'Product',
  46 + 'context' => 'http://schema.org/',
  47 + 'type' => 'Product',
48 48 'name'=> "'{$model->language->attributes['title']}'",
49 49 'offers' =>
50 50 [
... ...
frontend/microdata/ProductMicrodata.php
... ... @@ -13,6 +13,7 @@ class ProductMicrodata extends Microdata
13 13 public $offers=null;
14 14 public $description=null;
15 15 public $npm=null;
  16 + public $type = null;
16 17  
17 18  
18 19  
... ...
frontend/views/blog/index.php
... ... @@ -74,16 +74,16 @@
74 74  
75 75 <div class="col-xs-12 col-sm-12">
76 76 <div class="style navi-c-a">
77   -
78   - <?php echo \frontend\widgets\FrontendPager::widget(
79   - [
80   - 'pagination' => $dataProvider->pagination,
81   - 'prevPageLabel' => 'previous',
82   - 'nextPageLabel' => 'next',
83   - 'maxButtonCount' => 5,
84   - 'lastPageLabel' => 'last_number',
85   - ]
86   - );?>
  77 +
  78 + <!-- --><?php // echo \frontend\widgets\FrontendPager::widget(
  79 + // [
  80 + // 'pagination' => $dataProvider->pagination,
  81 + // 'prevPageLabel' => 'previous',
  82 + // 'nextPageLabel' => 'next',
  83 + // 'maxButtonCount' => 5,
  84 + // 'lastPageLabel' => 'last_number',
  85 + // ]
  86 + // );?>
87 87 </div>
88 88 </div>
89 89 </div>
... ...