add en menu

This commit is contained in:
arlemp@selectel.ru
2021-12-06 21:51:01 +03:00
parent cf7dc50994
commit 59556384f3
5 changed files with 44 additions and 11 deletions

View File

@@ -4,19 +4,32 @@
<a href="<?php echo home_url(); ?>"><img width="240" src = "<?=get_stylesheet_directory_uri()?>/pub/logo/vij_logo.svg" alt = "Ветеринария и жизнь. Газета и сайт" /></a>
</div>
<div id="mainmenu">
<? $lang_version = lang_version();
if ($lang_version == 'en'){
$mainmenu = 'en_main';
$mob_main_menu = 'en_main';
}
else {
$mainmenu = 'topmenu';
$mob_main_menu = 'mob_rubrics';
}
?>
<div id="mainmenu">
<?php
wp_nav_menu( array(
'menu_class'=>'menu_main',
'theme_location'=>'top'
'menu' => $mainmenu
) );?>
</div>
<div id="header-contact">
<div id="head_tel"><a href="tel:79250634">+7 (495) 925 06 34</a></div>
<div id="head_mail"><a href="mailto:info@vetandlife.ru">info@vetandlife.ru</a></div>
<div id="head_mail"><a href="mailto:info@vetandlife.ru">info@vetandlife.ru</a></div>
</div>
<ul id="header_icons">
@@ -31,7 +44,7 @@
<?php wp_nav_menu( array(
'container_class' => 'main_main',
'theme_location' => 'top',
'menu_id' => 'gamburer_menu'
'menu' => 'gamburer_menu'
) ); ?>
</nav>
@@ -42,7 +55,7 @@
<?php wp_nav_menu( array(
'menu_class'=>'m_rubrics',
'theme_location'=>'mobile'
'menu' => $mob_main_menu
));?>
</div>