Commit cb2b02115e6f1ce80eb0261f9a7b80bfb3a6ed85

Authored by alex
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 14 MapAsset::register($this);
15 15 $settings = Settings::getInstance();
16 16 $this->title = 'KB Energy';
17   -
  17 + $currentLang = \artbox\core\models\Language::getCurrent();
  18 +
18 19 $coordinates = [];
19 20 $coordinates['lat'] = empty($settings->lat) ? 0 : $settings->lat;
20 21 $coordinates['lon'] = empty($settings->lon) ? 0 : $settings->lon;
... ... @@ -476,7 +477,7 @@ JS;
476 477 </div>
477 478 </div>
478 479 </section>
479   -
  480 +<?php if($currentLang->url == 'ru'){ ?>
480 481 <section class="section-text">
481 482 <div class="container">
482 483 <div class="row">
... ... @@ -497,6 +498,7 @@ JS;
497 498 </div>
498 499 </div>
499 500 </section>
  501 + <?php } ?>
500 502  
501 503 <section class="no-mg">
502 504 <div id="map">
... ...