From 1500b493c9afd0eb0f198b6bc240e3ed5b7c2f6f Mon Sep 17 00:00:00 2001 From: "arlemp@selectel.ru" Date: Sun, 12 Dec 2021 19:26:50 +0300 Subject: [PATCH] add eng blocks --- blocks/archive.php | 4 +++- blocks/enmoread.php | 45 +++++++++++++++++++++++++++++++++++++++++++ blocks/mosts.php | 1 + blocks/regulation.php | 34 ++++++++++++++++++++++++++++++++ footer.php | 41 +++++++++++++++++++++++++++------------ single-4782.php | 2 +- 6 files changed, 113 insertions(+), 14 deletions(-) create mode 100644 blocks/enmoread.php create mode 100644 blocks/regulation.php diff --git a/blocks/archive.php b/blocks/archive.php index 5ea7812..50dfa89 100644 --- a/blocks/archive.php +++ b/blocks/archive.php @@ -23,7 +23,9 @@ if( $posts ):
<?the_title();?>
- + + +
diff --git a/blocks/enmoread.php b/blocks/enmoread.php new file mode 100644 index 0000000..7a65f7a --- /dev/null +++ b/blocks/enmoread.php @@ -0,0 +1,45 @@ + 4, + 'category' => 4782, // англ статьи + 'orderby' => 'date', + 'order' => 'DESC', + 'include' => array(), + 'exclude' => array(), + 'meta_key' => '', + 'meta_value' =>'', + 'post_type' => 'post', + 'post__not_in' => array($post_id), + 'meta_query' => array( + array( + 'key' => '_thumbnail_id', + //'compare' => 'EXISTS' + ) + ), + 'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса +) ); + +# вывод поста +if( $posts ):?> + +
Read also:
+ +
+ + + +
+ <?the_title();?> +
+
post_date, false );?>
+
+ + + +
+ + diff --git a/blocks/mosts.php b/blocks/mosts.php index 6805d6e..502999f 100644 --- a/blocks/mosts.php +++ b/blocks/mosts.php @@ -7,6 +7,7 @@ $mosts = get_posts( array( 'numberposts' => 3, 'post__in' => get_option( 'sticky_posts' ), + 'cat' => '-4782', 'orderby' => 'date', 'order' => 'DESC', 'include' => array(), diff --git a/blocks/regulation.php b/blocks/regulation.php new file mode 100644 index 0000000..5fa2cb2 --- /dev/null +++ b/blocks/regulation.php @@ -0,0 +1,34 @@ + 2, + 'category' => 4784, + 'post_type' => 'post', + //'post_status' => 'publish, future', + 'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса +) ); + +# вывод поста +if( $posts ):?> + +
+ +
Guidance and regulation
+ + + +
+ +
+ + + +
+ + - - - '']);?> - - - '']);?> - - + + + + + + + '']);?> + + + '']);?> + + +
@@ -82,12 +87,24 @@ - - + + - '']);?> - 'mob-lite']);?> + + '']);?> + 'mob-lite']);?> + + '']);?> + 'mob-lite']);?> + +
diff --git a/single-4782.php b/single-4782.php index 9119194..2365a62 100644 --- a/single-4782.php +++ b/single-4782.php @@ -73,7 +73,7 @@ - +