Commit f2d30f9f31b0ac647872d83359f4a734cbab161e

Authored by Timur Kastemirov
2 parents 9f55ae51 1bb73ed3

Merge remote-tracking branch 'origin/master'

common/messages/ru/app.php
... ... @@ -122,4 +122,6 @@ return [
122 122 'Office {office}' => 'Офис {office}',
123 123 'Contact us' => 'Связаться с нами',
124 124 "Show on home page" => "Показать на главной странице",
  125 + 'Go to contact page' => 'На страницу контактов',
  126 + 'Share' => 'Поделиться',
125 127 ];
126 128 \ No newline at end of file
... ...
frontend/views/layouts/main.php
... ... @@ -97,148 +97,148 @@
97 97 <header>
98 98 <!-- *** TOP ***
99 99 _________________________________________________________ -->
100   - <div id="top">
101   - <div class="container">
102   - <div class="row">
103   - <div class="col-xs-5 contact">
104   - <p class="hidden-sm hidden-xs">
105   - <?php
106   - if (!empty($settings->phone)) {
107   - echo \Yii::t('app', 'Contact us on ');
108   - echo Html::a($settings->phone, \Yii::t('app', 'tel:')." {$settings->phone}");
109   - if (!empty($settings->email)) {
110   - echo \Yii::t('app', ' or ');
111   - echo Html::a($settings->email, "mailto:$settings->email");
112   - }
113   - }
114   - ?>
115   - </p>
116   - <p class="hidden-md hidden-lg">
117   - <a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a>
118   - <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a>
119   - </p>
120   - </div>
121   - <div class="col-xs-7">
122   - <div class="social">
123   - <?php
124   - if (!empty($settings->facebook)) {
125   - echo Html::a(
126   - Html::icon(
127   - 'facebook',
128   - [
129   - 'prefix' => 'fa fa-',
130   - ]
131   - ),
132   - $settings->facebook,
133   - [
134   - 'class' => 'external facebook',
135   - 'data' => [
136   - 'animate-hover' => 'pulse',
137   - ],
138   - ]
139   - );
140   - }
141   - ?>
142   - <?php
143   - if (!empty($settings->vk)) {
144   - echo Html::a(
145   - Html::icon(
146   - 'vk',
147   - [
148   - 'prefix' => 'fa fa-',
149   - ]
150   - ),
151   - $settings->vk,
152   - [
153   - 'class' => 'external vk',
154   - 'data' => [
155   - 'animate-hover' => 'pulse',
156   - ],
157   - ]
158   - );
159   - }
160   - ?>
161   - <?php
162   - if (!empty($settings->google)) {
163   - echo Html::a(
164   - Html::icon(
165   - 'google-plus',
166   - [
167   - 'prefix' => 'fa fa-',
168   - ]
169   - ),
170   - $settings->google,
171   - [
172   - 'class' => 'external gplus',
173   - 'data' => [
174   - 'animate-hover' => 'pulse',
175   - ],
176   - ]
177   - );
178   - }
179   - ?>
180   - <?php
181   - if (!empty($settings->twitter)) {
182   - echo Html::a(
183   - Html::icon(
184   - 'twitter',
185   - [
186   - 'prefix' => 'fa fa-',
187   - ]
188   - ),
189   - $settings->twitter,
190   - [
191   - 'class' => 'external twitter',
192   - 'data' => [
193   - 'animate-hover' => 'pulse',
194   - ],
195   - ]
196   - );
197   - }
198   - ?>
199   - <?php
200   - if (!empty($settings->ok)) {
201   - echo Html::a(
202   - Html::icon(
203   - 'odnoklassniki',
204   - [
205   - 'prefix' => 'fa fa-',
206   - ]
207   - ),
208   - $settings->ok,
209   - [
210   - 'class' => 'external odnoklassniki',
211   - 'data' => [
212   - 'animate-hover' => 'pulse',
213   - ],
214   - ]
215   - );
216   - }
217   - ?>
218   - <?php
219   - if (!empty($settings->email)) {
220   - echo Html::a(
221   - Html::icon(
222   - 'envelope',
223   - [
224   - 'prefix' => 'fa fa-',
225   - ]
226   - ),
227   - "mailto:$settings->email",
228   - [
229   - 'class' => 'email',
230   - 'data' => [
231   - 'animate-hover' => 'pulse',
232   - ],
233   - ]
234   - );
235   - }
236   - ?>
237   - </div>
238   - </div>
239   - </div>
240   - </div>
241   - </div>
  100 +<!-- <div id="top">-->
  101 +<!-- <div class="container">-->
  102 +<!-- <div class="row">-->
  103 +<!-- <div class="col-xs-5 contact">-->
  104 +<!-- <p class="hidden-sm hidden-xs">-->
  105 +<!-- --><?php
  106 +// if (!empty($settings->phone)) {
  107 +// echo \Yii::t('app', 'Contact us on ');
  108 +// echo Html::a($settings->phone, \Yii::t('app', 'tel:')." {$settings->phone}");
  109 +// if (!empty($settings->email)) {
  110 +// echo \Yii::t('app', ' or ');
  111 +// echo Html::a($settings->email, "mailto:$settings->email");
  112 +// }
  113 +// }
  114 +// ?>
  115 +<!-- </p>-->
  116 +<!-- <p class="hidden-md hidden-lg">-->
  117 +<!-- <a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a>-->
  118 +<!-- <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a>-->
  119 +<!-- </p>-->
  120 +<!-- </div>-->
  121 +<!-- <div class="col-xs-7">-->
  122 +<!-- <div class="social">-->
  123 +<!-- --><?php
  124 +// if (!empty($settings->facebook)) {
  125 +// echo Html::a(
  126 +// Html::icon(
  127 +// 'facebook',
  128 +// [
  129 +// 'prefix' => 'fa fa-',
  130 +// ]
  131 +// ),
  132 +// $settings->facebook,
  133 +// [
  134 +// 'class' => 'external facebook',
  135 +// 'data' => [
  136 +// 'animate-hover' => 'pulse',
  137 +// ],
  138 +// ]
  139 +// );
  140 +// }
  141 +// ?>
  142 +<!-- --><?php
  143 +// if (!empty($settings->vk)) {
  144 +// echo Html::a(
  145 +// Html::icon(
  146 +// 'vk',
  147 +// [
  148 +// 'prefix' => 'fa fa-',
  149 +// ]
  150 +// ),
  151 +// $settings->vk,
  152 +// [
  153 +// 'class' => 'external vk',
  154 +// 'data' => [
  155 +// 'animate-hover' => 'pulse',
  156 +// ],
  157 +// ]
  158 +// );
  159 +// }
  160 +// ?>
  161 +<!-- --><?php
  162 +// if (!empty($settings->google)) {
  163 +// echo Html::a(
  164 +// Html::icon(
  165 +// 'google-plus',
  166 +// [
  167 +// 'prefix' => 'fa fa-',
  168 +// ]
  169 +// ),
  170 +// $settings->google,
  171 +// [
  172 +// 'class' => 'external gplus',
  173 +// 'data' => [
  174 +// 'animate-hover' => 'pulse',
  175 +// ],
  176 +// ]
  177 +// );
  178 +// }
  179 +// ?>
  180 +<!-- --><?php
  181 +// if (!empty($settings->twitter)) {
  182 +// echo Html::a(
  183 +// Html::icon(
  184 +// 'twitter',
  185 +// [
  186 +// 'prefix' => 'fa fa-',
  187 +// ]
  188 +// ),
  189 +// $settings->twitter,
  190 +// [
  191 +// 'class' => 'external twitter',
  192 +// 'data' => [
  193 +// 'animate-hover' => 'pulse',
  194 +// ],
  195 +// ]
  196 +// );
  197 +// }
  198 +// ?>
  199 +<!-- --><?php
  200 +// if (!empty($settings->ok)) {
  201 +// echo Html::a(
  202 +// Html::icon(
  203 +// 'odnoklassniki',
  204 +// [
  205 +// 'prefix' => 'fa fa-',
  206 +// ]
  207 +// ),
  208 +// $settings->ok,
  209 +// [
  210 +// 'class' => 'external odnoklassniki',
  211 +// 'data' => [
  212 +// 'animate-hover' => 'pulse',
  213 +// ],
  214 +// ]
  215 +// );
  216 +// }
  217 +// ?>
  218 +<!-- --><?php
  219 +// if (!empty($settings->email)) {
  220 +// echo Html::a(
  221 +// Html::icon(
  222 +// 'envelope',
  223 +// [
  224 +// 'prefix' => 'fa fa-',
  225 +// ]
  226 +// ),
  227 +// "mailto:$settings->email",
  228 +// [
  229 +// 'class' => 'email',
  230 +// 'data' => [
  231 +// 'animate-hover' => 'pulse',
  232 +// ],
  233 +// ]
  234 +// );
  235 +// }
  236 +// ?>
  237 +<!-- </div>-->
  238 +<!-- </div>-->
  239 +<!-- </div>-->
  240 +<!-- </div>-->
  241 +<!-- </div>-->
