diff --git a/functions.php b/functions.php index c460609..0edfcd0 100644 --- a/functions.php +++ b/functions.php @@ -202,12 +202,20 @@ function custom_pagination($query = null) return; // Если страница всего одна, пагинация не нужна } + if ( defined('LANG') && LANG == 'en' ){ + $txt['back'] = 'Back'; + $txt['next'] = 'Next'; + } else { + $txt['back'] = 'Назад'; + $txt['next'] = 'Далее'; + } + echo ''; @@ -941,6 +949,9 @@ function use_custom_template_for_en_subcategories($template) { // Проверяем, является ли текущая категория подрубрикой "EN" $parent_id = $category->parent; if ($parent_id && $parent_id == get_cat_ID('EN')) { + + define('LANG', 'en'); + // Устанавливаем путь к вашему новому шаблону $new_template = locate_template('en/category-en-sub.php'); if ($new_template) {