From d38bb7e752d06b63922f377927d69c044a0cdfb0 Mon Sep 17 00:00:00 2001 From: dozer111 Date: Wed, 20 Jun 2018 18:06:31 +0300 Subject: [PATCH] пагинация в блоге --- frontend/controllers/ServiceController.php | 4 ++-- frontend/microdata/ProductMicrodata.php | 1 + frontend/views/blog/index.php | 20 ++++++++++---------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/frontend/controllers/ServiceController.php b/frontend/controllers/ServiceController.php index 9454b74..1dc028e 100644 --- a/frontend/controllers/ServiceController.php +++ b/frontend/controllers/ServiceController.php @@ -43,8 +43,8 @@ $layoutMicrodata=(count($model->prices)>1)? [ - '@context'=> 'http://schema.org/', - '@type'=> 'Product', + 'context' => 'http://schema.org/', + 'type' => 'Product', 'name'=> "'{$model->language->attributes['title']}'", 'offers' => [ diff --git a/frontend/microdata/ProductMicrodata.php b/frontend/microdata/ProductMicrodata.php index 4aecbad..0c55d0b 100644 --- a/frontend/microdata/ProductMicrodata.php +++ b/frontend/microdata/ProductMicrodata.php @@ -13,6 +13,7 @@ class ProductMicrodata extends Microdata public $offers=null; public $description=null; public $npm=null; + public $type = null; diff --git a/frontend/views/blog/index.php b/frontend/views/blog/index.php index c29443c..ee68142 100755 --- a/frontend/views/blog/index.php +++ b/frontend/views/blog/index.php @@ -74,16 +74,16 @@
-- libgit2 0.21.4