Commit 16a2d769a1be5d3ba9b59e9f6753bffca9d97050
1 parent
be160418
-Main page SEO
Showing
4 changed files
with
651 additions
and
770 deletions
Show diff stats
common/messages/ru/app.php
| ... | ... | @@ -189,7 +189,7 @@ return [ |
| 189 | 189 | 'index_ses_for' => 'Солнечные станции для', |
| 190 | 190 | 'index_ses_fiz' => 'физических лиц', |
| 191 | 191 | 'index_ses_leg' => 'юридических лиц', |
| 192 | - 'index_why_us' => 'Проектирование солнечных электростанций', | |
| 192 | + 'index_why_us' => 'Продажа и проектирование солнечных электростанций', | |
| 193 | 193 | |
| 194 | 194 | 'index_title1' => 'Мы первые подключили СЭС', |
| 195 | 195 | 'index_subtitle1' => 'по Зеленому тарифу в Киевской области', |
| ... | ... | @@ -364,4 +364,4 @@ return [ |
| 364 | 364 | '3rd-type'=> 'Финансовый и технический анализ проекта, аудит объекта', |
| 365 | 365 | '4th-type'=> 'Строительство "под ключ". Промышленная ФЭС от 2 МВт', |
| 366 | 366 | |
| 367 | -]; | |
| 368 | 367 | \ No newline at end of file |
| 368 | +]; | ... | ... |
common/messages/ua/app.php
| ... | ... | @@ -191,7 +191,7 @@ return [ |
| 191 | 191 | 'index_ses_for' => 'Сонячні станції для', |
| 192 | 192 | 'index_ses_fiz' => 'фізичних осіб', |
| 193 | 193 | 'index_ses_leg' => 'юридичних осіб', |
| 194 | - 'index_why_us' => 'Проектування сонячних електростанцій', | |
| 194 | + 'index_why_us' => 'Продаж та проектування сонячних електростанцій', | |
| 195 | 195 | |
| 196 | 196 | 'index_title1' => 'МИ ПЕРШІ ПІДКЛЮЧИЛИ СЕС', |
| 197 | 197 | 'index_subtitle1' => 'по зеленому тарифу в Київській області', | ... | ... |
frontend/controllers/SiteController.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | - namespace frontend\controllers; | |
| 4 | - | |
| 5 | - use artbox\core\models\Page; | |
| 6 | - use common\models\Feedback; | |
| 7 | - use common\models\Settings; | |
| 8 | - use common\models\Slider; | |
| 9 | - use Yii; | |
| 10 | - use yii\filters\VerbFilter; | |
| 11 | - use yii\swiftmailer\Mailer; | |
| 12 | - use yii\web\BadRequestHttpException; | |
| 13 | - use yii\web\Controller; | |
| 14 | - use yii\web\NotFoundHttpException; | |
| 15 | - use yii\web\Response; | |
| 16 | - use common\models\Objectkb; | |
| 17 | - | |
| 3 | +namespace frontend\controllers; | |
| 4 | + | |
| 5 | +use artbox\core\models\Alias; | |
| 6 | +use artbox\core\models\Language; | |
| 7 | +use artbox\core\models\Page; | |
| 8 | +use common\models\Feedback; | |
| 9 | +use common\models\Settings; | |
| 10 | +use common\models\Slider; | |
| 11 | +use Yii; | |
| 12 | +use yii\filters\VerbFilter; | |
| 13 | +use yii\swiftmailer\Mailer; | |
| 14 | +use yii\web\BadRequestHttpException; | |
| 15 | +use yii\web\Controller; | |
| 16 | +use yii\web\NotFoundHttpException; | |
| 17 | +use yii\web\Response; | |
| 18 | +use common\models\Objectkb; | |
| 19 | + | |
| 20 | +/** | |
| 21 | + * Site controller | |
| 22 | + */ | |
| 23 | +class SiteController extends Controller | |
| 24 | +{ | |
| 18 | 25 | /** |
| 19 | - * Site controller | |
| 26 | + * @inheritdoc | |
| 20 | 27 | */ |
| 21 | - class SiteController extends Controller | |
| 28 | + public function actions() | |
| 22 | 29 | { |
| 23 | - /** | |
| 24 | - * @inheritdoc | |
| 25 | - */ | |
| 26 | - public function actions() | |
| 27 | - { | |
| 28 | - return [ | |
| 29 | - 'error' => [ | |
| 30 | - 'class' => 'yii\web\ErrorAction', | |
| 31 | - ], | |
| 32 | - ]; | |
| 33 | - } | |
| 34 | - | |
| 35 | - /** | |
| 36 | - * @inheritdoc | |
| 37 | - */ | |
| 38 | - public function behaviors() | |
| 39 | - { | |
| 40 | - return [ | |
| 41 | - 'verbs' => [ | |
| 42 | - 'class' => VerbFilter::className(), | |
| 43 | - 'actions' => [ | |
| 44 | - 'feedback' => [ 'post' ], | |
| 45 | - ], | |
| 30 | + return [ | |
| 31 | + 'error' => [ | |
| 32 | + 'class' => 'yii\web\ErrorAction', | |
| 33 | + ], | |
| 34 | + ]; | |
| 35 | + } | |
| 36 | + | |
| 37 | + /** | |
| 38 | + * @inheritdoc | |
| 39 | + */ | |
| 40 | + public function behaviors() | |
| 41 | + { | |
| 42 | + return [ | |
| 43 | + 'verbs' => [ | |
| 44 | + 'class' => VerbFilter::className(), | |
| 45 | + 'actions' => [ | |
| 46 | + 'feedback' => ['post'], | |
| 46 | 47 | ], |
| 47 | - ]; | |
| 48 | - } | |
| 49 | - | |
| 50 | - /** | |
| 51 | - * Displays homepage. | |
| 52 | - * | |
| 53 | - * @return mixed | |
| 54 | - */ | |
| 55 | - public function actionIndex() | |
| 56 | - { | |
| 57 | - | |
| 58 | - $slider = Slider::find() | |
| 59 | - ->with("slides.lang.image") | |
| 60 | - ->where([ 'on_home_page' => true ]) | |
| 61 | - ->one(); | |
| 62 | - | |
| 63 | - $objects = Objectkb::find() | |
| 64 | - ->with('lang.alias') | |
| 65 | - ->where( | |
| 66 | - [ | |
| 67 | - 'id' => [ | |
| 68 | - 7, | |
| 69 | - 37, | |
| 70 | - 38, | |
| 71 | - 43, | |
| 72 | - ], | |
| 73 | - ] | |
| 74 | - ) | |
| 75 | - ->orderBy('id') | |
| 76 | - ->all(); | |
| 77 | - | |
| 48 | + ], | |
| 49 | + ]; | |
| 50 | + } | |
| 51 | + | |
| 52 | + /** | |
| 53 | + * Displays homepage. | |
| 54 | + * | |
| 55 | + * @return mixed | |
| 56 | + */ | |
| 57 | + public function actionIndex() | |
| 58 | + { | |
| 59 | + | |
| 60 | + $slider = Slider::find() | |
| 61 | + ->with("slides.lang.image") | |
| 62 | + ->where(['on_home_page' => true]) | |
| 63 | + ->one(); | |
| 64 | + | |
| 65 | + $objects = Objectkb::find() | |
| 66 | + ->with('lang.alias') | |
| 67 | + ->where( | |
| 68 | + [ | |
| 69 | + 'id' => [ | |
| 70 | + 7, | |
| 71 | + 37, | |
| 72 | + 38, | |
| 73 | + 43, | |
| 74 | + ], | |
| 75 | + ] | |
| 76 | + ) | |
| 77 | + ->orderBy('id') | |
| 78 | + ->all(); | |
| 79 | + | |
| 80 | + $alias = Alias::find() | |
| 81 | + ->where( | |
| 82 | + [ | |
| 83 | + 'language_id' => Language::getCurrent()->id, | |
| 84 | + 'route' => '{"0":"site/index"}', | |
| 85 | + ] | |
| 86 | + ) | |
| 87 | + ->one(); | |
| 88 | + | |
| 89 | + return $this->render( | |
| 90 | + 'index', | |
| 91 | + [ | |
| 92 | + 'slider' => $slider, | |
| 93 | + 'objects' => $objects, | |
| 94 | + 'alias' => $alias, | |
| 95 | + ] | |
| 96 | + ); | |
| 97 | + } | |
| 98 | + | |
| 99 | + /** | |
| 100 | + * Displays contact page. | |
| 101 | + * | |
| 102 | + * @return mixed | |
| 103 | + */ | |
| 104 | + public function actionContact() | |
| 105 | + { | |
| 106 | + $contact = new Feedback(); | |
| 107 | + | |
| 108 | + return $this->render( | |
| 109 | + 'contact', | |
| 110 | + [ | |
| 111 | + 'contact' => $contact, | |
| 112 | + ] | |
| 113 | + ); | |
| 114 | + } | |
| 115 | + | |
| 116 | + /** | |
| 117 | + * Displays about page. | |
| 118 | + * | |
| 119 | + * @return mixed | |
| 120 | + */ | |
| 121 | + public function actionAbout() | |
| 122 | + { | |
| 123 | + $page = Page::find() | |
| 124 | + ->with('lang') | |
| 125 | + ->where(['id' => 3]) | |
| 126 | + ->one(); | |
| 127 | + | |
| 128 | + if ($page) { | |
| 78 | 129 | return $this->render( |
| 79 | - 'index', | |
| 130 | + 'about', | |
| 80 | 131 | [ |
| 81 | - 'slider' => $slider, | |
| 82 | - 'objects' => $objects, | |
| 132 | + 'page' => $page, | |
| 83 | 133 | ] |
| 84 | 134 | ); |
| 135 | + | |
| 136 | + } else { | |
| 137 | + throw new NotFoundHttpException(); | |
| 85 | 138 | } |
| 86 | - | |
| 139 | + | |
| 140 | + } | |
| 141 | + | |
| 142 | + public function actionIndividual() | |
| 143 | + { | |
| 144 | + $idsArray = [ | |
| 145 | + 25, | |
| 146 | + 37, | |
| 147 | + 12, | |
| 148 | + 42, | |
| 149 | + ]; | |
| 150 | + | |
| 151 | + $objects = Objectkb::find() | |
| 152 | + ->with('lang.alias') | |
| 153 | + ->where( | |
| 154 | + [ | |
| 155 | + 'id' => $idsArray, | |
| 156 | + ] | |
| 157 | + ) | |
| 158 | + ->indexBy('id') | |
| 159 | + ->all(); | |
| 160 | + | |
| 161 | + return $this->render( | |
| 162 | + 'individual', | |
| 163 | + [ | |
| 164 | + 'objects' => $objects, | |
| 165 | + 'idsArray' => $idsArray, | |
| 166 | + ] | |
| 167 | + ); | |
| 168 | + } // частное лицо | |
| 169 | + | |
| 170 | + public function actionLegal() | |
| 171 | + | |
| 172 | + { | |
| 173 | + $legal = new Feedback(); | |
| 174 | + | |
| 175 | + return $this->render( | |
| 176 | + 'legal', | |
| 177 | + [ | |
| 178 | + 'legal' => $legal, | |
| 179 | + ] | |
| 180 | + ); | |
| 181 | + } // юридическое | |
| 182 | + | |
| 183 | + public function actionMediaAbout() | |
| 184 | + { | |
| 185 | + return $this->render('media-about'); | |
| 186 | + } // СМИ о нас | |
| 187 | + | |
| 188 | + /** | |
| 189 | + * Action to view robots.txt file dinamycli | |
| 190 | + * | |
| 191 | + * @return string | |
| 192 | + */ | |
| 193 | + public function actionRobots() | |
| 194 | + { | |
| 195 | + $response = \Yii::$app->response; | |
| 87 | 196 | /** |
| 88 | - * Displays contact page. | |
| 89 | - * | |
| 90 | - * @return mixed | |
| 197 | + * @var Settings $settings | |
| 91 | 198 | */ |
| 92 | - public function actionContact() | |
| 93 | - { | |
| 94 | - $contact = new Feedback(); | |
| 95 | - return $this->render( | |
| 96 | - 'contact', | |
| 97 | - [ | |
| 98 | - 'contact' => $contact, | |
| 99 | - ] | |
| 100 | - ); | |
| 101 | - } | |
| 102 | - | |
| 199 | + $settings = Settings::find() | |
| 200 | + ->one(); | |
| 201 | + $temp = tmpfile(); | |
| 202 | + fwrite($temp, $settings->robots); | |
| 203 | + $meta = stream_get_meta_data($temp); | |
| 204 | + $response->format = $response::FORMAT_RAW; | |
| 205 | + $response->headers->set('Content-Type', 'text/plain'); | |
| 206 | + | |
| 207 | + return $this->renderFile($meta[ 'uri' ]); | |
| 208 | + } | |
| 209 | + | |
| 210 | + public function actionFeedback() | |
| 211 | + { | |
| 212 | + | |
| 213 | + Yii::$app->response->format = Response::FORMAT_JSON; | |
| 214 | + | |
| 103 | 215 | /** |
| 104 | - * Displays about page. | |
| 105 | - * | |
| 106 | - * @return mixed | |
| 216 | + * @var Mailer $mailer | |
| 107 | 217 | */ |
| 108 | - public function actionAbout() | |
| 109 | - { | |
| 110 | - $page = Page::find()->with('lang') | |
| 111 | - ->where(['id' => 3])->one(); | |
| 112 | - | |
| 113 | - if ($page) { | |
| 114 | - return $this->render('about', [ | |
| 115 | - 'page' => $page, | |
| 116 | - ]); | |
| 117 | - | |
| 118 | - } else { | |
| 119 | - throw new NotFoundHttpException(); | |
| 218 | + $mailer = \Yii::$app->get('smtpmailer'); | |
| 219 | + $settings = Settings::getInstance(); | |
| 220 | + | |
| 221 | + if (empty(Yii::$app->request->post())) { | |
| 222 | + | |
| 223 | + throw new BadRequestHttpException(); | |
| 224 | + } else { | |
| 225 | + | |
| 226 | + $post = Yii::$app->request->post('Feedback'); | |
| 227 | + switch ($post[ 'topic' ]) { | |
| 228 | + case Feedback::SCENARIO_FEEDBACK : | |
| 229 | + $model = new Feedback(['scenario' => Feedback::SCENARIO_FEEDBACK]); | |
| 230 | + $view = 'feedback'; | |
| 231 | + $isLoaded = $model->load(Yii::$app->request->post()); | |
| 232 | + break; | |
| 233 | + | |
| 234 | + case Feedback::SCENARIO_CALLBACK : | |
| 235 | + $model = new Feedback(['scenario' => Feedback::SCENARIO_CALLBACK]); | |
| 236 | + $view = 'feedback'; | |
| 237 | + $isLoaded = $model->load(Yii::$app->request->post()); | |
| 238 | + break; | |
| 239 | + | |
| 240 | + case Feedback::SCENARIO_CALCULATOR: | |
| 241 | + $model = new Feedback(['scenario' => Feedback::SCENARIO_CALCULATOR]); | |
| 242 | + $view = 'calculator'; | |
| 243 | + $isLoaded = $model->load(Yii::$app->request->post()); | |
| 244 | + $model->setCalcJsonInfo(); | |
| 245 | + break; | |
| 246 | + | |
| 247 | + case Feedback::SCENARIO_LEGAL_FEEDBACK: | |
| 248 | + $model = new Feedback(['scenario' => Feedback::SCENARIO_LEGAL_FEEDBACK]); | |
| 249 | + $view = 'legalfeedback'; | |
| 250 | + $isLoaded = $model->load(Yii::$app->request->post()); | |
| 251 | + $email = 'haichenko_ky@kbenergy.com.ua'; | |
| 252 | + $model->setCalcJsonInfo(); | |
| 253 | + break; | |
| 254 | + | |
| 255 | + default: | |
| 256 | + $model = new Feedback(); | |
| 257 | + $view = 'feedback'; | |
| 258 | + $isLoaded = $model->load(Yii::$app->request->post()); | |
| 120 | 259 | } |
| 121 | - | |
| 122 | - } | |
| 123 | - | |
| 124 | - public function actionIndividual() | |
| 125 | - { | |
| 126 | - $idsArray = [ | |
| 127 | - 25, | |
| 128 | - 37, | |
| 129 | - 12, | |
| 130 | - 42, | |
| 131 | - ]; | |
| 132 | - | |
| 133 | - $objects = Objectkb::find() | |
| 134 | - ->with('lang.alias') | |
| 135 | - ->where( | |
| 260 | + | |
| 261 | + if ($isLoaded && $model->save()) { | |
| 262 | + | |
| 263 | + $mailer->compose( | |
| 264 | + $view, | |
| 136 | 265 | [ |
| 137 | - 'id' => $idsArray, | |
| 266 | + 'model' => $model, | |
| 138 | 267 | ] |
| 139 | 268 | ) |
| 140 | - ->indexBy('id') | |
| 141 | - ->all(); | |
| 142 | - | |
| 143 | - return $this->render( | |
| 144 | - 'individual', | |
| 145 | - [ | |
| 146 | - 'objects' => $objects, | |
| 147 | - 'idsArray' => $idsArray, | |
| 148 | - ] | |
| 149 | - ); | |
| 150 | - } // частное лицо | |
| 151 | - | |
| 152 | - public function actionLegal() | |
| 153 | - | |
| 154 | - { | |
| 155 | - $legal = new Feedback(); | |
| 156 | - return $this->render( | |
| 157 | - 'legal', | |
| 158 | - [ | |
| 159 | - 'legal' => $legal, | |
| 160 | - ] | |
| 161 | - ); | |
| 162 | - } // юридическое | |
| 163 | - | |
| 164 | - public function actionMediaAbout() | |
| 165 | - { | |
| 166 | - return $this->render('media-about'); | |
| 167 | - } // СМИ о нас | |
| 168 | - | |
| 169 | - /** | |
| 170 | - * Action to view robots.txt file dinamycli | |
| 171 | - * | |
| 172 | - * @return string | |
| 173 | - */ | |
| 174 | - public function actionRobots() | |
| 175 | - { | |
| 176 | - $response = \Yii::$app->response; | |
| 177 | - /** | |
| 178 | - * @var Settings $settings | |
| 179 | - */ | |
| 180 | - $settings = Settings::find() | |
| 181 | - ->one(); | |
| 182 | - $temp = tmpfile(); | |
| 183 | - fwrite($temp, $settings->robots); | |
| 184 | - $meta = stream_get_meta_data($temp); | |
| 185 | - $response->format = $response::FORMAT_RAW; | |
| 186 | - $response->headers->set('Content-Type', 'text/plain'); | |
| 187 | - return $this->renderFile($meta[ 'uri' ]); | |
| 188 | - } | |
| 189 | - | |
| 190 | - public function actionFeedback() | |
| 191 | - { | |
| 192 | - | |
| 193 | - Yii::$app->response->format = Response::FORMAT_JSON; | |
| 194 | - | |
| 195 | - | |
| 196 | - /** | |
| 197 | - * @var Mailer $mailer | |
| 198 | - */ | |
| 199 | - $mailer = \Yii::$app->get('smtpmailer'); | |
| 200 | - $settings = Settings::getInstance(); | |
| 201 | - | |
| 202 | - if (empty(Yii::$app->request->post())) { | |
| 203 | - | |
| 204 | - throw new BadRequestHttpException(); | |
| 269 | + ->setFrom(['artbox@domain.com']) | |
| 270 | + ->setTo( | |
| 271 | + [ | |
| 272 | + !empty($email) ? $email : $settings->email, | |
| 273 | + ] | |
| 274 | + ) | |
| 275 | + ->setSubject(\Yii::t('app', 'Feedback')) | |
| 276 | + ->send(); | |
| 277 | + | |
| 278 | + return [ | |
| 279 | + 'success' => true, | |
| 280 | + 'message' => 'Success message', | |
| 281 | + 'view' => $view, | |
| 282 | + 'model' => $model->attributeValues, | |
| 283 | + 'alert' => $this->renderPartial('success_alert'), | |
| 284 | + ]; | |
| 205 | 285 | } else { |
| 206 | - | |
| 207 | - $post = Yii::$app->request->post('Feedback'); | |
| 208 | - switch ($post[ 'topic' ]) { | |
| 209 | - case Feedback::SCENARIO_FEEDBACK : | |
| 210 | - $model = new Feedback([ 'scenario' => Feedback::SCENARIO_FEEDBACK ]); | |
| 211 | - $view = 'feedback'; | |
| 212 | - $isLoaded = $model->load(Yii::$app->request->post()); | |
| 213 | - break; | |
| 214 | - | |
| 215 | - case Feedback::SCENARIO_CALLBACK : | |
| 216 | - $model = new Feedback([ 'scenario' => Feedback::SCENARIO_CALLBACK ]); | |
| 217 | - $view = 'feedback'; | |
| 218 | - $isLoaded = $model->load(Yii::$app->request->post()); | |
| 219 | - break; | |
| 220 | - | |
| 221 | - case Feedback::SCENARIO_CALCULATOR: | |
| 222 | - $model = new Feedback([ 'scenario' => Feedback::SCENARIO_CALCULATOR ]); | |
| 223 | - $view = 'calculator'; | |
| 224 | - $isLoaded = $model->load(Yii::$app->request->post()); | |
| 225 | - $model->setCalcJsonInfo(); | |
| 226 | - break; | |
| 227 | - | |
| 228 | - case Feedback::SCENARIO_LEGAL_FEEDBACK: | |
| 229 | - $model = new Feedback([ 'scenario' => Feedback::SCENARIO_LEGAL_FEEDBACK ]); | |
| 230 | - $view = 'legalfeedback'; | |
| 231 | - $isLoaded = $model->load(Yii::$app->request->post()); | |
| 232 | - $email = 'haichenko_ky@kbenergy.com.ua'; | |
| 233 | - $model->setCalcJsonInfo(); | |
| 234 | - break; | |
| 235 | - | |
| 236 | - default: | |
| 237 | - $model = new Feedback(); | |
| 238 | - $view = 'feedback'; | |
| 239 | - $isLoaded = $model->load(Yii::$app->request->post()); | |
| 240 | - } | |
| 241 | - | |
| 242 | - if ($isLoaded && $model->save()) { | |
| 243 | - | |
| 244 | - $mailer->compose( | |
| 245 | - $view, | |
| 246 | - [ | |
| 247 | - 'model' => $model, | |
| 248 | - ] | |
| 249 | - ) | |
| 250 | - ->setFrom(['artbox@domain.com']) | |
| 251 | - ->setTo( | |
| 252 | - [ | |
| 253 | - !empty($email) ? $email : $settings->email, | |
| 254 | - ] | |
| 255 | - ) | |
| 256 | - ->setSubject(\Yii::t('app', 'Feedback')) | |
| 257 | - ->send(); | |
| 258 | - | |
| 259 | - return [ | |
| 260 | - 'success' => true, | |
| 261 | - 'message' => 'Success message', | |
| 262 | - 'view' => $view, | |
| 263 | - 'model' => $model->attributeValues, | |
| 264 | - 'alert' => $this->renderPartial('success_alert'), | |
| 265 | - ]; | |
| 266 | - } else { | |
| 267 | - Yii::$app->response->setStatusCode(500); | |
| 268 | - return [ | |
| 269 | - 'success' => false, | |
| 270 | - 'error' => $model->errors, | |
| 271 | - ]; | |
| 272 | - } | |
| 286 | + Yii::$app->response->setStatusCode(500); | |
| 287 | + | |
| 288 | + return [ | |
| 289 | + 'success' => false, | |
| 290 | + 'error' => $model->errors, | |
| 291 | + ]; | |
| 273 | 292 | } |
| 274 | 293 | } |
| 275 | 294 | } |
| 295 | +} | ... | ... |
frontend/views/site/index.php
| 1 | 1 | <?php |
| 2 | - | |
| 3 | - /** | |
| 4 | - * @var $this yii\web\View | |
| 5 | - * @var $slider \common\models\Slider | |
| 6 | - * @var $objects \common\models\Objectkb | |
| 7 | - */ | |
| 8 | - | |
| 9 | - use common\models\Settings; | |
| 10 | - use frontend\assets\MapAsset; | |
| 11 | - use yii\web\View; | |
| 12 | - use yii\helpers\Url; | |
| 13 | - | |
| 14 | - MapAsset::register($this); | |
| 15 | - $settings = Settings::getInstance(); | |
| 16 | - $this->title = 'KB Energy'; | |
| 17 | - $currentLang = \artbox\core\models\Language::getCurrent(); | |
| 18 | 2 | |
| 19 | - $coordinates = []; | |
| 20 | - $coordinates['lat'] = empty($settings->lat) ? 0 : $settings->lat; | |
| 21 | - $coordinates['lon'] = empty($settings->lon) ? 0 : $settings->lon; | |
| 22 | - | |
| 23 | - $js = <<< JS | |
| 3 | +/** | |
| 4 | + * @var $this yii\web\View | |
| 5 | + * @var $slider \common\models\Slider | |
| 6 | + * @var $objects \common\models\Objectkb | |
| 7 | + * @var $alias \artbox\core\models\Alias | |
| 8 | + */ | |
| 9 | + | |
| 10 | +use common\models\Settings; | |
| 11 | +use frontend\assets\MapAsset; | |
| 12 | +use yii\web\View; | |
| 13 | +use yii\helpers\Url; | |
| 14 | + | |
| 15 | +MapAsset::register($this); | |
| 16 | +$settings = Settings::getInstance(); | |
| 17 | +$this->title = 'KB Energy'; | |
| 18 | +$currentLang = \artbox\core\models\Language::getCurrent(); | |
| 19 | + | |
| 20 | +$coordinates = []; | |
| 21 | +$coordinates[ 'lat' ] = empty($settings->lat) ? 0 : $settings->lat; | |
| 22 | +$coordinates[ 'lon' ] = empty($settings->lon) ? 0 : $settings->lon; | |
| 23 | + | |
| 24 | +$js = <<< JS | |
| 24 | 25 | window.lat = {$coordinates['lat']}; |
| 25 | 26 | window.lon = {$coordinates['lon']}; |
| 26 | 27 | JS; |
| 27 | - | |
| 28 | - $this->registerJs($js, View::POS_END); | |
| 28 | + | |
| 29 | +$this->registerJs($js, View::POS_END); | |
| 29 | 30 | ?> |
| 30 | 31 | |
| 31 | 32 | <div id="main-page"> |
| 32 | - <section class="no-mb main-slider"> | |
| 33 | - | |
| 34 | - <?php | |
| 35 | - $slideItems = []; | |
| 36 | - foreach ($slider->slides as $slide){ | |
| 37 | - if(isset($slide->lang->image)){ | |
| 38 | - $slideItems[] = $slide->lang->image->getImg(); | |
| 39 | - } | |
| 40 | - } | |
| 41 | - echo \common\models\Carousel::widget( | |
| 42 | - [ | |
| 43 | - 'items' => $slideItems | |
| 44 | - ] | |
| 45 | - ); | |
| 46 | - ?> | |
| 47 | - <div class="box-simple"> | |
| 48 | - <a | |
| 49 | - href="#" | |
| 50 | - class="btn button1 icon_phone modaled init-button-consultation press-consultation" | |
| 51 | - data-title="<?= \Yii::t('app', 'green_get') ?> <?= \Yii::t('app', 'green_get2') ?>" | |
| 52 | - data-toggle="modal" | |
| 53 | - data-target="#feedback-modal" | |
| 54 | - > | |
| 55 | - <?= \Yii::t('app', 'green_get') ?> <span><?= \Yii::t('app', 'green_get2') ?></span> | |
| 56 | - </a> | |
| 33 | + <section class="no-mb main-slider"> | |
| 34 | + | |
| 35 | + <?php | |
| 36 | + $slideItems = []; | |
| 37 | + foreach ($slider->slides as $slide) { | |
| 38 | + if (isset($slide->lang->image)) { | |
| 39 | + $slideItems[] = $slide->lang->image->getImg(); | |
| 40 | + } | |
| 41 | + } | |
| 42 | + echo \common\models\Carousel::widget( | |
| 43 | + [ | |
| 44 | + 'items' => $slideItems, | |
| 45 | + ] | |
| 46 | + ); | |
| 47 | + ?> | |
| 48 | + <div class="box-simple"> | |
| 49 | + <a | |
| 50 | + href="#" | |
| 51 | + class="btn button1 icon_phone modaled init-button-consultation press-consultation" | |
| 52 | + data-title="<?= \Yii::t('app', 'green_get') ?> <?= \Yii::t('app', 'green_get2') ?>" | |
| 53 | + data-toggle="modal" | |
| 54 | + data-target="#feedback-modal" | |
| 55 | + > | |
| 56 | + <?= \Yii::t('app', 'green_get') ?> <span><?= \Yii::t('app', 'green_get2') ?></span> | |
| 57 | + </a> | |
| 58 | + </div> | |
| 59 | + <!-- тут место для слайдера --> | |
| 60 | + </section> | |
| 61 | + | |
| 62 | + <section class="links-ses-for-wr"> | |
| 63 | + <div class="container"> | |
| 64 | + <div class="row"> | |
| 65 | + <div class="col-xs-12 col-sm-12 col-md-6 lsf-left"> | |
| 66 | + <p><?= \Yii::t('app', 'index_ses_for') ?> <a href="<?= Url::toRoute("site/legal") ?>"><?= \Yii::t( | |
| 67 | + 'app', | |
| 68 | + 'index_ses_leg' | |
| 69 | + ) ?></a></p> | |
| 57 | 70 | </div> |
| 58 | - <!-- тут место для слайдера --> | |
| 59 | - </section> | |
| 60 | - | |
| 61 | - <section class="links-ses-for-wr"> | |
| 62 | - <div class="container"> | |
| 63 | - <div class="row"> | |
| 64 | - <div class="col-xs-12 col-sm-12 col-md-6 lsf-left"> | |
| 65 | - <p><?=\Yii::t('app', 'index_ses_for')?> <a href="<?=Url::toRoute("site/legal")?>"><?=\Yii::t('app', 'index_ses_leg')?></a></p> | |
| 66 | - </div> | |
| 67 | - <div class="col-xs-12 col-sm-12 col-md-6 lsf-right"> | |
| 68 | - <p><?=\Yii::t('app', 'index_ses_for')?> <a href="<?=Url::toRoute("site/individual")?>"><?=\Yii::t('app', 'index_ses_fiz')?></a></p> | |
| 69 | - </div> | |
| 70 | - </div> | |
| 71 | + <div class="col-xs-12 col-sm-12 col-md-6 lsf-right"> | |
| 72 | + <p><?= \Yii::t('app', 'index_ses_for') ?> <a href="<?= Url::toRoute("site/individual") ?>"><?= \Yii::t( | |
| 73 | + 'app', | |
| 74 | + 'index_ses_fiz' | |
| 75 | + ) ?></a></p> | |
| 71 | 76 | </div> |
| 72 | - </section> | |
| 73 | - | |
| 74 | - <section class="blue-fon why-us-wr no-mg"> | |
| 75 | - <div class="container"> | |
| 76 | - <div class="heading text-center"> | |
| 77 | - <h1 class="h2 big-text"><?=\Yii::t('app', 'index_why_us')?></h1> | |
| 77 | + </div> | |
| 78 | + </div> | |
| 79 | + </section> | |
| 80 | + | |
| 81 | + <section class="blue-fon why-us-wr no-mg"> | |
| 82 | + <div class="container"> | |
| 83 | + <div class="heading text-center"> | |
| 84 | + <h1 class="h2 big-text"><?= $alias ? $alias->getH1() : Yii::t('app', 'index_why_us') ?></h1> | |
| 85 | + </div> | |
| 86 | + <div class="why-us container"> | |
| 87 | + <div class="col-md-12 row"> | |
| 88 | + <div class="col-xs-12 col-sm-4"> | |
| 89 | + <div class="box-simple"> | |
| 90 | + <div class="icon"> | |
| 91 | + <img src="/img/icon_1.png"> | |
| 92 | + </div> | |
| 93 | + <div class="h3"><?= \Yii::t('app', 'index_title1') ?></div> | |
| 94 | + <p><?= \Yii::t('app', 'index_subtitle1') ?></p> | |
| 95 | + <img src="/img/line.png" class="line_why hidden-xs hidden-sm"> | |
| 78 | 96 | </div> |
| 79 | - <div class="why-us container"> | |
| 80 | - <div class="col-md-12 row"> | |
| 81 | - <div class="col-xs-12 col-sm-4"> | |
| 82 | - <div class="box-simple"> | |
| 83 | - <div class="icon"> | |
| 84 | - <img src="/img/icon_1.png"> | |
| 85 | - </div> | |
| 86 | - <div class="h3"><?=\Yii::t('app', 'index_title1')?></div> | |
| 87 | - <p><?=\Yii::t('app', 'index_subtitle1')?></p> | |
| 88 | - <img src="/img/line.png" class="line_why hidden-xs hidden-sm"> | |
| 89 | - </div> | |
| 90 | - </div> | |
| 91 | - <div class="col-xs-12 col-sm-4"> | |
| 92 | - <div class="box-simple"> | |
| 93 | - <div class="icon"> | |
| 94 | - <img src="/img/icon_2.png"> | |
| 95 | - </div> | |
| 96 | - <div class="h3"><?=\Yii::t('app', 'index_title2')?></div> | |
| 97 | - <p><?=\Yii::t('app', 'index_subtitle2')?></p> | |
| 98 | - <img src="/img/line.png" class="line_why hidden-xs hidden-sm"> | |
| 99 | - </div> | |
| 100 | - </div> | |
| 101 | - <div class="col-xs-12 col-sm-4"> | |
| 102 | - <div class="box-simple"> | |
| 103 | - <div class="icon"> | |
| 104 | - <img src="/img/icon_3.png"> | |
| 105 | - </div> | |
| 106 | - <div class="h3"><?=\Yii::t('app', 'index_title3')?></div> | |
| 107 | - <p><?=\Yii::t('app', 'index_subtitle3')?></p> | |
| 108 | - </div> | |
| 109 | - </div> | |
| 110 | - </div> | |
| 111 | - <div class="col-xs-12 col-sm-4 col-md-offset-2 col-sm-offset-2"> | |
| 112 | - <div class="box-simple"> | |
| 113 | - <div class="icon"> | |
| 114 | - <img src="/img/icon_4.png"> | |
| 115 | - </div> | |
| 116 | - <div class="h3"><?=\Yii::t('app', 'index_title4')?></div> | |
| 117 | - <p><?=\Yii::t('app', 'index_subtitle4')?></p> | |
| 118 | - </div> | |
| 119 | - </div> | |
| 120 | - <div class="col-xs-12 col-sm-4"> | |
| 121 | - <div class="box-simple"> | |
| 122 | - <div class="icon"> | |
| 123 | - <img src="/img/icon_5.png"> | |
| 124 | - </div> | |
| 125 | - <div class="h3"><?=\Yii::t('app', 'index_title5')?></div> | |
| 126 | - <p><?=\Yii::t('app', 'index_subtitle5')?></p> | |
| 127 | - </div> | |
| 128 | - </div> | |
| 129 | - <div class="col-md-12 col-xs-12"> | |
| 130 | - <div class="row"> | |
| 131 | - <div class="box-simple"> | |
| 132 | - <a href="#" class="btn button1 icon_car modaled init-button-consultation press-specialist" data-title="<?=\Yii::t('app', 'index_data1')?>" data-toggle="modal" data-target="#feedback-modal"><?=\Yii::t('app', 'index_modal1')?> <span><?=\Yii::t('app', 'index_modal2')?></span></a> | |
| 133 | - <a href="#" class="btn button1 icon_calc modaled init-button-consultation press-calculate" data-toggle="modal" data-target="#calculate-modal"><?=\Yii::t('app', 'index_modal3')?> <span><?=\Yii::t('app', 'index_modal4')?></span></a> | |
| 134 | - </div> | |
| 135 | - </div> | |
| 136 | - </div> | |
| 97 | + </div> | |
| 98 | + <div class="col-xs-12 col-sm-4"> | |
| 99 | + <div class="box-simple"> | |
| 100 | + <div class="icon"> | |
| 101 | + <img src="/img/icon_2.png"> | |
| 102 | + </div> | |
| 103 | + <div class="h3"><?= \Yii::t('app', 'index_title2') ?></div> | |
| 104 | + <p><?= \Yii::t('app', 'index_subtitle2') ?></p> | |
| 105 | + <img src="/img/line.png" class="line_why hidden-xs hidden-sm"> | |
| 137 | 106 | </div> |
| 107 | + </div> | |
| 108 | + <div class="col-xs-12 col-sm-4"> | |
| 109 | + <div class="box-simple"> | |
| 110 | + <div class="icon"> | |
| 111 | + <img src="/img/icon_3.png"> | |
| 112 | + </div> | |
| 113 | + <div class="h3"><?= \Yii::t('app', 'index_title3') ?></div> | |
| 114 | + <p><?= \Yii::t('app', 'index_subtitle3') ?></p> | |
| 115 | + </div> | |
| 116 | + </div> | |
| 138 | 117 | </div> |
| 139 | - </section> | |
| 140 | - | |
| 141 | -<!-- <section class="bar background-white objects-main-wr">--> | |
| 142 | -<!-- <div class="container">--> | |
| 143 | -<!-- <div class="col-md-12">--> | |
| 144 | -<!-- <div class="heading text-center">--> | |
| 145 | -<!-- <h2>--><?//=\Yii::t('app', 'index_objects')?><!--</h2>--> | |
| 146 | -<!-- </div>--> | |
| 147 | -<!----> | |
| 148 | -<!-- <div class="row portfolio">--> | |
| 149 | -<!-- <div class="col-sm-6">--> | |
| 150 | -<!-- <div class="box-image">--> | |
| 151 | -<!-- <div class="image">--> | |
| 152 | -<!-- <div class="image_link_wr">--> | |
| 153 | -<!-- <a href="https://youtu.be/HymA-lcE14c" target="_blank" class="image_link" style="background-image:url('/img/video_yt.jpg');"></a>--> | |
| 154 | -<!-- </div>--> | |
| 155 | -<!-- <div class="img-title">--> | |
| 156 | -<!-- <table>--> | |
| 157 | -<!-- <tr>--> | |
| 158 | -<!-- <td class="buts text-left">--> | |
| 159 | -<!-- <a href="https://youtu.be/HymA-lcE14c" class="sqre_btn blue_arrow" target="_blank" title="--><?//= Yii::t('app', 'yt1') ?><!--"></a>--> | |
| 160 | -<!-- <a href="#" class="btn sqre_btn yellow_calc modaled init-button-сalculate" data-title="--><?//= Yii::t('app', 'modal1') ?><!--" data-toggle="modal" data-target="#feedback-modal"></a>--> | |
| 161 | -<!-- </td>--> | |
| 162 | -<!-- <td class="i-title" valign="center">--> | |
| 163 | -<!-- <p class="pr_title2"><a href="https://youtu.be/HymA-lcE14c" target="_blank">--><?//= Yii::t('app', 'sect2_7') ?><!--</a></p>--> | |
| 164 | -<!-- </td>--> | |
| 165 | -<!-- </tr>--> | |
| 166 | -<!-- </table>--> | |
| 167 | -<!-- </div>--> | |
| 168 | -<!-- </div>--> | |
| 169 | -<!-- </div>--> | |
| 170 | -<!-- <!-- /.box-image --> | |
| 171 | -<!-- </div>--> | |
| 172 | -<!-- <div class="col-sm-6">--> | |
| 173 | -<!-- <div class="box-image">--> | |
| 174 | -<!-- <div class="image">--> | |
| 175 | -<!-- <div class="image_link_wr">--> | |
| 176 | -<!-- <a href="#" class="image_link open_gal" id="gal02" style="background-image:url('/img/pic01.jpg');" data-title="--><?//= Yii::t('app', 'modal_text2') ?><!--"></a>--> | |
| 177 | -<!-- </div>--> | |
| 178 | -<!-- <div class="img-title">--> | |
| 179 | -<!-- <table>--> | |
| 180 | -<!-- <tr>--> | |
| 181 | -<!-- <td class="buts text-left">--> | |
| 182 | -<!-- <a href="#" class="open_gal sqre_btn blue_arrow" id="gal02" data-title="--><?//= Yii::t('app', 'modal_text2') ?><!--"></a>--> | |
| 183 | -<!-- <a href="#" class="btn sqre_btn yellow_calc modaled init-button-сalculate" data-title="--><?//= Yii::t('app', 'sect2_8') ?><!--" data-toggle="modal" data-target="#feedback-modal"></a>--> | |
| 184 | -<!-- </td>--> | |
| 185 | -<!-- <td class="i-title" valign="center">--> | |
| 186 | -<!-- <p class="pr_title2"><a href="#" class="open_gal" id="gal02">--><?//= Yii::t('app', 'sect2_8') ?><!--</a></p>--> | |
| 187 | -<!-- </td>--> | |
| 188 | -<!-- </tr>--> | |
| 189 | -<!-- </table>--> | |
| 190 | -<!-- </div>--> | |
| 191 | -<!-- </div>--> | |
| 192 | -<!-- </div>--> | |
| 193 | -<!-- <!-- /.box-image --> | |
| 194 | -<!-- </div>--> | |
| 195 | -<!-- <div class="col-sm-6">--> | |
| 196 | -<!-- <div class="box-image">--> | |
| 197 | -<!-- <div class="image">--> | |
| 198 | -<!-- <div class="image_link_wr">--> | |
| 199 | -<!-- <a href="#" class="image_link open_gal" id="gal01" style="background-image:url('/img/pic02.jpg');" data-title="--><?//= Yii::t('app', 'modal_text1') ?><!--"></a>--> | |
| 200 | -<!-- </div>--> | |
| 201 | -<!-- <div class="img-title">--> | |
| 202 | -<!-- <table>--> | |
| 203 | -<!-- <tr>--> | |
| 204 | -<!-- <td class="buts text-left">--> | |
| 205 | -<!-- <a href="#" class="open_gal sqre_btn blue_arrow" id="gal01" data-title="--><?//= Yii::t('app', 'modal_text1') ?><!--"></a>--> | |
| 206 | -<!-- <a href="#" class="btn sqre_btn yellow_calc modaled init-button-сalculate" data-title="--><?//= Yii::t('app', 'sect2_9') ?><!--" data-toggle="modal" data-target="#feedback-modal"></a>--> | |
| 207 | -<!-- </td>--> | |
| 208 | -<!-- <td class="i-title" valign="center">--> | |
| 209 | -<!-- <p class="pr_title2">--> | |
| 210 | -<!-- <a href="#" class="open_gal" id="gal01">--><?//= Yii::t('app', 'sect2_9') ?><!--</a>--> | |
| 211 | -<!-- </p>--> | |
| 212 | -<!-- </td>--> | |
| 213 | -<!-- </tr>--> | |
| 214 | -<!-- </table>--> | |
| 215 | -<!-- </div>--> | |
| 216 | -<!-- </div>--> | |
| 217 | -<!-- </div>--> | |
| 218 | -<!-- <!-- /.box-image --> | |
| 219 | -<!-- </div>--> | |
| 220 | -<!-- <div class="col-sm-6">--> | |
| 221 | -<!-- <div class="box-image">--> | |
| 222 | -<!-- <div class="image">--> | |
| 223 | -<!-- <div class="image_link_wr">--> | |
| 224 | -<!-- <a href="#" class="image_link open_gal" id="gal03" style="background-image:url('/img/pic03.jpg');" data-title="--><?//= Yii::t('app', 'modal_text3') ?><!--"></a>--> | |
| 225 | -<!-- </div>--> | |
| 226 | -<!-- <div class="img-title">--> | |
| 227 | -<!-- <table>--> | |
| 228 | -<!-- <tr>--> | |
| 229 | -<!-- <td class="buts text-left">--> | |
| 230 | -<!-- <a href="#" class="open_gal sqre_btn blue_arrow" id="gal03" data-title="--><?//= Yii::t('app', 'modal_text3') ?><!--"></a>--> | |
| 231 | -<!-- <a href="#" class="btn sqre_btn yellow_calc modaled init-button-сalculate" data-title="--><?//= Yii::t('app', 'sect2_10') ?><!--" data-toggle="modal" data-target="#feedback-modal"></a>--> | |
| 232 | -<!-- </td>--> | |
| 233 | -<!-- <td class="i-title" valign="center">--> | |
| 234 | -<!-- <p class="pr_title2"><a href="#" class="open_gal" id="gal03">--><?//= Yii::t('app', 'sect2_10') ?><!--</a></p>--> | |
| 235 | -<!-- </td>--> | |
| 236 | -<!-- </tr>--> | |
| 237 | -<!-- </table>--> | |
| 238 | -<!-- </div>--> | |
| 239 | -<!-- </div>--> | |
| 240 | -<!-- </div>--> | |
| 241 | -<!-- <!-- /.box-image --> | |
| 242 | -<!-- </div>--> | |
| 243 | -<!-- </div>--> | |
| 244 | -<!-- <div class="row">--> | |
| 245 | -<!-- <div class="col-md-12 col-xs-12" style="text-align:center;margin-top: 20px;margin-bottom: -35px;">--> | |
| 246 | -<!-- <a--> | |
| 247 | -<!-- href="--><?//= Url::toRoute(['blog/index'])?><!--"--> | |
| 248 | -<!-- class="button1 more-projects"--> | |
| 249 | -<!-- >--> | |
| 250 | -<!-- --><?//= Yii::t('app', 'sect2_6') ?> | |
| 251 | -<!-- </a>--> | |
| 252 | -<!-- </div>--> | |
| 253 | -<!-- </div>--> | |
| 254 | -<!-- </div>--> | |
| 255 | -<!-- </div>--> | |
| 256 | -<!-- </section>--> | |
| 257 | - | |
| 258 | -<!-- новый блок с объектами для главной--> | |
| 259 | - <section class="bar background-white objects-main-wr"> | |
| 260 | - <div class="container"> | |
| 261 | - <div class="col-md-12"> | |
| 262 | - <div class="heading text-center"> | |
| 263 | - <h2 class="h2"><?=\Yii::t('app', 'index_objects')?></h2> | |
| 264 | - </div> | |
| 265 | - <div class="row portfolio"> | |
| 266 | - <?php | |
| 267 | - foreach ($objects as $object) { | |
| 268 | - ?> | |
| 269 | - <div class="col-sm-6"> | |
| 270 | - <div class="box-image"> | |
| 271 | - <div class="image"> | |
| 272 | - <div class="image_link_wr"> | |
| 273 | - <a href="<?=\yii\helpers\Url::toRoute( | |
| 274 | - [ | |
| 275 | - 'object/view', | |
| 276 | - 'alias' => $object->lang->alias, | |
| 277 | - ] | |
| 278 | - ) ?>" class="image_link"> | |
| 279 | - <?=$object->image->getImg([])?> | |
| 280 | - </a> | |
| 281 | - </div> | |
| 282 | - <div class="img-title"> | |
| 283 | - <table> | |
| 284 | - <tr> | |
| 285 | - <td class="buts text-left"> | |
| 286 | - <a href="<?=\yii\helpers\Url::toRoute( | |
| 287 | - [ | |
| 288 | - 'object/view', | |
| 289 | - 'alias' => $object->lang->alias, | |
| 290 | - ] | |
| 291 | - ) ?>" class="sqre_btn blue_arrow" alt="<?=$object->lang->object_name?>"></a> | |
| 292 | - <a href="#" class="btn sqre_btn yellow_calc modaled init-button-сalculate press-consultation" data-title="<?= \Yii::t('app', 'modal1') ?>" data-toggle="modal" data-target="#feedback-modal"> | |
| 293 | - <div class="phone_hint"><?= \Yii::t('app', 'get_consult') ?></div> | |
| 294 | - </a> | |
| 295 | - </td> | |
| 296 | - <td class="i-title" valign="center"> | |
| 297 | - <p class="pr_title2"> | |
| 298 | - <a href="<?=\yii\helpers\Url::toRoute( | |
| 299 | - [ | |
| 300 | - 'object/view', | |
| 301 | - 'alias' => $object->lang->alias, | |
| 302 | - ] | |
| 303 | - ) ?>"> | |
| 304 | - <?=$object->lang->object_name?> | |
| 305 | - </a> | |
| 306 | - </p> | |
| 307 | - </td> | |
| 308 | - </tr> | |
| 309 | - </table> | |
| 310 | - </div> | |
| 311 | - </div> | |
| 312 | - </div> | |
| 313 | - </div> | |
| 314 | - <?php | |
| 315 | - } | |
| 316 | - ?> | |
| 317 | - </div> | |
| 318 | - <div class="row"> | |
| 319 | - <div class="col-md-12 col-xs-12" style="text-align:center;margin-top: 20px;margin-bottom: -35px;"> | |
| 320 | - <a href='<?=Url::toRoute("object/index")?>' class="button1 more-projects"><?= Yii::t('app', 'sect2_6') ?></a> | |
| 321 | - </div> | |
| 322 | - </div> | |
| 323 | - </div> | |
| 118 | + <div class="col-xs-12 col-sm-4 col-md-offset-2 col-sm-offset-2"> | |
| 119 | + <div class="box-simple"> | |
| 120 | + <div class="icon"> | |
| 121 | + <img src="/img/icon_4.png"> | |
| 324 | 122 | </div> |
| 325 | - </section> | |
| 326 | - | |
| 327 | - | |
| 328 | - <section class="blue-fon no-mg economy-wr"> | |
| 329 | - <div class="container"> | |
| 330 | - <div class="heading text-center"> | |
| 331 | - <h2 class="h2 big-text"><?=\Yii::t('app', 'index_economy1')?> <br/><?=\Yii::t('app', 'index_economy2')?></h2> | |
| 123 | + <div class="h3"><?= \Yii::t('app', 'index_title4') ?></div> | |
| 124 | + <p><?= \Yii::t('app', 'index_subtitle4') ?></p> | |
| 125 | + </div> | |
| 126 | + </div> | |
| 127 | + <div class="col-xs-12 col-sm-4"> | |
| 128 | + <div class="box-simple"> | |
| 129 | + <div class="icon"> | |
| 130 | + <img src="/img/icon_5.png"> | |
| 332 | 131 | </div> |
| 333 | - <div class="row"> | |
| 334 | - <div class="col-xs-12 col-sm-4"> | |
| 335 | - <div class="box-simple"> | |
| 336 | - <div class="icon"> | |
| 337 | - <img src="/img/icon_sentence.png"> | |
| 338 | - </div> | |
| 339 | - <div class="h3"><?=\Yii::t('app', 'index_economy3')?></div> | |
| 340 | - <p><?=\Yii::t('app', 'index_economy4')?></p> | |
| 341 | - </div> | |
| 342 | - </div> | |
| 343 | - <div class="col-xs-12 col-sm-4"> | |
| 344 | - <div class="box-simple"> | |
| 345 | - <div class="icon"> | |
| 346 | - <img src="/img/icon_agreement.png"> | |
| 347 | - </div> | |
| 348 | - <div class="h3"><?=\Yii::t('app', 'index_economy5')?></div> | |
| 349 | - <p><?=\Yii::t('app', 'index_economy6')?></p> | |
| 350 | - </div> | |
| 351 | - </div> | |
| 352 | - <div class="col-xs-12 col-sm-4"> | |
| 353 | - <div class="box-simple"> | |
| 354 | - <div class="icon"> | |
| 355 | - <img src="/img/icon_installation.png"> | |
| 356 | - </div> | |
| 357 | - <div class="h3"><?=\Yii::t('app', 'index_economy7')?></div> | |
| 358 | - <p><?=\Yii::t('app', 'index_economy8')?></p> | |
| 359 | - </div> | |
| 360 | - </div> | |
| 361 | - <div class="col-xs-12 col-sm-4"> | |
| 362 | - <div class="box-simple"> | |
| 363 | - <div class="icon"> | |
| 364 | - <img src="/img/icon_tarrif.png"> | |
| 365 | - </div> | |
| 366 | - <div class="h3"><?=\Yii::t('app', 'index_economy13')?></div> | |
| 367 | - <p><?=\Yii::t('app', 'index_economy14')?></p> | |
| 368 | - </div> | |
| 369 | - </div> | |
| 370 | - <div class="col-xs-12 col-sm-4"> | |
| 371 | - <div class="box-simple"> | |
| 372 | - <div class="icon"> | |
| 373 | - <img src="/img/icon_service.png"> | |
| 374 | - </div> | |
| 375 | - <div class="h3"><?=\Yii::t('app', 'index_economy11')?></div> | |
| 376 | - <p><?=\Yii::t('app', 'index_economy12')?></p> | |
| 132 | + <div class="h3"><?= \Yii::t('app', 'index_title5') ?></div> | |
| 133 | + <p><?= \Yii::t('app', 'index_subtitle5') ?></p> | |
| 134 | + </div> | |
| 135 | + </div> | |
| 136 | + <div class="col-md-12 col-xs-12"> | |
| 137 | + <div class="row"> | |
| 138 | + <div class="box-simple"> | |
| 139 | + <a href="#" class="btn button1 icon_car modaled init-button-consultation press-specialist" data-title="<?= \Yii::t( | |
| 140 | + 'app', | |
| 141 | + 'index_data1' | |
| 142 | + ) ?>" data-toggle="modal" data-target="#feedback-modal"><?= \Yii::t('app', 'index_modal1') ?> | |
| 143 | + <span><?= \Yii::t('app', 'index_modal2') ?></span></a> | |
| 144 | + <a href="#" class="btn button1 icon_calc modaled init-button-consultation press-calculate" data-toggle="modal" data-target="#calculate-modal"><?= \Yii::t( | |
| 145 | + 'app', | |
| 146 | + 'index_modal3' | |
| 147 | + ) ?> <span><?= \Yii::t('app', 'index_modal4') ?></span></a> | |
| 148 | + </div> | |
| 149 | + </div> | |
| 150 | + </div> | |
| 151 | + </div> | |
| 152 | + </div> | |
| 153 | + </section> | |
| 154 | + | |
| 155 | + <section class="bar background-white objects-main-wr"> | |
| 156 | + <div class="container"> | |
| 157 | + <div class="col-md-12"> | |
| 158 | + <div class="heading text-center"> | |
| 159 | + <h2 class="h2"><?= \Yii::t('app', 'index_objects') ?></h2> | |
| 160 | + </div> | |
| 161 | + <div class="row portfolio"> | |
| 162 | + <?php | |
| 163 | + foreach ($objects as $object) { | |
| 164 | + ?> | |
| 165 | + <div class="col-sm-6"> | |
| 166 | + <div class="box-image"> | |
| 167 | + <div class="image"> | |
| 168 | + <div class="image_link_wr"> | |
| 169 | + <a href="<?= \yii\helpers\Url::toRoute( | |
| 170 | + [ | |
| 171 | + 'object/view', | |
| 172 | + 'alias' => $object->lang->alias, | |
| 173 | + ] | |
| 174 | + ) ?>" class="image_link"> | |
| 175 | + <?= $object->image->getImg([]) ?> | |
| 176 | + </a> | |
| 377 | 177 | </div> |
| 378 | - </div> | |
| 379 | - <div class="col-xs-12 col-sm-4"> | |
| 380 | - <div class="box-simple"> | |
| 381 | - <div class="icon"> | |
| 382 | - <img src="/img/icon_recomendation.png"> | |
| 383 | - </div> | |
| 384 | - <div class="h3"><?=\Yii::t('app', 'index_economy9')?></div> | |
| 385 | - <p><?=\Yii::t('app', 'index_economy10')?></p> | |
| 178 | + <div class="img-title"> | |
| 179 | + <table> | |
| 180 | + <tr> | |
| 181 | + <td class="buts text-left"> | |
| 182 | + <a href="<?= \yii\helpers\Url::toRoute( | |
| 183 | + [ | |
| 184 | + 'object/view', | |
| 185 | + 'alias' => $object->lang->alias, | |
| 186 | + ] | |
| 187 | + ) ?>" class="sqre_btn blue_arrow" alt="<?= $object->lang->object_name ?>"></a> | |
| 188 | + <a href="#" class="btn sqre_btn yellow_calc modaled init-button-сalculate press-consultation" data-title="<?= \Yii::t( | |
| 189 | + 'app', | |
| 190 | + 'modal1' | |
| 191 | + ) ?>" data-toggle="modal" data-target="#feedback-modal"> | |
| 192 | + <div class="phone_hint"><?= \Yii::t('app', 'get_consult') ?></div> | |
| 193 | + </a> | |
| 194 | + </td> | |
| 195 | + <td class="i-title" valign="center"> | |
| 196 | + <p class="pr_title2"> | |
| 197 | + <a href="<?= \yii\helpers\Url::toRoute( | |
| 198 | + [ | |
| 199 | + 'object/view', | |
| 200 | + 'alias' => $object->lang->alias, | |
| 201 | + ] | |
| 202 | + ) ?>"> | |
| 203 | + <?= $object->lang->object_name ?> | |
| 204 | + </a> | |
| 205 | + </p> | |
| 206 | + </td> | |
| 207 | + </tr> | |
| 208 | + </table> | |
| 386 | 209 | </div> |
| 210 | + </div> | |
| 387 | 211 | </div> |
| 388 | - <div class="col-md-12 col-xs-12" style="text-align:center;margin-bottom:40px;"> | |
| 389 | - <a href="#" class="btn button1 icon_stat modaled init-button-order press-order" data-title="<?= \Yii::t('app', 'modalstation') ?>" data-toggle="modal" data-target="#feedback-modal"><?=\Yii::t('app', 'index_economy15')?> <span><?=\Yii::t('app', 'index_economy16')?></span></a> | |
| 390 | - </div> | |
| 212 | + </div> | |
| 213 | + <?php | |
| 214 | + } | |
| 215 | + ?> | |
| 216 | + </div> | |
| 217 | + <div class="row"> | |
| 218 | + <div class="col-md-12 col-xs-12" style="text-align:center;margin-top: 20px;margin-bottom: -35px;"> | |
| 219 | + <a href='<?= Url::toRoute("object/index") ?>' class="button1 more-projects"><?= Yii::t( | |
| 220 | + 'app', | |
| 221 | + 'sect2_6' | |
| 222 | + ) ?></a> | |
| 223 | + </div> | |
| 224 | + </div> | |
| 225 | + </div> | |
| 226 | + </div> | |
| 227 | + </section> | |
| 228 | + | |
| 229 | + | |
| 230 | + <section class="blue-fon no-mg economy-wr"> | |
| 231 | + <div class="container"> | |
| 232 | + <div class="heading text-center"> | |
| 233 | + <h2 class="h2 big-text"><?= \Yii::t('app', 'index_economy1') ?> <br/><?= \Yii::t('app', 'index_economy2') ?> | |
| 234 | + </h2> | |
| 235 | + </div> | |
| 236 | + <div class="row"> | |
| 237 | + <div class="col-xs-12 col-sm-4"> | |
| 238 | + <div class="box-simple"> | |
| 239 | + <div class="icon"> | |
| 240 | + <img src="/img/icon_sentence.png"> | |
| 391 | 241 | </div> |
| 242 | + <div class="h3"><?= \Yii::t('app', 'index_economy3') ?></div> | |
| 243 | + <p><?= \Yii::t('app', 'index_economy4') ?></p> | |
| 244 | + </div> | |
| 392 | 245 | </div> |
| 393 | - </section> | |
| 394 | - <section class="bar background-white no-mg"> | |
| 395 | - <div class="container"> | |
| 396 | - <div class="heading text-center"> | |
| 397 | - <h2><?=\Yii::t('app', 'index_medias1')?></h2> | |
| 246 | + <div class="col-xs-12 col-sm-4"> | |
| 247 | + <div class="box-simple"> | |
| 248 | + <div class="icon"> | |
| 249 | + <img src="/img/icon_agreement.png"> | |
| 398 | 250 | </div> |
| 399 | - <div class="about row"> | |
| 400 | - <div class="col-md-8 col-sm-12 col-xs-12 smi_left"> | |
| 401 | - <div class="video"> | |
| 402 | - <iframe width="100%" height="100%" src="https://www.youtube.com/embed/4XJ_UHggzto" frameborder="0" allowfullscreen=""></iframe> | |
| 403 | - </div> | |
| 404 | - <div class="text lead quote"> | |
| 405 | - <?=\Yii::t('app', 'index_medias2')?> | |
| 406 | - </div> | |
| 407 | - </div> | |
| 408 | - <div class="col-md-4 col-sm-12 col-xs-12 smi_right"> | |
| 409 | - <div class="post video"> | |
| 410 | - <iframe width="100%" height="100%" src="https://www.youtube.com/embed/NCNqrRzXpTw" frameborder="0" allowfullscreen=""></iframe> | |
| 411 | - </div> | |
| 412 | - <div class="post" style="background-image: url('/img/post_cover_2.jpg');"> | |
| 413 | - <a | |
| 414 | - rel="nofollow" | |
| 415 | - href="http://censor.net.ua/resonance/322240/kak_ya_stal_nezavisimym_ot_veernyh_otklyucheniyi_pervaya_domashnyaya_elektrostantsiya_v_kievskoyi_oblasti" | |
| 416 | - target="_blank" | |
| 417 | - > | |
| 418 | - <div class="title"><?=\Yii::t('app', 'index_medias3')?></div> | |
| 419 | - <div class="blue_arrow"></div> | |
| 420 | - </a> | |
| 421 | - </div> | |
| 422 | - <div class="post" style="background-image: url('/img/post_cover_3.jpg');"> | |
| 423 | - <a | |
| 424 | - rel="nofollow" | |
| 425 | - href="https://ecotechnica.com.ua/stati/2927-kakie-solnechnye-elektrostantsii-perspektivnee-kryshnye-ili-nazemnye.html" | |
| 426 | - target="_blank" | |
| 427 | - > | |
| 428 | - <div class="title"><?=\Yii::t('app', 'index_medias4')?></div> | |
| 429 | - <div class="blue_arrow"></div> | |
| 430 | - </a> | |
| 431 | - </div> | |
| 432 | - | |
| 433 | - </div> | |
| 251 | + <div class="h3"><?= \Yii::t('app', 'index_economy5') ?></div> | |
| 252 | + <p><?= \Yii::t('app', 'index_economy6') ?></p> | |
| 253 | + </div> | |
| 254 | + </div> | |
| 255 | + <div class="col-xs-12 col-sm-4"> | |
| 256 | + <div class="box-simple"> | |
| 257 | + <div class="icon"> | |
| 258 | + <img src="/img/icon_installation.png"> | |
| 434 | 259 | </div> |
| 435 | - <div class="col-md-12 col-xs-12" style="text-align:center;margin-top: 20px;margin-bottom: -35px;"> | |
| 436 | - <a | |
| 437 | - href="<?= Url::toRoute(['object/index'])?>" | |
| 438 | - class="button1 more-projects" | |
| 439 | - > | |
| 440 | - <?=\Yii::t('app', 'more_about_ours')?> | |
| 441 | - </a> | |
| 260 | + <div class="h3"><?= \Yii::t('app', 'index_economy7') ?></div> | |
| 261 | + <p><?= \Yii::t('app', 'index_economy8') ?></p> | |
| 262 | + </div> | |
| 263 | + </div> | |
| 264 | + <div class="col-xs-12 col-sm-4"> | |
| 265 | + <div class="box-simple"> | |
| 266 | + <div class="icon"> | |
| 267 | + <img src="/img/icon_tarrif.png"> | |
| 442 | 268 | </div> |
| 269 | + <div class="h3"><?= \Yii::t('app', 'index_economy13') ?></div> | |
| 270 | + <p><?= \Yii::t('app', 'index_economy14') ?></p> | |
| 271 | + </div> | |
| 443 | 272 | </div> |
| 444 | - </section> | |
| 445 | - | |
| 446 | - <section class="bar background-gray no-mb partners-wr"> | |
| 447 | - <div class="container"> | |
| 448 | - <div class="row"> | |
| 449 | - <div class="col-md-12"> | |
| 450 | - <div class="heading text-center"> | |
| 451 | - <h2><?= \Yii::t('app', 'object_partners') ?></h2> | |
| 452 | - </div> | |
| 453 | - | |
| 454 | - <ul class="owl-carousel customers"> | |
| 455 | - <li class="item"> | |
| 456 | - <a href="#" target="_blank"><img src="/img/customer-1.png" alt="" class="img-responsive"></a> | |
| 457 | - </li> | |
| 458 | - <li class="item"> | |
| 459 | - <a href="#" target="_blank"><img src="/img/customer-2.png" alt="" class="img-responsive"></a> | |
| 460 | - </li> | |
| 461 | - <li class="item"> | |
| 462 | - <a href="#" target="_blank"><img src="/img/customer-3.png" alt="" class="img-responsive"></a> | |
| 463 | - </li> | |
| 464 | - <li class="item"> | |
| 465 | - <a href="#" target="_blank"><img src="/img/customer-4.png" alt="" class="img-responsive"></a> | |
| 466 | - </li> | |
| 467 | - <li class="item"> | |
| 468 | - <a href="#" target="_blank"><img src="/img/customer-5.png" alt="" class="img-responsive"></a> | |
| 469 | - </li> | |
| 470 | - <li class="item"> | |
| 471 | - <a href="#" target="_blank"><img src="/img/customer-6.png" alt="" class="img-responsive"></a> | |
| 472 | - </li> | |
| 473 | - </ul> | |
| 474 | - <!-- /.owl-carousel --> | |
| 475 | - </div> | |
| 476 | - | |
| 273 | + <div class="col-xs-12 col-sm-4"> | |
| 274 | + <div class="box-simple"> | |
| 275 | + <div class="icon"> | |
| 276 | + <img src="/img/icon_service.png"> | |
| 477 | 277 | </div> |
| 278 | + <div class="h3"><?= \Yii::t('app', 'index_economy11') ?></div> | |
| 279 | + <p><?= \Yii::t('app', 'index_economy12') ?></p> | |
| 280 | + </div> | |
| 478 | 281 | </div> |
| 479 | - </section> | |
| 480 | -<?php if($currentLang->url == 'ru'){ ?> | |
| 481 | - <section class="section-text"> | |
| 482 | - <div class="container"> | |
| 483 | - <div class="row"> | |
| 484 | - <div class="col-xs-12"> | |
| 485 | - <div class="home-text-wr"> | |
| 486 | - | |
| 487 | - <p>Проектирование солнечных станций в Украине — это разработка технической документации, а также сметы вашего проекта.</p> | |
| 488 | - | |
| 489 | - <p>В проектирование входит ТЭО, обязательный анализ потребления энергии, электросхема, продумывание монтажа опорных компонентов, а также расчеты наиболее оптимального угла для выработки солнечной энергии и согласование с контролирующими органами.</p> | |
| 490 | - | |
| 491 | - <h2>Этапы проектирования солнечных электростанции</h2> | |
| 492 | - | |
| 493 | - <p>В перечень услуг проектирования солнечной электростанции входит:</p> | |
| 494 | - <ul> | |
| 495 | - <li>Составление пояснительной записки в которой собраны данные про показатели электроснабжения, электропотребителей, расчет нагрузок, учет электроэнергии, контур заземления, защитные меры, и расчетная таблица электрической нагрузки на розетки.</li> | |
| 496 | - | |
| 497 | - <li>Оценка влияния на окружающею среду — это оценка влияния СЭС на близлежащие водоемы, флору и фауну региона строительства объекта.</li> | |
| 498 | - | |
| 499 | - <li>Генеральный план проекта солнечной электростанции — это чертеж-карта с инженерными отметками размещения объекта.</li> | |
| 500 | - | |
| 501 | - <li>Архитектурно-строительные решения — это составление реализуемого фундамента под КТП (комплектные трансформаторные подстанции), проведение видеонаблюдения и охраны территории, а также монтаж подходящих металлоконструкций крепления фотомодулей.</li> | |
| 502 | - | |
| 503 | - <li>Описание методов изготовления и вида металла для металлоконструкций вашего проекта.</li> | |
| 504 | - | |
| 505 | - <li>Электротехнические решения — готовый документ в котором описываются энергоэффективные решения для вашего проекта, в частности, возможность выработки солнечной энергии с помощью СЭС. </li> | |
| 506 | - | |
| 507 | - <li>Создание 3D-модели будущей СЭС с помощью специального программного обеспечения.</li> | |
| 508 | - | |
| 509 | - <li>Сметная документация — это завершающий этап проектирования солнечных электростанций с описанием целесообразности и реализуемости, в него также входит просчет объекта (как государственного) на основе денег из бюджета Украины для дальнейшего подключения по Зеленому тарифу.</li> | |
| 510 | - </ul> | |
| 511 | - <h2>Строительство солнечных электростанций</h2> | |
| 512 | - | |
| 513 | - <p>После проектирования СЭС осуществляется строительство солнечных электростанций. На этом этапе делают опорные установки и конструкции под специальным углом наклона, также на крышу монтируют кремниевые или поликристаллические солнечные батареи.</p> | |
| 514 | - | |
| 515 | - <h2>Почему это мы?</h2> | |
| 516 | - | |
| 517 | - <p>Наш большой опыт позволил воплотить в жизнь уже свыше 200 проектов, а также проектирование первой солнечной электростанции по Зеленому тарифу в Киевской области. Преимущества компании KB Energy:</p> | |
| 518 | - <ul> | |
| 519 | - <li>Полное сопровождение клиентов по Зеленому тарифу;</li> | |
| 520 | - | |
| 521 | - <li>Штат высококвалифированных команды;</li> | |
| 522 | - | |
| 523 | - <li>Поставка оригинального оборудования;</li> | |
| 524 | - | |
| 525 | - <li>Консультация по всем вопросам входящее в стоимость; </li> | |
| 526 | - | |
| 527 | - <li>Предоставляем решения для частных и коммерческих проектов;</li> | |
| 528 | - | |
| 529 | - <li>Партнерство с Укргазбанком;</li> | |
| 530 | - | |
| 531 | - <li>Быстрая реализация вашего проекта.</li></ul> | |
| 532 | - | |
| 533 | - </div> | |
| 534 | - </div> | |
| 282 | + <div class="col-xs-12 col-sm-4"> | |
| 283 | + <div class="box-simple"> | |
| 284 | + <div class="icon"> | |
| 285 | + <img src="/img/icon_recomendation.png"> | |
| 535 | 286 | </div> |
| 287 | + <div class="h3"><?= \Yii::t('app', 'index_economy9') ?></div> | |
| 288 | + <p><?= \Yii::t('app', 'index_economy10') ?></p> | |
| 289 | + </div> | |
| 290 | + </div> | |
| 291 | + <div class="col-md-12 col-xs-12" style="text-align:center;margin-bottom:40px;"> | |
| 292 | + <a href="#" class="btn button1 icon_stat modaled init-button-order press-order" data-title="<?= \Yii::t( | |
| 293 | + 'app', | |
| 294 | + 'modalstation' | |
| 295 | + ) ?>" data-toggle="modal" data-target="#feedback-modal"><?= \Yii::t('app', 'index_economy15') ?> | |
| 296 | + <span><?= \Yii::t('app', 'index_economy16') ?></span></a> | |
| 536 | 297 | </div> |
| 298 | + </div> | |
| 299 | + </div> | |
| 537 | 300 | </section> |
| 538 | - <?php } ?> | |
| 539 | - | |
| 540 | - <section class="no-mg"> | |
| 541 | - <div id="map"> | |
| 542 | - | |
| 301 | + <section class="bar background-white no-mg"> | |
| 302 | + <div class="container"> | |
| 303 | + <div class="heading text-center"> | |
| 304 | + <h2><?= \Yii::t('app', 'index_medias1') ?></h2> | |
| 305 | + </div> | |
| 306 | + <div class="about row"> | |
| 307 | + <div class="col-md-8 col-sm-12 col-xs-12 smi_left"> | |
| 308 | + <div class="video"> | |
| 309 | + <iframe width="100%" height="100%" src="https://www.youtube.com/embed/4XJ_UHggzto" frameborder="0" allowfullscreen=""></iframe> | |
| 310 | + </div> | |
| 311 | + <div class="text lead quote"> | |
| 312 | + <?= \Yii::t('app', 'index_medias2') ?> | |
| 313 | + </div> | |
| 543 | 314 | </div> |
| 544 | - </section> | |
| 545 | -</div> | |
| 546 | 315 | \ No newline at end of file |
| 316 | + <div class="col-md-4 col-sm-12 col-xs-12 smi_right"> | |
| 317 | + <div class="post video"> | |
| 318 | + <iframe width="100%" height="100%" src="https://www.youtube.com/embed/NCNqrRzXpTw" frameborder="0" allowfullscreen=""></iframe> | |
| 319 | + </div> | |
| 320 | + <div class="post" style="background-image: url('/img/post_cover_2.jpg');"> | |
| 321 | + <a | |
| 322 | + rel="nofollow" | |
| 323 | + href="http://censor.net.ua/resonance/322240/kak_ya_stal_nezavisimym_ot_veernyh_otklyucheniyi_pervaya_domashnyaya_elektrostantsiya_v_kievskoyi_oblasti" | |
| 324 | + target="_blank" | |
| 325 | + > | |
| 326 | + <div class="title"><?= \Yii::t('app', 'index_medias3') ?></div> | |
| 327 | + <div class="blue_arrow"></div> | |
| 328 | + </a> | |
| 329 | + </div> | |
| 330 | + <div class="post" style="background-image: url('/img/post_cover_3.jpg');"> | |
| 331 | + <a | |
| 332 | + rel="nofollow" | |
| 333 | + href="https://ecotechnica.com.ua/stati/2927-kakie-solnechnye-elektrostantsii-perspektivnee-kryshnye-ili-nazemnye.html" | |
| 334 | + target="_blank" | |
| 335 | + > | |
| 336 | + <div class="title"><?= \Yii::t('app', 'index_medias4') ?></div> | |
| 337 | + <div class="blue_arrow"></div> | |
| 338 | + </a> | |
| 339 | + </div> | |
| 340 | + | |
| 341 | + </div> | |
| 342 | + </div> | |
| 343 | + <div class="col-md-12 col-xs-12" style="text-align:center;margin-top: 20px;margin-bottom: -35px;"> | |
| 344 | + <a | |
| 345 | + href="<?= Url::toRoute(['object/index']) ?>" | |
| 346 | + class="button1 more-projects" | |
| 347 | + > | |
| 348 | + <?= \Yii::t('app', 'more_about_ours') ?> | |
| 349 | + </a> | |
| 350 | + </div> | |
| 351 | + </div> | |
| 352 | + </section> | |
| 353 | + | |
| 354 | + <section class="bar background-gray no-mb partners-wr"> | |
| 355 | + <div class="container"> | |
| 356 | + <div class="row"> | |
| 357 | + <div class="col-md-12"> | |
| 358 | + <div class="heading text-center"> | |
| 359 | + <h2><?= \Yii::t('app', 'object_partners') ?></h2> | |
| 360 | + </div> | |
| 361 | + | |
| 362 | + <ul class="owl-carousel customers"> | |
| 363 | + <li class="item"> | |
| 364 | + <a href="#" target="_blank"><img src="/img/customer-1.png" alt="" class="img-responsive"></a> | |
| 365 | + </li> | |
| 366 | + <li class="item"> | |
| 367 | + <a href="#" target="_blank"><img src="/img/customer-2.png" alt="" class="img-responsive"></a> | |
| 368 | + </li> | |
| 369 | + <li class="item"> | |
| 370 | + <a href="#" target="_blank"><img src="/img/customer-3.png" alt="" class="img-responsive"></a> | |
| 371 | + </li> | |
| 372 | + <li class="item"> | |
| 373 | + <a href="#" target="_blank"><img src="/img/customer-4.png" alt="" class="img-responsive"></a> | |
| 374 | + </li> | |
| 375 | + <li class="item"> | |
| 376 | + <a href="#" target="_blank"><img src="/img/customer-5.png" alt="" class="img-responsive"></a> | |
| 377 | + </li> | |
| 378 | + <li class="item"> | |
| 379 | + <a href="#" target="_blank"><img src="/img/customer-6.png" alt="" class="img-responsive"></a> | |
| 380 | + </li> | |
| 381 | + </ul> | |
| 382 | + <!-- /.owl-carousel --> | |
| 383 | + </div> | |
| 384 | + | |
| 385 | + </div> | |
| 386 | + </div> | |
| 387 | + </section> | |
| 388 | + <?php if ($alias) { ?> | |
| 389 | + <section class="section-text"> | |
| 390 | + <div class="container"> | |
| 391 | + <div class="row"> | |
| 392 | + <div class="col-xs-12"> | |
| 393 | + <div class="home-text-wr"> | |
| 394 | + <?= $alias->getText() ?> | |
| 395 | + </div> | |
| 396 | + </div> | |
| 397 | + </div> | |
| 398 | + </div> | |
| 399 | + </section> | |
| 400 | + <?php } ?> | |
| 401 | + | |
| 402 | + <section class="no-mg"> | |
| 403 | + <div id="map"> | |
| 404 | + | |
| 405 | + </div> | |
| 406 | + </section> | |
| 407 | +</div> | ... | ... |