diff --git a/frontend/views/blog/index.php b/frontend/views/blog/index.php index 112dcd1..da3aabe 100644 --- a/frontend/views/blog/index.php +++ b/frontend/views/blog/index.php @@ -6,6 +6,7 @@ * * @var View $this * @var ActiveDataProvider $dataProvider + * @var \artbox\core\components\SeoComponent $seo */ use yii\web\View; @@ -18,6 +19,7 @@ use yii\helpers\Url; $settings = Settings::getInstance(); + $seo = \Yii::$app->get('seo'); switch (Yii::$app->controller->action->id){ @@ -31,7 +33,7 @@ $this->params['h1'] = \Yii::t('app', 'Blog Tag'); break; default: - $this->params['h1'] = \Yii::t('app', 'menu-blog'); + $this->params['h1'] = $seo->h1; break; } diff --git a/frontend/views/object/index.php b/frontend/views/object/index.php index bf5b07b..6f8498a 100644 --- a/frontend/views/object/index.php +++ b/frontend/views/object/index.php @@ -4,6 +4,7 @@ * @var View $this * @var Feedback $contact * @var Objectkb[] $objects + * @var \artbox\core\components\SeoComponent $seo */ use artbox\core\models\Feedback; @@ -16,8 +17,9 @@ use yii\helpers\Url; $settings = Settings::getInstance(); + $seo = \Yii::$app->get('seo'); - $this->params['h1'] = \Yii::t('app', 'menu-objects'); + $this->params['h1'] = $seo->h1; $this->params[ 'breadcrumbs' ][] = $this->params['h1']; ?> diff --git a/frontend/views/site/contact.php b/frontend/views/site/contact.php index d20230c..6b448ba 100644 --- a/frontend/views/site/contact.php +++ b/frontend/views/site/contact.php @@ -14,8 +14,9 @@ MapAsset::register($this); $settings = Settings::getInstance(); + $seo = \Yii::$app->get('seo'); - $this->params['h1'] = \Yii::t('app', 'menu-contacts'); + $this->params['h1'] = $seo->h1; $this->params[ 'breadcrumbs' ][] = $this->params['h1']; $js = <<< JS diff --git a/frontend/views/site/individual.php b/frontend/views/site/individual.php index b8f7ea7..4ab9c4f 100644 --- a/frontend/views/site/individual.php +++ b/frontend/views/site/individual.php @@ -17,8 +17,9 @@ use common\models\Objectkb; $settings = Settings::getInstance(); + $seo = \Yii::$app->get('seo'); - $this->params['h1'] = \Yii::t('app', 'menu-individual'); + $this->params['h1'] = $seo->h1; $this->params[ 'breadcrumbs' ][] = $this->params['h1']; ?>