diff --git a/blocks/header.php b/blocks/header.php index 7014919..a67e4b7 100644 --- a/blocks/header.php +++ b/blocks/header.php @@ -41,12 +41,14 @@ diff --git a/blocks/leftmenu.php b/blocks/leftmenu.php index ffe5de9..76ddb09 100644 --- a/blocks/leftmenu.php +++ b/blocks/leftmenu.php @@ -2,6 +2,7 @@ \ No newline at end of file diff --git a/functions.php b/functions.php index f2d511d..707be60 100644 --- a/functions.php +++ b/functions.php @@ -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'; diff --git a/single-4782.php b/single-4782.php new file mode 100644 index 0000000..6981300 --- /dev/null +++ b/single-4782.php @@ -0,0 +1,85 @@ + + + + + +
+ + + + + + term_id; + $category_link = get_category_link($category_id); + $post_id = get_the_ID(); + ?> + + + +
+ + +
+

+ +
+ By +
+ + +
+ +
+ <?the_title();?> +
+
+ +
+ +
+ + + + + + +
+ +
+ +
+
+ name;?>, post_date, false );?> +
+
+ +
+
+ + + +
+ +
+ + + +
+ + + + + diff --git a/src/eventcalendar.php b/src/eventcalendar.php index c655f89..797a1b8 100644 --- a/src/eventcalendar.php +++ b/src/eventcalendar.php @@ -1,7 +1,7 @@ array( administrator, author, editor ), +'role__in' => array( 'administrator', 'author', 'editor' ), 'orderby' => 'display_name', 'order' => 'ASC', );