Commit 9173c97b20405fc70b425f9709ee710719f3a53b
1 parent
51774c5a
Seo naznach h1
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
frontend/widgets/Seo.php
@@ -96,10 +96,16 @@ class Seo extends Widget | @@ -96,10 +96,16 @@ class Seo extends Widget | ||
96 | 96 | ||
97 | if (isset($filter['brands']) && count($filter['brands']) == 1) { | 97 | if (isset($filter['brands']) && count($filter['brands']) == 1) { |
98 | $model = Brand::find()->where(['alias' => $filter['brands'][0]])->one(); | 98 | $model = Brand::find()->where(['alias' => $filter['brands'][0]])->one(); |
99 | - return $this->selectSeoData(self::H1).' '.$model->name;; | 99 | + return $this->selectSeoData(self::H1).' '.$model->name; |
100 | 100 | ||
101 | 101 | ||
102 | 102 | ||
103 | + } if (isset($filter['options']["naznacenie"]) && count($filter['options']["naznacenie"]) == 1) { | ||
104 | + | ||
105 | + $model = TaxOption::find()->where(['alias' => $filter['options']["naznacenie"]])->one(); | ||
106 | + return $this->selectSeoData(self::H1).' '.$model->value->value; | ||
107 | + | ||
108 | + | ||
103 | } else { | 109 | } else { |
104 | return $this->selectSeoData(self::H1); | 110 | return $this->selectSeoData(self::H1); |
105 | } | 111 | } |