Commit c1b2b9b3365855d244b33b5780f34402b369883b
1 parent
cbcfc70c
-Two or more filters closed
Showing
1 changed file
with
10 additions
and
1 deletions
Show diff stats
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 |