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..a8e8bfd 100644 --- a/wp-content/themes/hantico/functions.php +++ b/wp-content/themes/hantico/functions.php @@ -351,7 +351,7 @@ function theme_yandex_metrika() { } k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a) })(window, document, 'script', 'https://mc.yandex.ru/metrika/tag.js', 'ym'); - ym(100213356, 'init', { + ym(113689913, 'init', { webvisor: true, clickmap: true, referrer: document.referrer, @@ -361,7 +361,7 @@ function theme_yandex_metrika() { });
- Войти + Войти Скачать приложение
@@ -33,7 +33,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: Работа
- +