From bea6a20a2450bec41a2acab3f8266302671f12a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?WEB=20=E2=84=96=2055=20-=20=D0=9A=D0=B8=D1=80=D0=B8=D0=BB?= =?UTF-8?q?=D0=BB=20=7C=20=D0=92=D0=B5=D1=80=D1=81=D1=82=D0=BA=D0=B0?= Date: Wed, 21 Oct 2026 16:07:00 +0300 Subject: [PATCH 1/2] Task 17291 seo (#2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1) регистрация яндекс + google 2) метрика яндекс 3) изменил счётчик яндекса (100213356) и (113689913) --------- Reviewed-on: https://git.good-production.xyz/Good-Production/hantico/pulls/2 Co-authored-by: WEB № 55 - Кирилл | Верстка --- wp-content/themes/hantico/footer.php | 6 ++-- wp-content/themes/hantico/functions.php | 28 ++++++------------- wp-content/themes/hantico/header.php | 8 ++++-- .../themes/hantico/template-parts/income.php | 6 +++- .../themes/hantico/template-parts/reviews.php | 18 ++++++++++++ .../themes/hantico/template-parts/scheme.php | 2 +- .../themes/hantico/template-parts/work.php | 2 +- .../hantico/templates/template-contacts.php | 4 +-- .../hantico/templates/template-courier.php | 4 +-- .../themes/hantico/templates/template-job.php | 28 +++++++++++++++++++ .../hantico/templates/template-work.php | 2 +- 11 files changed, 74 insertions(+), 34 deletions(-) create mode 100644 wp-content/themes/hantico/templates/template-job.php diff --git a/wp-content/themes/hantico/footer.php b/wp-content/themes/hantico/footer.php index d802a21..3f0c6c7 100644 --- a/wp-content/themes/hantico/footer.php +++ b/wp-content/themes/hantico/footer.php @@ -20,10 +20,10 @@ true]); ?> diff --git a/wp-content/themes/hantico/functions.php b/wp-content/themes/hantico/functions.php index 4442bb9..78c1a7e 100644 --- a/wp-content/themes/hantico/functions.php +++ b/wp-content/themes/hantico/functions.php @@ -339,29 +339,17 @@ function theme_yandex_metrika() { ?> + + + + @@ -22,7 +26,7 @@ @@ -33,7 +37,7 @@
true]); ?>
diff --git a/wp-content/themes/hantico/template-parts/income.php b/wp-content/themes/hantico/template-parts/income.php index 630536d..b29247f 100644 --- a/wp-content/themes/hantico/template-parts/income.php +++ b/wp-content/themes/hantico/template-parts/income.php @@ -11,7 +11,11 @@ } else { $page_id = 'option'; } - $income_title = get_field('income_title', $page_id); + + $this_page_id = get_the_ID(); + + $income_title = get_field('calculator_title', $this_page_id) + ?: get_field('income_title', $page_id); $income_descr = get_field('income_descr', $page_id); if ($income_title && $income_descr) : ?> diff --git a/wp-content/themes/hantico/template-parts/reviews.php b/wp-content/themes/hantico/template-parts/reviews.php index 7c63d80..cc52abe 100644 --- a/wp-content/themes/hantico/template-parts/reviews.php +++ b/wp-content/themes/hantico/template-parts/reviews.php @@ -1,10 +1,28 @@ 'review', 'posts_per_page' => 8, 'orderby' => 'date', 'order' => 'DESC' ]; + $review_ids = []; + foreach ((array) $reviews as $row) { + $review = $row['review'] ?? null; + $review_id = $review instanceof WP_Post ? $review->ID : (int) $review; + if ($review_id > 0) { + $review_ids[] = $review_id; + } + } + + if (!empty($review_ids)) { + $reviews_args['post__in'] = $review_ids; + $reviews_args['posts_per_page'] = -1; + $reviews_args['orderby'] = 'post__in'; + } + $reviews_query = new WP_Query($reviews_args); if ($reviews_query->have_posts()) : ?> diff --git a/wp-content/themes/hantico/template-parts/scheme.php b/wp-content/themes/hantico/template-parts/scheme.php index 6242c06..87a0c56 100644 --- a/wp-content/themes/hantico/template-parts/scheme.php +++ b/wp-content/themes/hantico/template-parts/scheme.php @@ -23,7 +23,7 @@ />
diff --git a/wp-content/themes/hantico/template-parts/work.php b/wp-content/themes/hantico/template-parts/work.php index da8773d..56be500 100644 --- a/wp-content/themes/hantico/template-parts/work.php +++ b/wp-content/themes/hantico/template-parts/work.php @@ -19,7 +19,7 @@
- + diff --git a/wp-content/themes/hantico/templates/template-contacts.php b/wp-content/themes/hantico/templates/template-contacts.php index 7ec71ad..80bb95e 100644 --- a/wp-content/themes/hantico/templates/template-contacts.php +++ b/wp-content/themes/hantico/templates/template-contacts.php @@ -23,13 +23,13 @@ Template Name: Контакты
Связаться с нами
  • - +
diff --git a/wp-content/themes/hantico/templates/template-courier.php b/wp-content/themes/hantico/templates/template-courier.php index d0a2b1d..65ec63e 100644 --- a/wp-content/themes/hantico/templates/template-courier.php +++ b/wp-content/themes/hantico/templates/template-courier.php @@ -10,15 +10,13 @@ Template Name: Курьерам
- + - - diff --git a/wp-content/themes/hantico/templates/template-job.php b/wp-content/themes/hantico/templates/template-job.php new file mode 100644 index 0000000..228701f --- /dev/null +++ b/wp-content/themes/hantico/templates/template-job.php @@ -0,0 +1,28 @@ + + + + + +
+ + + + + + + + + + + + + + + +
+ + \ No newline at end of file diff --git a/wp-content/themes/hantico/templates/template-work.php b/wp-content/themes/hantico/templates/template-work.php index 24d14d3..86f349e 100644 --- a/wp-content/themes/hantico/templates/template-work.php +++ b/wp-content/themes/hantico/templates/template-work.php @@ -33,7 +33,7 @@ Template Name: Работа
- + From 32834090a16794730e3c238e715707e5985b2f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?WEB=20=E2=84=96=2055=20-=20=D0=9A=D0=B8=D1=80=D0=B8=D0=BB?= =?UTF-8?q?=D0=BB=20=7C=20=D0=92=D0=B5=D1=80=D1=81=D1=82=D0=BA=D0=B0?= Date: Fri, 23 Oct 2026 10:51:40 +0300 Subject: [PATCH 2/2] =?UTF-8?q?Task-17291=20|=20hotfix:=20=D0=9E=D0=B1?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=B4=D0=B0=20=D0=AF.=D0=9C=D0=B5=D1=82=D1=80=D0=B8=D0=BA?= =?UTF-8?q?=D0=B8=20(#3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Заменил метрику --------- Reviewed-on: https://git.good-production.xyz/Good-Production/hantico/pulls/3 Co-authored-by: WEB № 55 - Кирилл | Верстка --- wp-content/themes/hantico/functions.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/wp-content/themes/hantico/functions.php b/wp-content/themes/hantico/functions.php index 78c1a7e..8399332 100644 --- a/wp-content/themes/hantico/functions.php +++ b/wp-content/themes/hantico/functions.php @@ -339,18 +339,16 @@ function theme_yandex_metrika() { ?> - +