add eng menus
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user