Blame view

common/components/SeoComponent.php 409 Bytes
c8e3b27c   alex   Все не русские ст...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <?php
  namespace common\components;
  
  use artbox\core\components\SeoComponent as CoreSeoComponent;
  use artbox\core\models\Language;
  
  
  class SeoComponent extends  CoreSeoComponent
  {
      public function getRobots()
      {
          $language=Language::getCurrent();
          $languageId=$language->attributes['id'];
          if($languageId!=2)return 'noindex,nofollow';
          else return parent::getRobots();
      }
  }