From f6a0f49a232289d6160c3f43e9d3cfeee9dd6a8d Mon Sep 17 00:00:00 2001 From: "arlemp@selectel.ru" Date: Tue, 14 Dec 2021 23:13:41 +0300 Subject: [PATCH] add lang in submenu --- blocks/gamburger.php | 8 ++++++-- blocks/header.php | 11 +++-------- header.php | 2 +- lang.php | 8 ++++++++ style.css | 42 ++++++++++++++++++++++++++++++++---------- 5 files changed, 50 insertions(+), 21 deletions(-) diff --git a/blocks/gamburger.php b/blocks/gamburger.php index 3f1dfc0..58941a7 100644 --- a/blocks/gamburger.php +++ b/blocks/gamburger.php @@ -18,7 +18,9 @@ else{
+
+
diff --git a/blocks/header.php b/blocks/header.php index c9e3e28..0c0a047 100644 --- a/blocks/header.php +++ b/blocks/header.php @@ -29,7 +29,7 @@ 'menu_main', - 'menu' => $mainmenu + 'menu' => vij_lang('mainmenu', LANG_VERSION) ) );?>
@@ -43,12 +43,7 @@
  • - -
  • РУС
  • - -
  • EN
  • - - +
  • @@ -58,7 +53,7 @@ 'm_rubrics', - 'menu' => $mob_main_menu + 'menu' => vij_lang('mob_main_menu', LANG_VERSION) ));?>
    diff --git a/header.php b/header.php index 345f308..59b5e5b 100644 --- a/header.php +++ b/header.php @@ -4,7 +4,7 @@ <?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?> - + diff --git a/lang.php b/lang.php index 1522623..7fe0d7d 100644 --- a/lang.php +++ b/lang.php @@ -6,6 +6,10 @@ function vij_lang($name, $lan){ 'link_version' => '/', 'path_logo' => '/pub/logo/vij_logo.svg', + 'mainmenu' => 'topmenu', + 'mob_main_menu' => 'mob_rubrics', + 'btn_lan' => 'EN', + 'btn_lan_link' => '/en/', 'alt_logo' => 'Ветеринария и жизнь. Информационный портал и газета', 'conf_politic' => 'Политика конфиденциальности', 'copyright' => 'Ветеринария и жизнь', @@ -26,6 +30,10 @@ function vij_lang($name, $lan){ 'link_version' => '/en/', 'path_logo' => '/pub/logo/vl_logo.svg', + 'mainmenu' => 'topenmenu', + 'mob_main_menu' => 'topenmenu', + 'btn_lan' => 'РУС', + 'btn_lan_link' => '/', 'alt_logo' => 'Veterinary Medicine and Life. Online news outlet and newspaper', 'conf_politic' => 'Privacy Policy', 'copyright' => 'Veterinary Medicine and Life', diff --git a/style.css b/style.css index 849d427..6648eb4 100644 --- a/style.css +++ b/style.css @@ -129,15 +129,12 @@ a{ #mainlogo{ margin-left: 12px; - min-width: 260px; + width: 240px; flex-shrink: 0; text-align: center; margin-right: 10%; } - #mainlogo IMG{ - /* min-width: 240px; */ - } .right-info{ margin-top: 8px; @@ -1829,8 +1826,31 @@ img-fluid{ } +#mobile_submenu{ + display: flex; + position: fixed; + cursor: pointer; + z-index: 1; + top: 20px; + right: 5%; +} -#closed_mobile_menu, #closed_mobile_rubrics_menu{ +#closed_mobile_menu{ + height: 20px; + width: 20px; + background: no-repeat url(https://vetandlife.ru/wp-content/themes/vij/pub/menu/closed.svg) left center; +} + +#lang_mobile_title{ + font-size: 14px; + font-weight: bold; + color: #909294; + text-transform: uppercase; + padding-right: 28px; +} + + +#closed_mobile_rubrics_menu{ position: fixed; cursor: pointer; z-index: 1; @@ -1838,10 +1858,11 @@ img-fluid{ right: 5%; height: 20px; width: 20px; - background: no-repeat url(https://vetandlife.ru/wp-content/themes/vij/pub/menu/closed.svg) left center; - + } + + #rubrics_back{ margin-left: 38px; font-size: 14px; @@ -1967,7 +1988,6 @@ span.rub_back_title{ #mainlogo{ width: 240px; - text-align: left; margin: 0; } @@ -2185,9 +2205,11 @@ span.rub_back_title{ } #mainlogo{ - width: 240px; - text-align: left; + max-width: 240px; + left: 0; + top: 0; margin: 0; + padding: 0; } #mainpage-title{