add lang string

This commit is contained in:
arlemp@selectel.ru
2021-12-10 21:41:57 +03:00
parent aa2d2284d8
commit 59422e2499
2 changed files with 19 additions and 7 deletions

View File

@@ -100,10 +100,20 @@
<div id="footer_menu"> <div id="footer_menu">
<?php wp_footer(); ?> <?php wp_footer(); ?>
<?if (LANG_VERSION == 'en'){
$mainmenu = 'topenmenu';
}
else{
$mainmenu = 'topmenu';
}
?>
<div class="footer_sub"> <div class="footer_sub">
<?php wp_nav_menu( array( <?php wp_nav_menu( array(
'menu_class' => 'menu_footer', 'menu_class' => 'menu_footer',
'theme_location'=>'top' 'menu' => $mainmenu
));?> ));?>
</div> </div>
<div id="footer_up"> <div id="footer_up">
@@ -114,7 +124,7 @@
<div id="footer_info"> <div id="footer_info">
<div id="footer_qr"> <div id="footer_qr">
<img src = "<?=get_stylesheet_directory_uri()?>/pub/qr.png" /> <img src = "<?=get_stylesheet_directory_uri()?>/pub/qr.png" />
<p class="vazh">Важно</p> <p class="vazh"><?=vij_lang('qrtitle', LANG_VERSION);?></p>
</div> </div>
<div id="footer-contact"> <div id="footer-contact">
<div id="head_tel"><a href="tel:79250634">+7 (495) 925 06 34</a></div> <div id="head_tel"><a href="tel:79250634">+7 (495) 925 06 34</a></div>

View File

@@ -13,7 +13,8 @@ function vij_lang($name, $lan){
'email_title' => 'Подпишитесь на нашу рассылку и будьте в курсе всех новостей', 'email_title' => 'Подпишитесь на нашу рассылку и будьте в курсе всех новостей',
'your_mail' => 'Ваша почта', 'your_mail' => 'Ваша почта',
'gazeta' => 'Читать газету<br>«Ветеринария и Жизнь»', 'gazeta' => 'Читать газету<br>«Ветеринария и Жизнь»',
'up_bth' => 'наверх' 'up_bth' => 'наверх',
'qrtitle' => 'Важно'
]; ];
@@ -28,7 +29,8 @@ function vij_lang($name, $lan){
'email_title' => 'Sign up to our newsletters to get the latest on your favourite topics from the Veterinary Medicine and Life', 'email_title' => 'Sign up to our newsletters to get the latest on your favourite topics from the Veterinary Medicine and Life',
'your_mail' => 'Your email', 'your_mail' => 'Your email',
'gazeta' => 'Veterinary Medicine and Life newspaper', 'gazeta' => 'Veterinary Medicine and Life newspaper',
'up_bth' => 'UP' 'up_bth' => 'UP',
'qrtitle' => 'important'
]; ];
if ($lan == 'ru' and isset($lang_ru[$name])){ if ($lan == 'ru' and isset($lang_ru[$name])){