diff --git a/common/mail/feedback.php b/common/mail/feedback.php index 3b0eabf..5f8ec98 100644 --- a/common/mail/feedback.php +++ b/common/mail/feedback.php @@ -1,5 +1,5 @@
= \Yii::t('app', 'Name: ') ?> | -= $model->name ?> | -
= \Yii::t('app', 'Phone: ') ?> | -= $model->phone ?> | -
= \Yii::t('app', 'Email: ') ?> | -= $model->email ?> | -
= \Yii::t('app', 'Message: ') ?> | -= $model->message ?> | -
= \Yii::t('app', 'Name: ') ?> | += $model->name ?> | +
= \Yii::t('app', 'Topic: ') ?> | += $model->topic ?> | +
= \Yii::t('app', 'Phone: ') ?> | += $model->phone ?> | +
= \Yii::t('app', 'Email: ') ?> | += $model->email ?> | +
= \Yii::t('app', 'Message: ') ?> | += $model->message ?> | +
- Success text -
-Thank for your reply, we will call you, maybe.
+Thank for your reply, we will call you soon.
diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index 639399f..da07f38 100644 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -1,24 +1,25 @@ title = 'KB Energy'; - -$js = <<< JS + use common\models\Settings; + use frontend\assets\MapAsset; + use yii\web\View; + use yii\helpers\Url; + + MapAsset::register($this); + $settings = Settings::getInstance(); + $this->title = 'KB Energy'; + + $js = <<< JS window.lat = {$settings->lat}; window.lon = {$settings->lon}; JS; - -$this->registerJs($js, View::POS_END); + + $this->registerJs($js, View::POS_END); ?>
+ Success text +
+