Commit f2a4ccfe4d33d0f1194f5fb81dd1be4d73d66af5

Authored by Eugeny Galkovskiy
1 parent d9752e2d

langs

frontend/views/layouts/main.php
... ... @@ -134,7 +134,20 @@ JS;
134 134 gtag('config', '<?=$settings->ga_code?>');
135 135 </script>
136 136 <?php } ?>
137   -
  137 + <style>
  138 + .langs {
  139 + text-transform: uppercase;
  140 + line-height: 23px;
  141 + margin-top: 2px;
  142 + margin-bottom: -2px;
  143 + }
  144 + .langs a.active {
  145 + color: #5cbfa9!important;
  146 + font-weight: bold;
  147 + cursor:default;
  148 + text-decoration:none;
  149 + }
  150 + </style>
138 151  
139 152 </head>
140 153 <body>
... ... @@ -288,6 +301,11 @@ _________________________________________________________ --&gt;
288 301 );
289 302 }
290 303 ?>
  304 + <?php $lang = explode("-",\Yii::$app->language);?>
  305 + <div class="langs">
  306 + <a<?php if($lang['0'] == 'ru') echo ' class="active"'; else echo ' href="/ru"';?>>ru</a>
  307 + <a<?php if($lang['0'] == 'ua') echo ' class="active"'; else echo ' href="/ua"';?>>ua</a>
  308 + </div>
291 309 </div>
292 310 </div>
293 311 </div>
... ...
frontend/web/css/custom.css
... ... @@ -573,4 +573,16 @@ div.modal-title{
573 573 right: 25px;
574 574 bottom: 25px;
575 575 }
  576 +}
  577 +.langs {
  578 + text-transform: uppercase;
  579 + line-height: 23px;
  580 + margin-top: 2px;
  581 + margin-bottom: -2px;
  582 +}
  583 +.langs a.active {
  584 + color: #5cbfa9!important;
  585 + font-weight: bold;
  586 + cursor:default;
  587 + text-decoration:none;
576 588 }
577 589 \ No newline at end of file
... ...