Commit d38bb7e752d06b63922f377927d69c044a0cdfb0
1 parent
c8fbb9d2
пагинация в блоге
Showing
3 changed files
with
13 additions
and
12 deletions
Show diff stats
frontend/controllers/ServiceController.php
| @@ -43,8 +43,8 @@ | @@ -43,8 +43,8 @@ | ||
| 43 | 43 | ||
| 44 | $layoutMicrodata=(count($model->prices)>1)? | 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 | 'name'=> "'{$model->language->attributes['title']}'", | 48 | 'name'=> "'{$model->language->attributes['title']}'", |
| 49 | 'offers' => | 49 | 'offers' => |
| 50 | [ | 50 | [ |
frontend/microdata/ProductMicrodata.php
| @@ -13,6 +13,7 @@ class ProductMicrodata extends Microdata | @@ -13,6 +13,7 @@ class ProductMicrodata extends Microdata | ||
| 13 | public $offers=null; | 13 | public $offers=null; |
| 14 | public $description=null; | 14 | public $description=null; |
| 15 | public $npm=null; | 15 | public $npm=null; |
| 16 | + public $type = null; | ||
| 16 | 17 | ||
| 17 | 18 | ||
| 18 | 19 |
frontend/views/blog/index.php
| @@ -74,16 +74,16 @@ | @@ -74,16 +74,16 @@ | ||
| 74 | 74 | ||
| 75 | <div class="col-xs-12 col-sm-12"> | 75 | <div class="col-xs-12 col-sm-12"> |
| 76 | <div class="style navi-c-a"> | 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 | </div> | 87 | </div> |
| 88 | </div> | 88 | </div> |
| 89 | </div> | 89 | </div> |