Commit 87e67a965e9260dd984909a4f20bea6ea963e1fb
Merge remote-tracking branch 'origin/master'
Showing
2 changed files
with
15 additions
and
1 deletions
Show diff stats
common/modules/product/models/Export.php
| @@ -74,6 +74,11 @@ | @@ -74,6 +74,11 @@ | ||
| 74 | implode(',', $fotos), | 74 | implode(',', $fotos), |
| 75 | ]; | 75 | ]; |
| 76 | $to_write = array_merge($list, $mods); | 76 | $to_write = array_merge($list, $mods); |
| 77 | + | ||
| 78 | + foreach ($to_write as $key => $value) { | ||
| 79 | + $to_write[$key] = trim(preg_replace('/[^\S ]/', ' ', $value)); | ||
| 80 | + } | ||
| 81 | + | ||
| 77 | fputcsv($handle, $to_write, ';'); | 82 | fputcsv($handle, $to_write, ';'); |
| 78 | unset( $product ); | 83 | unset( $product ); |
| 79 | } | 84 | } |
frontend/widgets/Seo.php
| @@ -10,6 +10,7 @@ | @@ -10,6 +10,7 @@ | ||
| 10 | use yii\helpers\ArrayHelper; | 10 | use yii\helpers\ArrayHelper; |
| 11 | use yii\helpers\Html; | 11 | use yii\helpers\Html; |
| 12 | use yii\helpers\Url; | 12 | use yii\helpers\Url; |
| 13 | + use yii\helpers\VarDumper; | ||
| 13 | use yii\web\HttpException; | 14 | use yii\web\HttpException; |
| 14 | 15 | ||
| 15 | class Seo extends Widget | 16 | class Seo extends Widget |
| @@ -232,6 +233,15 @@ | @@ -232,6 +233,15 @@ | ||
| 232 | 'content' => 'noindex,nofollow', | 233 | 'content' => 'noindex,nofollow', |
| 233 | ] | 234 | ] |
| 234 | ); | 235 | ); |
| 236 | + } else if (isset($filter) && count($filter, COUNT_RECURSIVE) >= 4) { | ||
| 237 | + | ||
| 238 | + $this->getView() | ||
| 239 | + ->registerMetaTag( | ||
| 240 | + [ | ||
| 241 | + 'name' => 'robots', | ||
| 242 | + 'content' => 'noindex,nofollow', | ||
| 243 | + ] | ||
| 244 | + ); | ||
| 235 | } else if (!empty($paginate)) { | 245 | } else if (!empty($paginate)) { |
| 236 | 246 | ||
| 237 | $this->getView() | 247 | $this->getView() |
| @@ -250,7 +260,6 @@ | @@ -250,7 +260,6 @@ | ||
| 250 | ] | 260 | ] |
| 251 | ); | 261 | ); |
| 252 | } | 262 | } |
| 253 | - | ||
| 254 | break; | 263 | break; |
| 255 | } | 264 | } |
| 256 | 265 |