Commit c351d5b0fa4bc052aca9ad7da632cac1563960c0

Authored by Administrator
1 parent 4b62b15f

add variantSku

Showing 1 changed file with 19 additions and 20 deletions   Show diff stats
widgets/Seo.php
... ... @@ -149,26 +149,25 @@ class Seo extends Widget
149 149 $filter = \Yii::$app->request->get('filters', []);
150 150  
151 151 $description = $this->selectSeoData(self::DESCRIPTION, $filter,$priority);
152   - print 'fdasfasd';
153   - die();
154   -// if (!empty($description)) {
155   -//
156   -// $this->getView()->registerMetaTag([
157   -// 'name' => 'description',
158   -// 'content' => $this->prepareString($description)
159   -// ]);
160   -//
161   -// } else {
162   -//
163   -// if(!empty($filter)){
164   -// $array = $this->arrayBuilder($filter);
165   -// $this->getView()->registerMetaTag([
166   -// 'name' => 'description',
167   -// 'content' => $this->prepareString($this->getDescriptionString($array,$description))
168   -// ]);
169   -// }
170   -//
171   -// }
  152 +
  153 + if (!empty($description)) {
  154 +
  155 + $this->getView()->registerMetaTag([
  156 + 'name' => 'description',
  157 + 'content' => $this->prepareString($description)
  158 + ]);
  159 +
  160 + } else {
  161 +
  162 + if(!empty($filter)){
  163 + $array = $this->arrayBuilder($filter);
  164 + $this->getView()->registerMetaTag([
  165 + 'name' => 'description',
  166 + 'content' => $this->prepareString($this->getDescriptionString($array,$description))
  167 + ]);
  168 + }
  169 +
  170 + }
172 171  
173 172 break;
174 173 case self::META:
... ...