diff --git a/blocks/events.php b/blocks/events.php index 187a810..44d20c7 100644 --- a/blocks/events.php +++ b/blocks/events.php @@ -17,7 +17,7 @@ $posts = get_posts( array( ), ), 'post_type' => 'post', - //'post_status' => 'publish', + 'post_status' => 'publish', 'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса ) ); diff --git a/blocks/golos.php b/blocks/golos.php new file mode 100644 index 0000000..c1f801a --- /dev/null +++ b/blocks/golos.php @@ -0,0 +1,21 @@ + + + + +
+
+
+ + + +
+ +

Спасибо за Ваш голос

+ +
+ + +
+ $curr_id?> +
+ diff --git a/category-5122.php b/category-5122.php new file mode 100644 index 0000000..3205284 --- /dev/null +++ b/category-5122.php @@ -0,0 +1,88 @@ + + +term_id; + +$part_args = [ + 'category__in' => $current_cat_id, + 'posts_per_page' => 23, + 'paged' => $paged + +]; + +$part_query = new WP_Query( $part_args ); + + +?> + +
+ + + + +

+ +have_posts()) :?> + + have_posts() ) : + + $part_query->the_post();?> + +
+ +
+ + + <?the_title();?> + + + + + + + +
+
+
+ +
+ + + + + +max_num_pages = $part_query->max_num_pages?> + + + + + + + +
+ + \ No newline at end of file diff --git a/footer.php b/footer.php index 1b3b2f3..83f2ec7 100644 --- a/footer.php +++ b/footer.php @@ -41,7 +41,7 @@ - + + + + + + diff --git a/header.php b/header.php index acab86b..309b800 100644 --- a/header.php +++ b/header.php @@ -8,7 +8,7 @@ - + @@ -65,7 +65,13 @@ - + + + +
+ +
+ + +
+ + + + + + term_id; + $category_link = get_category_link($category_id); + + + $votes_file = '/vhosts/beta/wp-content/themes/vij/golos.json'; + + if (file_exists($votes_file)){ + $votes = json_decode(file_get_contents($votes_file, true)); + } + + + ?> + + + +
+ + +
+

+ + +
+ <?the_title();?> +
+
+ +
+ + + + + +
Другие участники
+ +
+ + + + + + + + + + + + + + + + +
+ +
+ +
+ +
+
+ +
+
+ + + +
<   На главную
+ + +
+ + + + + + + + + + + + + + + diff --git a/single.php b/single.php index ac755c3..4b76813 100644 --- a/single.php +++ b/single.php @@ -25,7 +25,7 @@
- name;?>, + name;?>,
@@ -53,7 +53,7 @@
- name;?>, + name;?>,
diff --git a/src/calend-block.php b/src/calend-block.php index b6bc171..7e84a6d 100644 --- a/src/calend-block.php +++ b/src/calend-block.php @@ -15,7 +15,10 @@ function calend_block($month, $year, $script=false){ $find_sql = " SELECT `post_id` FROM `wp_postmeta` - WHERE `meta_key` = 'startevent' AND `meta_value` BETWEEN '$year-$str_month-01T00:00:00' AND '$year-$str_month-31T23:59:59' + WHERE `meta_key` = 'startevent' + AND `meta_value` + BETWEEN '$year-$str_month-01T00:00:00' AND '$year-$str_month-31T23:59:59' + "; @@ -26,7 +29,7 @@ function calend_block($month, $year, $script=false){ if ($ins !== '') { $posts = db_get(" - SELECT ID, post_date, post_title FROM `wp_posts` WHERE ID IN ($ins) + SELECT ID, post_date, post_title FROM `wp_posts` WHERE ID IN ($ins) AND `post_status` = 'publish' "); } diff --git a/style.css b/style.css index 45a1b40..a0363e1 100644 --- a/style.css +++ b/style.css @@ -106,6 +106,23 @@ a{ } + #mainbanner{ + width: 100%; + display: block; + padding: 10px; +} + + #mainbanner img { + display: block; + width: 100%; + max-width: 1600px; + margin: auto; + border: 1px solid black; + text-align: center; + } + + + #left{ max-width: 330px; display: flex; @@ -358,15 +375,21 @@ a{ margin-bottom: 28px; padding-top: 28px; padding-bottom: 28px; + padding-left: 12px; } #footer_qr{ - width: 20%; + width: 25%; + display: grid; margin-right: 12px; text-align: center; + grid-gap: .5rem; + grid-template-columns: repeat(auto-fit, minmax(10px, 1fr)); } + + #img_qr{ padding: 4px; background-color: white; @@ -374,12 +397,13 @@ a{ #footer-contact{ width: 20%; + text-align: center; } #footer_subscript{ margin-left: 32px; margin-right: 22px; - width: 25%; + width: 30%; } #footer_logo{ @@ -484,7 +508,7 @@ a{ .vazh{ font-size: 9px; text-transform: uppercase; - letter-spacing: 0.45em; + /*letter-spacing: 0.45em;*/ } .current-number{ @@ -1098,8 +1122,7 @@ a{ .mini-card-block{ display: grid; grid-gap: 2rem; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - /*grid-template-columns: repeat(2, minmax(250px, 1fr));*/ + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } @@ -2126,6 +2149,10 @@ span.rub_back_title{ margin: 0; } + #mainbanner { + display: none; + } + #header_icons{ margin-left: 0; padding-right: 8px; @@ -2336,6 +2363,7 @@ span.rub_back_title{ #footer-contact{ display: none; + text-align: center; } #content{ @@ -2448,6 +2476,8 @@ span.rub_back_title{ and (min-device-width : 340px) and (max-device-width : 667px) { + + h1 { font-size: 24px; } @@ -2467,6 +2497,9 @@ and (max-device-width : 667px) { display: block; } + #mainbanner { + display: none; + } .mini-card{ width: 100%;