From 709a6e5ecb78a338650ccd3fc6a776db942d0eb5 Mon Sep 17 00:00:00 2001 From: "web_103.2" Date: Wed, 28 Oct 2026 12:15:28 +0300 Subject: [PATCH 1/2] =?UTF-8?q?Kirill=20|=20=D0=B2=D0=B5=D1=80=D0=BD=D1=83?= =?UTF-8?q?=D0=BB=20=D1=81=D1=82=D0=B0=D1=80=D1=8B=D0=B5=20=D1=88=D0=B0?= =?UTF-8?q?=D0=B1=D0=BB=D0=BE=D0=BD=D1=8B=20=D1=81=D1=82=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wp-content/themes/hantico/single-courier.php | 2 +- wp-content/themes/hantico/single-driver.php | 2 +- .../themes/hantico/templates/template-courier.php | 11 ++++------- 3 files changed, 6 insertions(+), 9 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/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: Курьерам
- - + + - - - - + + -
-- 2.54.0 From 2cddd87893b71155b33bb1d1ee50330cfd48dc23 Mon Sep 17 00:00:00 2001 From: "web_103.2" Date: Wed, 28 Oct 2026 12:37:57 +0300 Subject: [PATCH 2/2] =?UTF-8?q?Kirill=20|=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D0=B0=D0=BB=20=D1=88=D0=B0=D0=B1=D0=BB=D0=BE=D0=BD?= =?UTF-8?q?,=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20+=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20=D0=B2=D1=8B=D0=B1=D0=BE?= =?UTF-8?q?=D1=80=20=D0=BA=D0=B0=D0=BB=D1=8C=D0=BA=D1=83=D0=BB=D1=8F=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hantico/template-parts/audience/hero.php | 19 +++++++------------ .../themes/hantico/template-parts/income.php | 16 ++++++++++++---- .../hantico/templates/template-audience.php | 2 +- .../themes/hantico/templates/template-job.php | 4 ++-- 4 files changed, 22 insertions(+), 19 deletions(-) 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-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 + -- 2.54.0