Commit cb2b02115e6f1ce80eb0261f9a7b80bfb3a6ed85
1 parent
4e5fbc6a
only ru block
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
frontend/views/site/index.php
@@ -14,7 +14,8 @@ | @@ -14,7 +14,8 @@ | ||
14 | MapAsset::register($this); | 14 | MapAsset::register($this); |
15 | $settings = Settings::getInstance(); | 15 | $settings = Settings::getInstance(); |
16 | $this->title = 'KB Energy'; | 16 | $this->title = 'KB Energy'; |
17 | - | 17 | + $currentLang = \artbox\core\models\Language::getCurrent(); |
18 | + | ||
18 | $coordinates = []; | 19 | $coordinates = []; |
19 | $coordinates['lat'] = empty($settings->lat) ? 0 : $settings->lat; | 20 | $coordinates['lat'] = empty($settings->lat) ? 0 : $settings->lat; |
20 | $coordinates['lon'] = empty($settings->lon) ? 0 : $settings->lon; | 21 | $coordinates['lon'] = empty($settings->lon) ? 0 : $settings->lon; |
@@ -476,7 +477,7 @@ JS; | @@ -476,7 +477,7 @@ JS; | ||
476 | </div> | 477 | </div> |
477 | </div> | 478 | </div> |
478 | </section> | 479 | </section> |
479 | - | 480 | +<?php if($currentLang->url == 'ru'){ ?> |
480 | <section class="section-text"> | 481 | <section class="section-text"> |
481 | <div class="container"> | 482 | <div class="container"> |
482 | <div class="row"> | 483 | <div class="row"> |
@@ -497,6 +498,7 @@ JS; | @@ -497,6 +498,7 @@ JS; | ||
497 | </div> | 498 | </div> |
498 | </div> | 499 | </div> |
499 | </section> | 500 | </section> |
501 | + <?php } ?> | ||
500 | 502 | ||
501 | <section class="no-mg"> | 503 | <section class="no-mg"> |
502 | <div id="map"> | 504 | <div id="map"> |