diff --git a/frontend/widgets/Seo.php b/frontend/widgets/Seo.php index 1793ff2..039913d 100755 --- a/frontend/widgets/Seo.php +++ b/frontend/widgets/Seo.php @@ -96,10 +96,16 @@ class Seo extends Widget if (isset($filter['brands']) && count($filter['brands']) == 1) { $model = Brand::find()->where(['alias' => $filter['brands'][0]])->one(); - return $this->selectSeoData(self::H1).' '.$model->name;; + return $this->selectSeoData(self::H1).' '.$model->name; + } if (isset($filter['options']["naznacenie"]) && count($filter['options']["naznacenie"]) == 1) { + + $model = TaxOption::find()->where(['alias' => $filter['options']["naznacenie"]])->one(); + return $this->selectSeoData(self::H1).' '.$model->value->value; + + } else { return $this->selectSeoData(self::H1); } -- libgit2 0.21.4