242 242 <!-- *** TOP END *** -->
243 243  
244 244 <div class="small-logo-center text-center hidden-xs hidden-md hidden-lg">
... ... @@ -445,29 +445,29 @@ _________________________________________________________ --&gt;
445 445 <!-- *** FeedBack MODAL END *** -->
446 446  
447 447 <!-- *** Breadcrumbs *** -->
448   - <?php
449   - if (!$isHome) {
450   - ?>
451   - <div id="heading-breadcrumbs">
452   - <div class="container">
453   - <div class="row">
454   - <div class="col-md-7">
455   - <h1><?= $this->title ?></h1>
456   - </div>
457   - <div class="col-md-5">
458   - <?= Breadcrumbs::widget(
459   - [
460   - 'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [],
461   - ]
462   - ) ?>
463   -
464   - </div>
465   - </div>
466   - </div>
467   - </div>
468   - <?php
469   - }
470   - ?>
  448 +<!-- --><?php
  449 +// if (!$isHome) {
  450 +// ?>
  451 +<!-- <div id="heading-breadcrumbs">-->
  452 +<!-- <div class="container">-->
  453 +<!-- <div class="row">-->
  454 +<!-- <div class="col-md-7">-->
  455 +<!-- <h1>--><?//= $this->title ?><!--</h1>-->
  456 +<!-- </div>-->
  457 +<!-- <div class="col-md-5">-->
  458 +<!-- --><?//= Breadcrumbs::widget(
  459 +// [
  460 +// 'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [],
  461 +// ]
  462 +// ) ?>
  463 +<!-- -->
  464 +<!-- </div>-->
  465 +<!-- </div>-->
  466 +<!-- </div>-->
  467 +<!-- </div>-->
  468 +<!-- --><?php
  469 +// }
  470 +// ?>
