From 16015536a9f627f669ee6c741c8ce4476c8599a8 Mon Sep 17 00:00:00 2001 From: Dekart Deploy Bot Date: Tue, 12 May 2026 17:53:05 +0300 Subject: [PATCH] Final. Deploy ready --- wp-content/themes/dekart/footer.php | 3 +- wp-content/themes/dekart/functions.php | 92 ++++++++++- wp-content/themes/dekart/header.php | 56 +------ .../themes/dekart/page-after-school.php | 2 +- wp-content/themes/dekart/page-camp.php | 152 ++++++------------ wp-content/themes/dekart/page-course.php | 4 +- wp-content/themes/dekart/page-foto.php | 4 +- wp-content/themes/dekart/page-vacancies.php | 4 +- wp-content/themes/dekart/single-course.php | 21 +-- wp-content/themes/dekart/single-teacher.php | 14 +- 10 files changed, 164 insertions(+), 188 deletions(-) diff --git a/wp-content/themes/dekart/footer.php b/wp-content/themes/dekart/footer.php index da057ed..bdc9f3d 100644 --- a/wp-content/themes/dekart/footer.php +++ b/wp-content/themes/dekart/footer.php @@ -30,7 +30,7 @@ - \n"; + + $gtm_head_default = "\n\n"; + + $gtm_body_default = "\n\n"; + + $footer_default = "\n\n"; + + if (get_option('dekart_counter_yandex') === false) add_option('dekart_counter_yandex', $yandex_default); + if (get_option('dekart_counter_gtm_head') === false) add_option('dekart_counter_gtm_head', $gtm_head_default); + if (get_option('dekart_counter_gtm_body') === false) add_option('dekart_counter_gtm_body', $gtm_body_default); + if (get_option('dekart_counter_footer') === false) add_option('dekart_counter_footer', $footer_default); +} + +function dekart_counters_page() { + ?> +
+

Счетчики

+
+ +

Яндекс.Метрика / Tag Manager

+ + + + + +
Yandex Code +

Код счетчика. Выводится в <head>.

+

Google Tag Manager (GTM)

+ + + + + + + + + +
GTM Head +

Основной код GTM. Выводится в <head>.

GTM Body +

Код <noscript>. Выводится сразу после открытия <body> через хук wp_body_open.

+

Произвольные скрипты

+ + + + + +
Site-wide Footer Scripts +

Для чатов, пикселей и прочих скриптов. Выводится в <footer>.

+ +
+
+ > - - - - - @@ -22,12 +8,10 @@ ?> - - - для корректной работы, -// но j.async=true — не блокирует парсинг HTML -// ───────────────────────────────────────────────────────────────────── -?> - - > - -, требование Google Tag Manager -// ───────────────────────────────────────────────────────────────────── -?> - +
diff --git a/wp-content/themes/dekart/page-vacancies.php b/wp-content/themes/dekart/page-vacancies.php index ef88497..c252f93 100644 --- a/wp-content/themes/dekart/page-vacancies.php +++ b/wp-content/themes/dekart/page-vacancies.php @@ -18,11 +18,11 @@ $post_id = get_the_ID(); - +
  • - +
  • diff --git a/wp-content/themes/dekart/single-course.php b/wp-content/themes/dekart/single-course.php index 5e68d50..e730f90 100644 --- a/wp-content/themes/dekart/single-course.php +++ b/wp-content/themes/dekart/single-course.php @@ -15,23 +15,10 @@ $current_term = $tags[0]; - - -
  • - - Все курсы - - -
  • -
  • - - name; ?> - - -
  • -
  • - - + + + +
  • diff --git a/wp-content/themes/dekart/single-teacher.php b/wp-content/themes/dekart/single-teacher.php index 4856df3..af49b32 100644 --- a/wp-content/themes/dekart/single-teacher.php +++ b/wp-content/themes/dekart/single-teacher.php @@ -19,17 +19,9 @@ - - -
  • - - Все преподаватели - - -
  • -
  • - - + + +