add eng menus

This commit is contained in:
2021-12-09 17:59:30 +03:00
parent f989783b48
commit aba07a8e1b
6 changed files with 103 additions and 9 deletions

View File

@@ -448,9 +448,15 @@ function lang_version(){
}
}
//elseif (is_single()){
// echo 'Пост';
// }
elseif (is_single()){
$current_cat = get_the_category( get_the_ID() )[0];
if ($current_cat->parent == 4782 or $current_cat->term_id == 4782 ){
return 'en';
}
}
return 'ru';