From de188496b523edaa1215bfeef4a3a290e3a7cd78 Mon Sep 17 00:00:00 2001 From: timur Date: Wed, 31 Jan 2018 15:42:04 +0200 Subject: [PATCH] feedback mail 2 --- frontend/views/site/index.php | 108 ++++++++++++++++++++++++++---------------------------------------------------------------------------------- 1 file changed, 26 insertions(+), 82 deletions(-) diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index e9085f6..83c790f 100644 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -1,25 +1,26 @@ 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); ?>
@@ -229,80 +230,18 @@ $this->registerJs($js, View::POS_END);
- + + +
- - - - - - - - - - - - - - $object->lang->alias, -// ] -// ) ?> -image->getImg([])?> - - - - - - - $object->lang->alias, -// ] -// ) ?>lang->object_name?> - - - - - $object->lang->alias, -// ] -// ) ?> -lang->object_name?> - - - - - - - - - - - - - - - - - - - -
@@ -403,7 +342,12 @@ $this->registerJs($js, View::POS_END);
- + + +
-- libgit2 0.21.4