Commit 53fd9636f2cda9c9865eb0e3dedd2d7eb4bf3745
Merge branch 'master' of gitlab.artweb.com.ua:steska/clinica
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
frontend/views/site/questions.php
... | ... | @@ -5,6 +5,7 @@ |
5 | 5 | * @var \yii\web\View $this |
6 | 6 | * @var int $service_id |
7 | 7 | * @var array $alias; |
8 | + * @var \artbox\core\components\SeoComponent $seo; | |
8 | 9 | */ |
9 | 10 | |
10 | 11 | use artbox\core\helpers\Url; |
... | ... | @@ -14,9 +15,9 @@ |
14 | 15 | use yii\helpers\Json; |
15 | 16 | use yii\widgets\ActiveForm; |
16 | 17 | use yii\widgets\ListView; |
17 | - use yii\helpers\VarDumper as d; | |
18 | - use artbox\core\models\Alias; | |
18 | + | |
19 | 19 | |
20 | + $seo = \Yii::$app->get('seo'); | |
20 | 21 | $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'Quest/Answer'); |
21 | 22 | |
22 | 23 | $model = new Question([ 'service_id' => $service_id ]); |
... | ... | @@ -30,7 +31,7 @@ |
30 | 31 | <div class="container"> |
31 | 32 | <div class="row"> |
32 | 33 | <div class="col-xs-12 col-sm-12"> |
33 | - <h1 class="title-pages"><?= \Yii::t('app', 'Quest/Answer') ?></h1> | |
34 | + <h1 class="title-pages"><?=(!empty($seo->h1)) ? $seo->h1 : \Yii::t('app', 'Quest/Answer') ?></h1> | |
34 | 35 | </div> |
35 | 36 | </div> |
36 | 37 | <div class="row"> | ... | ... |