From c1b2b9b3365855d244b33b5780f34402b369883b Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 29 Jun 2017 12:35:28 +0300 Subject: [PATCH] -Two or more filters closed --- frontend/widgets/Seo.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/widgets/Seo.php b/frontend/widgets/Seo.php index fee892b..833cd3d 100755 --- a/frontend/widgets/Seo.php +++ b/frontend/widgets/Seo.php @@ -10,6 +10,7 @@ use yii\helpers\ArrayHelper; use yii\helpers\Html; use yii\helpers\Url; + use yii\helpers\VarDumper; use yii\web\HttpException; class Seo extends Widget @@ -232,6 +233,15 @@ 'content' => 'noindex,nofollow', ] ); + } else if (isset($filter) && count($filter, COUNT_RECURSIVE) >= 4) { + + $this->getView() + ->registerMetaTag( + [ + 'name' => 'robots', + 'content' => 'noindex,nofollow', + ] + ); } else if (!empty($paginate)) { $this->getView() @@ -250,7 +260,6 @@ ] ); } - break; } -- libgit2 0.21.4