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 | 9 | use common\modules\product\helpers\ProductHelper; |
10 | 10 | use frontend\widgets\Seo; |
11 | 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 | 13 | $this->params['seo']['h1'] = !empty($category->h1) ? $category->h1 : $category->name; |
14 | 14 | $this->params['seo']['seo_text'] = $category->seo_text; |
15 | 15 | $this->params['seo']['description'] = $category->meta_desc; | ... | ... |
frontend/widgets/Seo.php
... | ... | @@ -81,9 +81,7 @@ class Seo extends Widget |
81 | 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 | 86 | $array = [ |
89 | 87 | 'category' => $this->category_name |
... | ... | @@ -119,6 +117,8 @@ class Seo extends Widget |
119 | 117 | } |
120 | 118 | return $this->getTitleString($array); |
121 | 119 | |
120 | + } else if (!empty($title)) { | |
121 | + return $title; | |
122 | 122 | } else { |
123 | 123 | return $this->project_name; |
124 | 124 | } | ... | ... |