From 62350095895ae5ba8b23ac6819c2de9d2492acd1 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: Thu, 29 Oct 2026 10:15:47 +0300 Subject: [PATCH] =?UTF-8?q?Kirill=20|=20fix:=20=D0=9F=D0=BE=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D0=BB=20=D1=88=D0=B0=D0=B1=D0=BB=D0=BE=D0=BD?= =?UTF-8?q?=20=D0=BF=D0=BE=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B5=2017007?= 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/4 Co-authored-by: WEB № 55 - Кирилл | Верстка --- wp-content/themes/hantico/single-courier.php | 2 +- wp-content/themes/hantico/single-driver.php | 2 +- .../hantico/template-parts/audience/hero.php | 19 +++++++------------ .../themes/hantico/template-parts/income.php | 16 ++++++++++++---- .../hantico/templates/template-audience.php | 2 +- .../hantico/templates/template-courier.php | 11 ++++------- .../themes/hantico/templates/template-job.php | 4 ++-- 7 files changed, 28 insertions(+), 28 deletions(-) diff --git a/wp-content/themes/hantico/single-courier.php b/wp-content/themes/hantico/single-courier.php index e27439b..3934748 100644 --- a/wp-content/themes/hantico/single-courier.php +++ b/wp-content/themes/hantico/single-courier.php @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/wp-content/themes/hantico/single-driver.php b/wp-content/themes/hantico/single-driver.php index e27439b..216063e 100644 --- a/wp-content/themes/hantico/single-driver.php +++ b/wp-content/themes/hantico/single-driver.php @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/wp-content/themes/hantico/template-parts/audience/hero.php b/wp-content/themes/hantico/template-parts/audience/hero.php index 227d859..c396efb 100644 --- a/wp-content/themes/hantico/template-parts/audience/hero.php +++ b/wp-content/themes/hantico/template-parts/audience/hero.php @@ -1,16 +1,11 @@
Скачать приложение diff --git a/wp-content/themes/hantico/template-parts/income.php b/wp-content/themes/hantico/template-parts/income.php index fcaf0ae..46ba5e7 100644 --- a/wp-content/themes/hantico/template-parts/income.php +++ b/wp-content/themes/hantico/template-parts/income.php @@ -14,6 +14,14 @@ $this_page_id = get_the_ID(); + $calculator_type = get_field('calculator_type', $this_page_id); + if (is_array($calculator_type)) { + $calculator_type = $calculator_type['value'] ?? ''; + } + if (!in_array($calculator_type, array('taxi', 'courier', 'cargo'), true)) { + $calculator_type = ''; + } + $selected_type = $calculator_type ?: ($is_courier ? 'courier' : ($is_cargo ? 'cargo' : 'taxi')); $calculator_title = get_field('calculator_title', $this_page_id); $income_title = $calculator_title ? 'Калькулятор дохода ' . esc_html($calculator_title) @@ -27,20 +35,20 @@
-
+
Тип занятости
diff --git a/wp-content/themes/hantico/templates/template-audience.php b/wp-content/themes/hantico/templates/template-audience.php index 0a5c35f..6e1cd60 100644 --- a/wp-content/themes/hantico/templates/template-audience.php +++ b/wp-content/themes/hantico/templates/template-audience.php @@ -1,6 +1,6 @@ diff --git a/wp-content/themes/hantico/templates/template-courier.php b/wp-content/themes/hantico/templates/template-courier.php index 6a01bb6..d0a2b1d 100644 --- a/wp-content/themes/hantico/templates/template-courier.php +++ b/wp-content/themes/hantico/templates/template-courier.php @@ -9,20 +9,17 @@ Template Name: Курьерам
- - + + - - - - + + -
diff --git a/wp-content/themes/hantico/templates/template-job.php b/wp-content/themes/hantico/templates/template-job.php index 228701f..5355634 100644 --- a/wp-content/themes/hantico/templates/template-job.php +++ b/wp-content/themes/hantico/templates/template-job.php @@ -9,7 +9,7 @@ Template Name: Аудитория
- + @@ -25,4 +25,4 @@ Template Name: Аудитория
- \ No newline at end of file +