get('seo'); # die(var_dump($seo)); $this->params['entity'] = Service::className(); $this->params['entity_id'] = $model->id; $moduleComment = \Yii::$app->getModule('comments'); $moduleComment->inputOptions = array_merge($moduleComment->inputOptions, ['entity_id' => [ 'type' => 'hiddenInput', 'options' => ['value' => $model->id], ], 'entity' => [ 'type' => 'hiddenInput', 'options' => ['value' => Service::className()], ]]); $moduleQuestion = \Yii::$app->getModule('questions'); $moduleQuestion->inputOptions += ['service_id' => [ 'type' => 'hiddenInput', 'options' => ['value' => $model->id], ]]; if ($model->parent !== null){ if ($model->parent->parent !== null){ $this->params['breadcrumbs'][] = [ 'label' => $model->parent->parent->title, 'url' => Url::to(['alias' => $model->parent->parent->language->alias]), ]; } $this->params['breadcrumbs'][] = [ 'label' => $model->parent->title, 'url' => Url::to(['alias' => $model->parent->language->alias]), ]; } $aliases = Alias::find()->where(['route' => '{"0":"site/questions"}'])->indexBy('route')->andWhere(['language_id' => Language::getCurrent()->id])->asArray()->all(); $js = <<id}; var parent_id = {$model->parent_id}; if (service_id == 4 || parent_id == 4){ window.dataLayer.push({'event': 'formsend_dermatologiya'}); } if (service_id == 16 || parent_id == 16){ dataLayer.push({'event': 'formsend_vedenie-beremennosti'}); } if (service_id == 22 || parent_id == 22){ dataLayer.push({'event': 'formsend_lechenie-besplodiya'}); } if (service_id == 21 || parent_id == 21){ dataLayer.push({'event': 'formsend_labioplastika'}); } if (service_id == 19 || parent_id == 19){ dataLayer.push({'event': 'formsend_zabolevaniya-sheyki-matki'}); } if (service_id == 20 || parent_id == 20){ dataLayer.push({'event': 'formsend_polovye-infekcii'}); } console.log('push'); return true; }); JS; $this->registerJs($js, View::POS_LOAD); $this->params[ 'breadcrumbs' ][] = (!empty($seo->h1)) ? $seo->h1 :$model->title; ?>

h1)) ? $seo->h1 :$model->title?>

body?>
comments as $comment){?>
name?>
comment?>
created_at)?>
questions as $question){?>
name?>
question?>
doctor !== null){?>
doctor->position?>doctor->name?>
answer?>