diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index 0be5ab1..3ca36e6 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -2,31 +2,25 @@ /** * @var Category $category */ - // use common\modules\comment\models\Comment; - // use common\modules\comment\models\Rating; - // use common\modules\comment\widgets\CommentWidget; + use common\modules\comment\widgets\CommentWidget; use common\modules\product\models\Category; -use yii\helpers\Html; -use yii\web\View; + use yii\helpers\Html; + use yii\web\View; use yii\helpers\Url; use frontend\widgets\Seo; -use frontend\assets\FlipclockAsset; -FlipclockAsset::register($this); + use frontend\assets\FlipclockAsset; + + FlipclockAsset::register($this); $this->params[ 'seo' ][ 'key' ] = $category->categoryName->value; $this->params[ 'seo' ][ 'fields' ][ 'name' ] = $product->fullname; $this->params[ 'seo' ][ 'h1' ] = !empty( Seo::widget([ 'row' => 'h1' ]) ) ? Seo::widget([ 'row' => 'h1' ]) : $product->fullnamewithcategory; - //$this->params['seo']['title'] = "Купить " . substr($product->category->categoryName->value, 0, -2) . " " . $product->fullname . " в Киеве, Харькове, Украине: цены, отзывы - Rukzachok.com.ua"; - //$this->params['seo']['description'] = "Заказать " . substr($product->category->categoryName->value, 0, -2) . " " . $product->fullname . " - самые модные и стильные рюкзаки в Украине по лучшим ценам. Интернет магазин рюкзаков Rukzachok.com.ua"; $this->title = $product->fullname; - //$this->title = (! empty($product->meta_title)) ? $product->meta_title : $product->fullname; - //$this->registerMetaTag (['name' => 'description', 'content' => ((! empty($product->meta_description)) ? $product->meta_description : $product->fullname)]); - //$this->registerMetaTag (['name' => 'keywords', 'content' => $product->meta_keywords]); - - //foreach($product->category->getParents()->all() as $parent) { - // $this->params['breadcrumbs'][] = ['label' => $parent->categoryName->value, 'url' => ['catalog/category', 'category' => $parent]]; - //} + + $test = $productProvider->getPagination()->getPage(); + $this->registerLink(['rel' => 'next', 'href' => $test); + $this->params[ 'breadcrumbs' ][] = [ 'label' => 'Каталог', 'url' => [ 'catalog/category' ], -- libgit2 0.21.4