Commit f2a4ccfe4d33d0f1194f5fb81dd1be4d73d66af5
1 parent
d9752e2d
langs
Showing
2 changed files
with
31 additions
and
1 deletions
Show diff stats
frontend/views/layouts/main.php
@@ -134,7 +134,20 @@ JS; | @@ -134,7 +134,20 @@ JS; | ||
134 | gtag('config', '<?=$settings->ga_code?>'); | 134 | gtag('config', '<?=$settings->ga_code?>'); |
135 | </script> | 135 | </script> |
136 | <?php } ?> | 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 | </head> | 152 | </head> |
140 | <body> | 153 | <body> |
@@ -288,6 +301,11 @@ _________________________________________________________ --> | @@ -288,6 +301,11 @@ _________________________________________________________ --> | ||
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 | </div> | 309 | </div> |
292 | </div> | 310 | </div> |
293 | </div> | 311 | </div> |
frontend/web/css/custom.css
@@ -573,4 +573,16 @@ div.modal-title{ | @@ -573,4 +573,16 @@ div.modal-title{ | ||
573 | right: 25px; | 573 | right: 25px; |
574 | bottom: 25px; | 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 | \ No newline at end of file | 589 | \ No newline at end of file |