diff --git a/blocks/archive.php b/blocks/archive.php index 2478dbe..5ea7812 100644 --- a/blocks/archive.php +++ b/blocks/archive.php @@ -22,7 +22,7 @@ if( $posts ):
<?the_title();?> -
Читать газету
«Ветеринария и Жизнь»
+
diff --git a/footer.php b/footer.php index d07924e..3bbb993 100644 --- a/footer.php +++ b/footer.php @@ -57,16 +57,16 @@
-
Подпишитесь на нашу рассылку и будьте в курсе всех новостей
+
- + - +
-
+
@@ -107,7 +107,7 @@ ));?>
@@ -125,7 +125,7 @@ diff --git a/functions.php b/functions.php index 395bc1e..2ff195a 100644 --- a/functions.php +++ b/functions.php @@ -16,6 +16,7 @@ require ABSPATH.'/vendor/autoload.php'; require get_template_directory().'/src/calend-block.php'; require get_template_directory().'/src/calendar.php'; require get_template_directory().'/src/perevod.php'; +require get_template_directory().'/lang.php'; //require ABSPATH.'vendor/masterforweb/db_lite/db_lite.php'; diff --git a/lang.php b/lang.php new file mode 100644 index 0000000..2afabdd --- /dev/null +++ b/lang.php @@ -0,0 +1,43 @@ + 'Политика конфиденциальности', + 'copyright' => 'Ветеринария и жизнь', + 'subscript_btn' => 'Газета ВиЖ. Оформить подписку', + 'svid_smi' => 'Свидетельство о регистрации СМИ', + 'copyright_text' => 'При перепечатке и использовании информации с сайта «Ветеринария и жизнь» активная ссылка на использованный материал обязательна. При использовании материалов в печатных СМИ указывать источник — «Ветеринария и жизнь»', + 'email_btn' => 'Подписаться', + 'email_title' => 'Подпишитесь на нашу рассылку и будьте в курсе всех новостей', + 'your_mail' => 'Ваша почта', + 'gazeta' => 'Читать газету
«Ветеринария и Жизнь»', + 'up_bth' => 'наверх' + ]; + + + static $lang_en = [ + + 'conf_politic' => 'Privacy Policy', + 'copyright' => 'Veterinary Medicine and Life', + 'subscript_btn' => 'Subscription to the Veterinary Medicine and Life newspaper', + 'svid_smi' => 'Media Registration Certificate', + 'copyright_text' => 'It is required to provide a valid URL when reprinting and using information from the Veterinary Medicine and Life website. When using materials in print media, indicate the source - Veterinary Medicine and Life', + 'email_btn' => 'Sign up', + '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', + 'gazeta' => 'Veterinary Medicine and Life newspaper', + 'up_bth' => 'UP' + ]; + + if ($lan == 'ru' and isset($lang_ru[$name])){ + return $lang_ru[$name]; + } + elseif ($lan == 'en' and isset($lang_ru[$name])){ + return $lang_en[$name]; + } + + + +} \ No newline at end of file