Commit 2d6b0a8d4c9f37fc44ab88279b626e7df45afeed
Merge remote-tracking branch 'origin/master'
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
frontend/views/catalog/products.php
@@ -9,7 +9,7 @@ use yii\web\View; | @@ -9,7 +9,7 @@ use yii\web\View; | ||
9 | use common\modules\product\helpers\ProductHelper; | 9 | use common\modules\product\helpers\ProductHelper; |
10 | use frontend\widgets\Seo; | 10 | use frontend\widgets\Seo; |
11 | //$this->title = $category->categoryName->value; | 11 | //$this->title = $category->categoryName->value; |
12 | -//$this->params['seo']['title'] = !empty($category->meta_title) ? $category->meta_title : "Купить " . substr($category->name, 0, -2) . " в Украине недорого |" . $category->name . " доставка в Киев, Харьков, Днепропетровск, Одесса - Rukzachok.com.ua"; | 12 | +$this->params['seo']['title'] = !empty($category->meta_title) ? $category->meta_title : ''; |
13 | $this->params['seo']['h1'] = !empty($category->h1) ? $category->h1 : $category->name; | 13 | $this->params['seo']['h1'] = !empty($category->h1) ? $category->h1 : $category->name; |
14 | $this->params['seo']['seo_text'] = $category->seo_text; | 14 | $this->params['seo']['seo_text'] = $category->seo_text; |
15 | $this->params['seo']['description'] = $category->meta_desc; | 15 | $this->params['seo']['description'] = $category->meta_desc; |
frontend/widgets/Seo.php
@@ -81,9 +81,7 @@ class Seo extends Widget | @@ -81,9 +81,7 @@ class Seo extends Widget | ||
81 | // return $filter_row; | 81 | // return $filter_row; |
82 | // } | 82 | // } |
83 | 83 | ||
84 | - if (!empty($title)) { | ||
85 | - return $title; | ||
86 | - } else if(!empty($filter)) { | 84 | + if(!empty($filter)) { |
87 | 85 | ||
88 | $array = [ | 86 | $array = [ |
89 | 'category' => $this->category_name | 87 | 'category' => $this->category_name |
@@ -119,6 +117,8 @@ class Seo extends Widget | @@ -119,6 +117,8 @@ class Seo extends Widget | ||
119 | } | 117 | } |
120 | return $this->getTitleString($array); | 118 | return $this->getTitleString($array); |
121 | 119 | ||
120 | + } else if (!empty($title)) { | ||
121 | + return $title; | ||
122 | } else { | 122 | } else { |
123 | return $this->project_name; | 123 | return $this->project_name; |
124 | } | 124 | } |