From f0870321e5bbb65a68c71286f7d83904123ebbff Mon Sep 17 00:00:00 2001 From: "Anton.AE" Date: Sun, 5 Apr 2026 20:50:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20test1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/css/test1-shared-shell.css | 23 +++ .../themes/twentytwentyfour/functions.php | 50 ++++++- .../themes/twentytwentyfour/page-delivery.php | 135 ++++++++++++++++++ .../themes/twentytwentyfour/page-service.php | 105 ++++++++++++++ .../template-parts/test1-shared-header.php | 12 +- 5 files changed, 317 insertions(+), 8 deletions(-) create mode 100644 wp-content/themes/twentytwentyfour/page-delivery.php create mode 100644 wp-content/themes/twentytwentyfour/page-service.php diff --git a/wp-content/themes/twentytwentyfour/assets/css/test1-shared-shell.css b/wp-content/themes/twentytwentyfour/assets/css/test1-shared-shell.css index 7861a9b4..6c25ec08 100644 --- a/wp-content/themes/twentytwentyfour/assets/css/test1-shared-shell.css +++ b/wp-content/themes/twentytwentyfour/assets/css/test1-shared-shell.css @@ -29,6 +29,18 @@ flex-direction: column; } +.test1-shared-delivery-page { + min-height: 100vh; + display: flex; + flex-direction: column; +} + +.test1-shared-service-page { + min-height: 100vh; + display: flex; + flex-direction: column; +} + .test1-shared-cart-page .site-main { flex: 1 0 auto; } @@ -43,6 +55,12 @@ padding-bottom: 26px; } +.test1-shared-delivery-page .site-main, +.test1-shared-service-page .site-main { + flex: 1 0 auto; + padding-bottom: 26px; +} + .test1-shared-cart-page .classic-footer { margin-top: auto; } @@ -55,6 +73,11 @@ margin-top: auto; } +.test1-shared-delivery-page .classic-footer, +.test1-shared-service-page .classic-footer { + margin-top: auto; +} + .test1-shared-shell .site-header { position: sticky; top: 0; diff --git a/wp-content/themes/twentytwentyfour/functions.php b/wp-content/themes/twentytwentyfour/functions.php index faa13b7c..a77d777c 100644 --- a/wp-content/themes/twentytwentyfour/functions.php +++ b/wp-content/themes/twentytwentyfour/functions.php @@ -274,6 +274,52 @@ function twentytwentyfour_contacts_template( $template ) { } add_filter( 'template_include', 'twentytwentyfour_contacts_template' ); +/** + * Use a standalone PHP template for the page slug "delivery". + * + * @since Twenty Twenty-Four 1.0 + * + * @param string $template Resolved template path. + * @return string + */ +function twentytwentyfour_delivery_template( $template ) { + if ( ! is_page( 'delivery' ) ) { + return $template; + } + + $custom_template = get_theme_file_path( 'page-delivery.php' ); + + if ( file_exists( $custom_template ) ) { + return $custom_template; + } + + return $template; +} +add_filter( 'template_include', 'twentytwentyfour_delivery_template' ); + +/** + * Use a standalone PHP template for the page slug "service". + * + * @since Twenty Twenty-Four 1.0 + * + * @param string $template Resolved template path. + * @return string + */ +function twentytwentyfour_service_template( $template ) { + if ( ! is_page( 'service' ) ) { + return $template; + } + + $custom_template = get_theme_file_path( 'page-service.php' ); + + if ( file_exists( $custom_template ) ) { + return $custom_template; + } + + return $template; +} +add_filter( 'template_include', 'twentytwentyfour_service_template' ); + /** * Use a lightweight custom template for the WooCommerce checkout page. * @@ -327,7 +373,7 @@ add_filter( 'template_include', 'twentytwentyfour_cart_template', 20 ); * @return void */ function twentytwentyfour_test1_assets() { - $use_test1_assets = is_page( array( 'test1', 'faq', 'contacts' ) ); + $use_test1_assets = is_page( array( 'test1', 'faq', 'contacts', 'delivery', 'service' ) ); if ( ! $use_test1_assets ) { return; @@ -419,7 +465,7 @@ add_action( 'wp_enqueue_scripts', 'twentytwentyfour_test1_assets', 100 ); * @return void */ function twentytwentyfour_test1_shared_shell_assets() { - if ( ! ( ( function_exists( 'is_checkout' ) && is_checkout() && ! is_order_received_page() ) || ( function_exists( 'is_cart' ) && is_cart() ) || is_page( 'faq' ) || is_page( 'contacts' ) ) ) { + if ( ! ( ( function_exists( 'is_checkout' ) && is_checkout() && ! is_order_received_page() ) || ( function_exists( 'is_cart' ) && is_cart() ) || is_page( 'faq' ) || is_page( 'contacts' ) || is_page( 'delivery' ) || is_page( 'service' ) ) ) { return; } diff --git a/wp-content/themes/twentytwentyfour/page-delivery.php b/wp-content/themes/twentytwentyfour/page-delivery.php new file mode 100644 index 00000000..40c870b3 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/page-delivery.php @@ -0,0 +1,135 @@ + +> + + + + + +> + + + +
+
+
+
+
+ Условия доставки +

Доставка воды по районам Севастополя

+
+

Привозим заказы в удобные интервалы и заранее подтверждаем маршрут. Работаем для дома, офиса, кафе и коммерческих объектов без сложного оформления.

+
+ +
+
+

Что важно знать перед заказом

+
+
+
+ Зоны доставки + Гагаринский, Ленинский, Нахимовский, Балаклава, Камышовая бухта, Остряки, Стрелецкая +
+
+
+
+ Время доставки + Ежедневно с 8:00 до 21:00, срочные окна по возможности в день обращения +
+
+
+
+ Минимальный заказ + От 1 бутыли 19 л или от 500 ₽ для малых форматов +
+
+
+
+ Возвратная тара + Пустые бутыли забираем при следующей доставке или при отдельном выезде по согласованию +
+
+
+
+ +
+ Активные маршруты +

Заказать воду на дом или в офис можно по всему городу

+
+ Гагаринский район + Ленинский район + Нахимовский район + Балаклава +
+ +
+
+ Ближайшее окно + Сегодня с 12:00 до 14:00, подтверждаем время заранее. +
+
+ Быстрое подтверждение + Связываемся в течение 15 минут в рабочее время. +
+
+ Сервис на месте + Подъем воды, замена бутыли и вывоз пустой тары по запросу. +
+ Перейти к заказу воды +
+
+
+
+
+ +
+
+
+
+ Как проходит доставка +

Четыре шага от заявки до доставки

+
+

Процесс остается коротким: вы оставляете заявку, мы подтверждаем детали и привозим воду в согласованное окно.

+
+ +
+
+
1
+

Оставьте заявку

+

Выберите удобный канал: сайт, телефон или e-mail. Укажите объем и адрес.

+
+
+
2
+

Подтвердите заказ

+

Оператор уточнит район, время, подъем на этаж и вопрос с возвратной тарой.

+
+
+
3
+

Ожидайте курьера

+

Привозим в согласованный интервал и предупреждаем, если нужно скорректировать время.

+
+
+
4
+

Получите воду

+

Курьер поможет с выгрузкой, заменой бутыли и при необходимости заберет пустую тару.

+
+
+
+
+
+ + + + + diff --git a/wp-content/themes/twentytwentyfour/page-service.php b/wp-content/themes/twentytwentyfour/page-service.php new file mode 100644 index 00000000..06361dbf --- /dev/null +++ b/wp-content/themes/twentytwentyfour/page-service.php @@ -0,0 +1,105 @@ + +> + + + + + +> + + + +
+
+
+
+
+ Для дома и офиса +

Два сценария сервиса, одна стабильная доставка

+
+

Мы разделили формат обслуживания, чтобы вам было проще выбрать подходящий режим: регулярные поставки для офиса или гибкая доставка воды для дома.

+
+ +
+
+ Доставка воды на дом +

Комфортный домашний запас без лишней тяжести

+

Подходит для семей, молодых родителей, пожилых клиентов и тех, кто не хочет тратить время на покупку воды в магазине.

+
    +
  • Удобные интервалы утром, днем и вечером
  • +
  • Подъем на этаж и помощь с установкой
  • +
  • Небольшие форматы и вода 19 литров с доставкой
  • +
  • Напоминание о повторном заказе
  • +
+
Часто выбирают: 2 бутыли 19 л + вода 5 л для кухни
+
+ + +
+
+
+ +
+
+
+
+ Преимущества +

Сервис, который удобно масштабировать

+
+

Независимо от типа клиента мы сохраняем единый стандарт качества воды, прозрачные условия и предсказуемую логистику.

+
+ +
+
+

Гибкий график

+

Подстраиваем доставку под ваш ритм: от разовых заказов до регулярной автодоставки.

+
+
+

Единый поставщик

+

Можно закрыть все потребности сразу: 19 литров, малые форматы, питьевая и минеральная вода.

+
+
+

Прозрачные условия

+

Без скрытых доплат: заранее согласуем время, тару, подъем и дополнительные услуги.

+
+
+

Поддержка клиентов

+

Быстро отвечаем по телефону и e-mail, помогаем скорректировать объем и график без лишней бюрократии.

+
+
+ + +
+
+
+ + + + + diff --git a/wp-content/themes/twentytwentyfour/template-parts/test1-shared-header.php b/wp-content/themes/twentytwentyfour/template-parts/test1-shared-header.php index 4d82a0a6..d1b1dc98 100644 --- a/wp-content/themes/twentytwentyfour/template-parts/test1-shared-header.php +++ b/wp-content/themes/twentytwentyfour/template-parts/test1-shared-header.php @@ -26,9 +26,9 @@ $test1_header_mode = isset( $test1_header_mode ) ? $test1_header_mode : @@ -58,9 +58,9 @@ $test1_header_mode = isset( $test1_header_mode ) ? $test1_header_mode :