diff --git a/common/messages/ru/app.php b/common/messages/ru/app.php index 7734c4d..d47dcd1 100644 --- a/common/messages/ru/app.php +++ b/common/messages/ru/app.php @@ -1,5 +1,6 @@ '/ru/', 'Contact us on ' => 'Свяжитесь с нами ', ' or ' => ' или ', 'tel:' => 'по тел.', diff --git a/common/messages/ua/app.php b/common/messages/ua/app.php index 9146499..c3cf400 100644 --- a/common/messages/ua/app.php +++ b/common/messages/ua/app.php @@ -1,5 +1,6 @@ '/ua/', 'Contact us on ' => '', 'menu-about' => 'Про нас', 'menu-individual' => 'Для фізичних осіб', diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index 4ef01ac..07af053 100644 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -96,10 +96,19 @@
-
-
+
+
- + language; + $langs_a = explode("-",$langs); + $this_lang = $langs_a['0']; + + $langs_head = artbox\core\widgets\LangLink::widget(); + $langs_head = str_replace(" / ","",$langs_head); + $langs_head = str_replace($this_lang,"",$langs_head); + echo "$this_lang".$langs_head; + ?>
@@ -315,7 +324,7 @@ ]; $items[] = [ 'label' => \Yii::t('app', 'menu-mediaabout'), - 'url' => [ 'site/media-about' ], + 'url' => [ "site/media-about" ], ]; $items[] = [ 'label' => \Yii::t('app', 'menu-blog'), diff --git a/frontend/web/css/main.css b/frontend/web/css/main.css index e8368aa..6529e6c 100644 --- a/frontend/web/css/main.css +++ b/frontend/web/css/main.css @@ -73,7 +73,13 @@ body{position:relative;} line-height: 13px; cursor: default; } -#top {background: #555555;color: #eeeeee;padding: 7px 0 6px;} +#top { + background: #f6f6f6; + color: #000; + padding: 0; + height:30px; +} +#top>.container{height:100%;} #top .social a { color: #999999; display: inline-block; @@ -620,8 +626,35 @@ section.bar.background-gray.steps-pre:before { } .form-comm-wr .form-group.field-commentmodel-text{width:100%;} .has-error .help-block{display:block;} -.header-lang{text-transform: uppercase;font-weight: normal;color: #969a9a;font-size: 11px;} -.header-lang a{font-weight: bold;color: #fff;} +.header-lang{ + height: 100%; + display: flex; + justify-content: flex-end; + align-items: center; + font-size: 13px; +} +.header-lang .active_lang{ + background-color: #e9e7e7; + height: 30px; + line-height: 29px; + padding: 0px 10px; +} +.header-lang a{ + background-color: #f6f6f6; + height: 30px; + line-height: 29px; + padding: 0px 10px; + border: 1px solid #e9e7e7; + border-top: 0; + border-bottom: 0; + margin-left: -1px; +} +.header-lang a:hover{ + background-color: #e9e7e7; + border: 1px solid #cacaca; + border-top: 0; + border-bottom: 0; +} @media(min-width:1201px){ .links-ses-for-wr .container .row p {margin: 7px 20px;} -- libgit2 0.21.4