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 +