Commit e287327e4f99bcfbe54e66b491eaa3a2dba87f7c

Authored by Alex Savenko
2 parents 7aa44a45 a8b97682

Merge branch 'master' of gitlab.artweb.com.ua:steska/clinica

common/components/SeoComponent.php 0 → 100644
  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
... ...
common/config/main.php
1 1 <?php
2 2 use artbox\core\components\AliasCache;
3   - use artbox\core\components\SeoComponent;
  3 + use common\components\SeoComponent;
4 4 use artbox\core\rating\Module;
5 5  
6 6 return [
... ...