471 471 <!-- *** Breadcrumbs END *** -->
472 472  
473 473 <?= $content ?>
... ... @@ -477,7 +477,7 @@ _________________________________________________________ --&gt;
477 477  
478 478 <footer id="footer">
479 479 <div class="container">
480   - <div class="col-md-5 col-sm-12">
  480 + <div class="col-md-4 col-sm-12">
481 481 <?php
482 482 if (!empty($settings->about)) {
483 483 ?>
... ... @@ -489,40 +489,43 @@ _________________________________________________________ --&gt;
489 489 <a href="#" class="btn btn-template-transparent-primary" data-toggle="modal" data-target="#feedback-modal"><?php echo \Yii::t('app', 'Contact us'); ?></a>
490 490 </div>
491 491  
492   - <div class="col-md-3 col-sm-12 col-md-offset-1">
  492 + <div class="col-md-5 col-sm-12">
493 493  
494 494 <h4><?php echo \Yii::t('app', 'Contact'); ?></h4>
495 495  
496 496 <p>
497   - <?php
498   - if (!empty($settings->office)) {
499   - echo \Yii::t(
500   - 'app',
501   - 'Office {office}',
502   - [
503   - 'office' => $settings->office,
504   - ]
505   - ) . Html::tag('br');
506   - }
507   - if (!empty($settings->street)) {
508   - echo $settings->street;
509   - if (!empty($settings->house)) {
510   - echo " " . $settings->house;
511   - }
512   - echo Html::tag('br');
513   - }
514   - if (!empty($settings->city)) {
515   - echo $settings->city;
516   - echo Html::tag('br');
517   - }
518   - if (!empty($settings->country)) {
519   - echo Html::tag('strong', $settings->country);
520   - }
521   - ?>
  497 + <b>Адрес:</b> 02095, Украина, г. Киев <br />пр-т. Николая Бажана, 1М, офис 25<br />
  498 + <b>Тел.:</b> <a href="tel:+380676198730">+38 (067) 619-87-30</a><br /><a href="tel:+380444655420">+38 (044) 465-54-20</a><br />
  499 + <b>Почта:</b> <a href="mailto:kbenergy.kiev@gmail.com">kbenergy.kiev@gmail.com</a>
  500 +<!-- --><?php
  501 +// if (!empty($settings->office)) {
  502 +// echo \Yii::t(
  503 +// 'app',
  504 +// 'Office {office}',
  505 +// [
  506 +// 'office' => $settings->office,
  507 +// ]
  508 +// ) . Html::tag('br');
  509 +// }
  510 +// if (!empty($settings->street)) {
  511 +// echo $settings->street;
  512 +// if (!empty($settings->house)) {
  513 +// echo " " . $settings->house;
  514 +// }
  515 +// echo Html::tag('br');
  516 +// }
  517 +// if (!empty($settings->city)) {
  518 +// echo $settings->city;
  519 +// echo Html::tag('br');
  520 +// }
  521 +// if (!empty($settings->country)) {
  522 +// echo Html::tag('strong', $settings->country);
  523 +// }
  524 +// ?>
522 525 </p>
523 526  
524 527 <?= Html::a(
525   - 'Go to contact page',
  528 + \Yii::t('app', 'Go to contact page'),
526 529 [ 'site/contact' ],
527 530 [
528 531 'class' => 'btn btn-small btn-template-transparent-primary',
... ... @@ -534,10 +537,19 @@ _________________________________________________________ --&gt;
534 537 </div>
535 538 <div class="col-md-3 col-sm-12">
536 539 <h4><?php echo \Yii::t('app', 'Share'); ?></h4>
  540 + <div class="social-logos">
  541 + <span>
  542 + <a href="http://vk.com/share.php?url=<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/'; ?>" class="logoscnet"><i class="fa fa-vk" aria-hidden="true"></i></a>
  543 + <a href="http://www.facebook.com/sharer/sharer.php?u=<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/'; ?>" class="logoscnet"><i class="fa fa-facebook" aria-hidden="true"></i></a>
  544 + <a href="https://plus.google.com/share?url=<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/'; ?>" class="logoscnet"><i class="fa fa-google-plus" aria-hidden="true"></i></a>
  545 + </span>
  546 + </div>
537 547 </div>
  548 +
538 549  
539   - <div class="col-md-12">
540   - <p class="pull-left">&copy; <?= date('Y') ?>. <?= $settings->name; ?></p>
  550 + <div class="col-md-12 bottom-text">
  551 + <p class="pull-left">&copy; <?= date('Y') ?>. <?= $settings->name; ?>. Все права защищены.<br />
  552 + Использование материалов сайта возможно только со ссылкой на источник.</p>
541 553 </div>
542 554 </div>
543 555 <!-- /.container -->
... ...
frontend/views/site/index.php
... ... @@ -275,6 +275,9 @@ $this-&gt;registerJs($js, View::POS_END);
275 275 <p>Экспертная консультация, как подключить ЗТ и продавать избыточную энергию государству</p>
276 276 </div>
277 277 </div>
  278 + <div class="col-md-12" style="text-align:center;margin-bottom:40px;">
  279 + <a href="#" class="btn button1 icon_stat modaled init-button-order" data-title="Заказать электростанцию" data-toggle="modal" data-target="#feedback-modal">Заказать <span>электростанцию</span></a>
  280 + </div>
278 281 </div>
279 282 </div>
280 283 </section>
... ...
frontend/views/site/legal.php
... ... @@ -28,6 +28,16 @@ $this-&gt;registerJs($js, View::POS_END);
28 28  
29 29 <div id="legal-wr">
30 30 <div id="content">
  31 +
  32 + <section class="video_main">
  33 + <div id="video-bg">
  34 + <video width="100%" height="auto" muted="" autoplay="autoplay" loop="loop" preload="auto">
  35 + <source src="/video/kbvid1.mp4" type="video/mp4">
  36 + <source src="/video/kbvid1.ogg" type="video/ogg">
  37 + </video>
  38 + </div>
  39 +
  40 + </section>
31 41 <section class="no-mb mtop-25">
32 42 <div class="container">
33 43 <div class="row">
... ... @@ -266,6 +276,43 @@ $this-&gt;registerJs($js, View::POS_END);
266 276 </div>
267 277 </section>
268 278  
  279 + <section class="bar background-kben no-mb">
  280 + <div class="container">
  281 + <div class="row showcase">
  282 + <div class="col-md-3 col-sm-6">
  283 + <div class="item">
  284 + <h4><span class="counter">58</span><br>
  285 +
  286 + <?= Yii::t('app', 'sect22_1') ?></h4>
  287 + </div>
  288 + </div>
  289 + <div class="col-md-3 col-sm-6">
  290 + <div class="item">
  291 + <h4><span class="counter">117</span><br>
  292 +
  293 + <?= Yii::t('app', 'sect22_2') ?></h4>
  294 + </div>
  295 + </div>
  296 + <div class="col-md-3 col-sm-6">
  297 + <div class="item">
  298 + <h4><span class="counter">193</span><br>
  299 +
  300 + <?= Yii::t('app', 'sect22_3') ?></h4>
  301 + </div>
  302 + </div>
  303 + <div class="col-md-3 col-sm-6">
  304 + <div class="item">
  305 + <h4><span class="counter">303</span><br>
  306 +
  307 + <?= Yii::t('app', 'sect22_4') ?></h4>
  308 + </div>
  309 + </div>
  310 + </div>
  311 + <!-- /.row -->
  312 + </div>
  313 + <!-- /.container -->
  314 + </section>
  315 +
269 316 <section class="bar background-white no-mg">
270 317 <div class="container">
271 318 <div class="col-md-12">
... ...
frontend/web/css/main.css
... ... @@ -297,7 +297,104 @@ section.blue-fon {padding-top: 25px;}
297 297 .small-logo-center{
298 298 margin: 10px 0 -10px;
299 299 }
  300 +.showcase .item h4 {
  301 + color: #ffffff;
  302 +}
300 303  
  304 +#video-bg{
  305 + position: relative;
  306 + top: 0;
  307 + left: 0;
  308 + z-index: -1000;
  309 + width: 100%;
  310 + height: 100%;
  311 + max-height: calc(100vh - 101px);
  312 + overflow: hidden;
  313 + display: flex;
  314 + align-items: center;
  315 + justify-content: center;
  316 +}
  317 +#video-bg:after {
  318 + content: '';
  319 + position: absolute;
  320 + top: 0;
  321 + left: 0;
  322 + width: 100%;
  323 + height: 100%;
  324 + background: rgba(0, 0, 0, 0.1);
  325 + box-shadow: inset 0px 250px 250px -250px black, inset 0px -250px 250px -250px black;
  326 +}
  327 +#legal-wr .video_main{margin-top:-40px;}
  328 +.share_social{width:48px;height:48px;background-image:url('../img/socnets.png');display:inline-block;margin:0;padding:0;border-radius:50%;overflow:hidden;margin-top:5px;margin-right:3px;}
  329 +.share_social.vk{background-position:0px 0px;}
  330 +.share_social.fb{background-position:-56px 0px;}
  331 +.share_social.gpl{background-position:48px 0px;}
  332 +footer a{
  333 + color: #fff;
  334 + font-weight: 500;
  335 +}
  336 +footer a:hover{color:#fff;}
  337 +footer .social-logos a i.fa, button i.fa {
  338 + margin:0;
  339 +}
  340 +footer .social-logos a{
  341 + display: inline-block;
  342 + text-align: center;
  343 + background-color: #ffd800;
  344 + color: #1c4761;
  345 + font-size: 24px;
  346 + width: 34px;
  347 + height: 34px;
  348 + padding: 7px;
  349 + box-sizing: content-box;
  350 + border-radius: 50%;
  351 + margin-right: 7px;
  352 + margin-top: 5px;
  353 + margin-bottom: 5px;
  354 +}
  355 +footer .social-logos a:hover {
  356 + background-color: #d6b500;
  357 + color: #0a2d42;
  358 +}
  359 +.main-slider{
  360 + height: 90vh;
  361 + background-color: #cecece;
  362 + width: 100%;
  363 + position: relative;
  364 + min-height:350px;
  365 + max-height:854px;
  366 +}
  367 +.main-slider .carousel {
  368 + position: relative;
  369 + height: 100%;
  370 +}
  371 +.carousel-control{
  372 + display: flex;
  373 + justify-content: center;
  374 + align-items: center;
  375 + font-size: 11.5vw;
  376 +}
  377 +.economy-wr h2.big-text{
  378 + text-align: center;
  379 + width: 100%;
  380 + border: none;
  381 +}
  382 +.main-slider .carousel-inner, .main-slider .carousel-inner > .item {height:100%;width:100%;position:relative;}
  383 +.main-slider .img-responsive, .thumbnail > img, .main-slider .thumbnail a > img, .carousel-inner > .item > img, .main-slider .carousel-inner > .item > a > img {
  384 + width: 100%;
  385 + height: 100%;
  386 + position: absolute;
  387 + object-fit:cover;
  388 +}
  389 +.bottom-text{
  390 + padding: 20px 15px;
  391 + font-size: 12px;
  392 + padding-bottom: 0;
  393 +}
  394 +#map {
  395 + height: 560px;
  396 + background-image: url(../img/map.jpg);
  397 +}
301 398  
302 399 @media(min-width:992px) and (max-width:1199px){
303 400 .pr_cover {
... ... @@ -325,6 +422,9 @@ section.blue-fon {padding-top: 25px;}
325 422 }
326 423 }
327 424 @media(max-width:991px){
  425 + #footer .container > div {
  426 + margin-bottom: 20px;
  427 + }
328 428 .background-kben.block-why, .head_video_buttons{margin-top: 30px;}
329 429 .pr_cover {
330 430 max-width: 320px;
... ... @@ -360,11 +460,22 @@ section.blue-fon {padding-top: 25px;}
360 460 top: 0;
361 461 left: 0;
362 462 }
  463 + .main-slider {
  464 + height:0%;
  465 + min-height:0%;
  466 + padding-top: 75%;
  467 + }
  468 + .main-slider .carousel {
  469 + height: 100%;width: 100%;
  470 + position: absolute;
  471 + top: 0;
  472 + }
363 473 }
364 474 @media(max-width:768px){
365 475 .main_video_fb{
366 476 padding-top: 56.1%;
367 477 }
  478 + .main-slider{max-height:550px;}
368 479 }
369 480 @media(min-width:768px){
370 481 .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus{
... ... @@ -429,6 +540,10 @@ section.blue-fon {padding-top: 25px;}
429 540 width: calc(100% - 12px);
430 541 left: 6px;
431 542 }
  543 + .nav.navbar-nav.navbar-right{
  544 + margin: 0;
  545 + float: none!important;
  546 + }
432 547 }
433 548 @media(min-width:501px){
434 549 .bigtext#header3 h2{
... ...
frontend/web/img/map.jpg 0 → 100644

468 KB

frontend/web/img/socnets.png 0 → 100644

2.37 KB