Commit e287327e4f99bcfbe54e66b491eaa3a2dba87f7c
Merge branch 'master' of gitlab.artweb.com.ua:steska/clinica
Showing
2 changed files
with
18 additions
and
1 deletions
Show diff stats
1 | +<?php | |
2 | +namespace common\components; | |
3 | + | |
4 | +use artbox\core\components\SeoComponent as CoreSeoComponent; | |
5 | +use artbox\core\models\Language; | |
6 | + | |
7 | + | |
8 | +class SeoComponent extends CoreSeoComponent | |
9 | +{ | |
10 | + public function getRobots() | |
11 | + { | |
12 | + $language=Language::getCurrent(); | |
13 | + $languageId=$language->attributes['id']; | |
14 | + if($languageId!=2)return 'noindex,nofollow'; | |
15 | + else return parent::getRobots(); | |
16 | + } | |
17 | +} | |
0 | 18 | \ No newline at end of file | ... | ... |