Commit eed139867b9ec4bd1fc60f0b97a8bcec404fca25
1 parent
c9142cf7
base
Showing
1 changed file
with
10 additions
and
16 deletions
Show diff stats
frontend/views/catalog/product.php
@@ -2,31 +2,25 @@ | @@ -2,31 +2,25 @@ | ||
2 | /** | 2 | /** |
3 | * @var Category $category | 3 | * @var Category $category |
4 | */ | 4 | */ |
5 | - // use common\modules\comment\models\Comment; | ||
6 | - // use common\modules\comment\models\Rating; | ||
7 | - // use common\modules\comment\widgets\CommentWidget; | 5 | + |
8 | use common\modules\comment\widgets\CommentWidget; | 6 | use common\modules\comment\widgets\CommentWidget; |
9 | use common\modules\product\models\Category; | 7 | use common\modules\product\models\Category; |
10 | -use yii\helpers\Html; | ||
11 | -use yii\web\View; | 8 | + use yii\helpers\Html; |
9 | + use yii\web\View; | ||
12 | use yii\helpers\Url; | 10 | use yii\helpers\Url; |
13 | use frontend\widgets\Seo; | 11 | use frontend\widgets\Seo; |
14 | -use frontend\assets\FlipclockAsset; | ||
15 | -FlipclockAsset::register($this); | 12 | + use frontend\assets\FlipclockAsset; |
13 | + | ||
14 | + FlipclockAsset::register($this); | ||
16 | $this->params[ 'seo' ][ 'key' ] = $category->categoryName->value; | 15 | $this->params[ 'seo' ][ 'key' ] = $category->categoryName->value; |
17 | $this->params[ 'seo' ][ 'fields' ][ 'name' ] = $product->fullname; | 16 | $this->params[ 'seo' ][ 'fields' ][ 'name' ] = $product->fullname; |
18 | $this->params[ 'seo' ][ 'h1' ] = !empty( Seo::widget([ 'row' => 'h1' ]) ) ? Seo::widget([ 'row' => 'h1' ]) : $product->fullnamewithcategory; | 17 | $this->params[ 'seo' ][ 'h1' ] = !empty( Seo::widget([ 'row' => 'h1' ]) ) ? Seo::widget([ 'row' => 'h1' ]) : $product->fullnamewithcategory; |
19 | 18 | ||
20 | - //$this->params['seo']['title'] = "Купить " . substr($product->category->categoryName->value, 0, -2) . " " . $product->fullname . " в Киеве, Харькове, Украине: цены, отзывы - Rukzachok.com.ua"; | ||
21 | - //$this->params['seo']['description'] = "Заказать " . substr($product->category->categoryName->value, 0, -2) . " " . $product->fullname . " - самые модные и стильные рюкзаки в Украине по лучшим ценам. Интернет магазин рюкзаков Rukzachok.com.ua"; | ||
22 | $this->title = $product->fullname; | 19 | $this->title = $product->fullname; |
23 | - //$this->title = (! empty($product->meta_title)) ? $product->meta_title : $product->fullname; | ||
24 | - //$this->registerMetaTag (['name' => 'description', 'content' => ((! empty($product->meta_description)) ? $product->meta_description : $product->fullname)]); | ||
25 | - //$this->registerMetaTag (['name' => 'keywords', 'content' => $product->meta_keywords]); | ||
26 | - | ||
27 | - //foreach($product->category->getParents()->all() as $parent) { | ||
28 | - // $this->params['breadcrumbs'][] = ['label' => $parent->categoryName->value, 'url' => ['catalog/category', 'category' => $parent]]; | ||
29 | - //} | 20 | + |
21 | + $test = $productProvider->getPagination()->getPage(); | ||
22 | + $this->registerLink(['rel' => 'next', 'href' => $test); | ||
23 | + | ||
30 | $this->params[ 'breadcrumbs' ][] = [ | 24 | $this->params[ 'breadcrumbs' ][] = [ |
31 | 'label' => 'Каталог', | 25 | 'label' => 'Каталог', |
32 | 'url' => [ 'catalog/category' ], | 26 | 'url' => [ 'catalog/category' ], |