правки test1
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
135
wp-content/themes/twentytwentyfour/page-delivery.php
Normal file
135
wp-content/themes/twentytwentyfour/page-delivery.php
Normal file
@@ -0,0 +1,135 @@
|
||||
<?php
|
||||
/**
|
||||
* Delivery page template with shared test1 header/footer.
|
||||
*
|
||||
* @package Twenty_Twenty_Four
|
||||
*/
|
||||
|
||||
?><!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
<body <?php body_class( 'test1-shared-shell test1-shared-delivery-page' ); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<?php
|
||||
$test1_header_action_url = function_exists( 'wc_get_cart_url' ) ? wc_get_cart_url() : home_url( '/cart/' );
|
||||
$test1_header_action_label = __( 'Корзина', 'twentytwentyfour' );
|
||||
$test1_header_mode = 'link';
|
||||
require get_theme_file_path( 'template-parts/test1-shared-header.php' );
|
||||
?>
|
||||
|
||||
<main class="site-main" role="main">
|
||||
<section class="section" id="delivery">
|
||||
<div class="container">
|
||||
<div class="section-head">
|
||||
<div>
|
||||
<span class="eyebrow">Условия доставки</span>
|
||||
<h1 class="section-title">Доставка воды по районам Севастополя</h1>
|
||||
</div>
|
||||
<p class="section-copy">Привозим заказы в удобные интервалы и заранее подтверждаем маршрут. Работаем для дома, офиса, кафе и коммерческих объектов без сложного оформления.</p>
|
||||
</div>
|
||||
|
||||
<div class="delivery-grid">
|
||||
<div class="glass-card reveal">
|
||||
<h3>Что важно знать перед заказом</h3>
|
||||
<div class="product-table">
|
||||
<div class="product-row">
|
||||
<div>
|
||||
<strong>Зоны доставки</strong>
|
||||
<span>Гагаринский, Ленинский, Нахимовский, Балаклава, Камышовая бухта, Остряки, Стрелецкая</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-row">
|
||||
<div>
|
||||
<strong>Время доставки</strong>
|
||||
<span>Ежедневно с 8:00 до 21:00, срочные окна по возможности в день обращения</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-row">
|
||||
<div>
|
||||
<strong>Минимальный заказ</strong>
|
||||
<span>От 1 бутыли 19 л или от 500 ₽ для малых форматов</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-row">
|
||||
<div>
|
||||
<strong>Возвратная тара</strong>
|
||||
<span>Пустые бутыли забираем при следующей доставке или при отдельном выезде по согласованию</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="delivery-map reveal reveal-delay-1" aria-label="Информация о маршрутах доставки">
|
||||
<span class="eyebrow eyebrow-inverse">Активные маршруты</span>
|
||||
<h3 class="section-heading-compact section-heading-delivery">Заказать воду на дом или в офис можно по всему городу</h3>
|
||||
<div class="zones">
|
||||
<span class="zone-card">Гагаринский район</span>
|
||||
<span class="zone-card">Ленинский район</span>
|
||||
<span class="zone-card">Нахимовский район</span>
|
||||
<span class="zone-card">Балаклава</span>
|
||||
</div>
|
||||
|
||||
<div class="delivery-highlights">
|
||||
<article class="delivery-highlight-card">
|
||||
<strong>Ближайшее окно</strong>
|
||||
<span>Сегодня с 12:00 до 14:00, подтверждаем время заранее.</span>
|
||||
</article>
|
||||
<article class="delivery-highlight-card">
|
||||
<strong>Быстрое подтверждение</strong>
|
||||
<span>Связываемся в течение 15 минут в рабочее время.</span>
|
||||
</article>
|
||||
<article class="delivery-highlight-card">
|
||||
<strong>Сервис на месте</strong>
|
||||
<span>Подъем воды, замена бутыли и вывоз пустой тары по запросу.</span>
|
||||
</article>
|
||||
<a class="button delivery-cta" href="<?php echo esc_url( home_url( '/test1/#catalog' ) ); ?>">Перейти к заказу воды</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section" id="how-order">
|
||||
<div class="container">
|
||||
<div class="section-head">
|
||||
<div>
|
||||
<span class="eyebrow">Как проходит доставка</span>
|
||||
<h2 class="section-title">Четыре шага от заявки до доставки</h2>
|
||||
</div>
|
||||
<p class="section-copy">Процесс остается коротким: вы оставляете заявку, мы подтверждаем детали и привозим воду в согласованное окно.</p>
|
||||
</div>
|
||||
|
||||
<div class="steps-grid">
|
||||
<article class="step-card reveal">
|
||||
<div class="step-number">1</div>
|
||||
<h3>Оставьте заявку</h3>
|
||||
<p>Выберите удобный канал: сайт, телефон или e-mail. Укажите объем и адрес.</p>
|
||||
</article>
|
||||
<article class="step-card reveal reveal-delay-1">
|
||||
<div class="step-number">2</div>
|
||||
<h3>Подтвердите заказ</h3>
|
||||
<p>Оператор уточнит район, время, подъем на этаж и вопрос с возвратной тарой.</p>
|
||||
</article>
|
||||
<article class="step-card reveal reveal-delay-2">
|
||||
<div class="step-number">3</div>
|
||||
<h3>Ожидайте курьера</h3>
|
||||
<p>Привозим в согласованный интервал и предупреждаем, если нужно скорректировать время.</p>
|
||||
</article>
|
||||
<article class="step-card reveal reveal-delay-3">
|
||||
<div class="step-number">4</div>
|
||||
<h3>Получите воду</h3>
|
||||
<p>Курьер поможет с выгрузкой, заменой бутыли и при необходимости заберет пустую тару.</p>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<?php require get_theme_file_path( 'template-parts/test1-shared-footer.php' ); ?>
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
</html>
|
||||
105
wp-content/themes/twentytwentyfour/page-service.php
Normal file
105
wp-content/themes/twentytwentyfour/page-service.php
Normal file
@@ -0,0 +1,105 @@
|
||||
<?php
|
||||
/**
|
||||
* Service page template with shared test1 header/footer.
|
||||
*
|
||||
* @package Twenty_Twenty_Four
|
||||
*/
|
||||
|
||||
?><!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
<body <?php body_class( 'test1-shared-shell test1-shared-service-page' ); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<?php
|
||||
$test1_header_action_url = function_exists( 'wc_get_cart_url' ) ? wc_get_cart_url() : home_url( '/cart/' );
|
||||
$test1_header_action_label = __( 'Корзина', 'twentytwentyfour' );
|
||||
$test1_header_mode = 'link';
|
||||
require get_theme_file_path( 'template-parts/test1-shared-header.php' );
|
||||
?>
|
||||
|
||||
<main class="site-main" role="main">
|
||||
<section class="section" id="service">
|
||||
<div class="container">
|
||||
<div class="section-head">
|
||||
<div>
|
||||
<span class="eyebrow">Для дома и офиса</span>
|
||||
<h1 class="section-title">Два сценария сервиса, одна стабильная доставка</h1>
|
||||
</div>
|
||||
<p class="section-copy">Мы разделили формат обслуживания, чтобы вам было проще выбрать подходящий режим: регулярные поставки для офиса или гибкая доставка воды для дома.</p>
|
||||
</div>
|
||||
|
||||
<div class="segments-grid">
|
||||
<article class="segment-card reveal">
|
||||
<span class="eyebrow">Доставка воды на дом</span>
|
||||
<h3>Комфортный домашний запас без лишней тяжести</h3>
|
||||
<p>Подходит для семей, молодых родителей, пожилых клиентов и тех, кто не хочет тратить время на покупку воды в магазине.</p>
|
||||
<ul class="segment-list">
|
||||
<li>Удобные интервалы утром, днем и вечером</li>
|
||||
<li>Подъем на этаж и помощь с установкой</li>
|
||||
<li>Небольшие форматы и вода 19 литров с доставкой</li>
|
||||
<li>Напоминание о повторном заказе</li>
|
||||
</ul>
|
||||
<div class="segment-meta">Часто выбирают: 2 бутыли 19 л + вода 5 л для кухни</div>
|
||||
</article>
|
||||
|
||||
<article class="segment-card featured reveal reveal-delay-1">
|
||||
<span class="eyebrow eyebrow-inverse">Доставка воды в офис</span>
|
||||
<h3>Регулярные поставки для команд, переговорных и клиентских зон</h3>
|
||||
<p>Офисам, салонам, кафе, фитнес-клубам и студиям нужен предсказуемый сервис. Мы строим график так, чтобы запас воды не заканчивался в рабочие часы.</p>
|
||||
<ul class="segment-list">
|
||||
<li>Безналичная оплата и закрывающие документы</li>
|
||||
<li>Автодоставка воды по графику</li>
|
||||
<li>Приоритетные интервалы на будни</li>
|
||||
<li>Комбинированные заказы для кулеров и гостей</li>
|
||||
</ul>
|
||||
<div class="segment-meta">Часто выбирают: 6-12 бутылей 19 л в неделю + минеральная вода для переговорных</div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section" id="service-benefits">
|
||||
<div class="container">
|
||||
<div class="section-head">
|
||||
<div>
|
||||
<span class="eyebrow">Преимущества</span>
|
||||
<h2 class="section-title">Сервис, который удобно масштабировать</h2>
|
||||
</div>
|
||||
<p class="section-copy">Независимо от типа клиента мы сохраняем единый стандарт качества воды, прозрачные условия и предсказуемую логистику.</p>
|
||||
</div>
|
||||
|
||||
<div class="promo-grid">
|
||||
<article class="promo-card highlight reveal">
|
||||
<h3>Гибкий график</h3>
|
||||
<p>Подстраиваем доставку под ваш ритм: от разовых заказов до регулярной автодоставки.</p>
|
||||
</article>
|
||||
<article class="promo-card reveal reveal-delay-1">
|
||||
<h3>Единый поставщик</h3>
|
||||
<p>Можно закрыть все потребности сразу: 19 литров, малые форматы, питьевая и минеральная вода.</p>
|
||||
</article>
|
||||
<article class="promo-card reveal reveal-delay-2">
|
||||
<h3>Прозрачные условия</h3>
|
||||
<p>Без скрытых доплат: заранее согласуем время, тару, подъем и дополнительные услуги.</p>
|
||||
</article>
|
||||
<article class="promo-card reveal reveal-delay-3">
|
||||
<h3>Поддержка клиентов</h3>
|
||||
<p>Быстро отвечаем по телефону и e-mail, помогаем скорректировать объем и график без лишней бюрократии.</p>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<div class="hero-actions hero-actions-spaced">
|
||||
<a class="button" href="<?php echo esc_url( home_url( '/test1/#catalog' ) ); ?>">Выбрать воду</a>
|
||||
<a class="ghost-button" href="<?php echo esc_url( home_url( '/contacts/' ) ); ?>">Связаться с менеджером</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<?php require get_theme_file_path( 'template-parts/test1-shared-footer.php' ); ?>
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -26,9 +26,9 @@ $test1_header_mode = isset( $test1_header_mode ) ? $test1_header_mode :
|
||||
|
||||
<nav class="nav" aria-label="Основная навигация">
|
||||
<a href="<?php echo esc_url( home_url( '/test1/#catalog' ) ); ?>">Каталог</a>
|
||||
<a href="<?php echo esc_url( home_url( '/test1/#delivery' ) ); ?>">Доставка</a>
|
||||
<a href="<?php echo esc_url( home_url( '/test1/#business' ) ); ?>">Для дома и офиса</a>
|
||||
<a href="<?php echo esc_url( home_url( '/test1/#faq' ) ); ?>">FAQ</a>
|
||||
<a href="<?php echo esc_url( home_url( '/delivery/' ) ); ?>">Доставка</a>
|
||||
<a href="<?php echo esc_url( home_url( '/service/' ) ); ?>">Для дома и офиса</a>
|
||||
<a href="<?php echo esc_url( home_url( '/faq/' ) ); ?>">FAQ</a>
|
||||
<a href="<?php echo esc_url( home_url( '/contacts/' ) ); ?>">Контакты</a>
|
||||
</nav>
|
||||
|
||||
@@ -58,9 +58,9 @@ $test1_header_mode = isset( $test1_header_mode ) ? $test1_header_mode :
|
||||
<div class="mobile-panel" id="mobilePanel">
|
||||
<div class="mobile-card">
|
||||
<nav class="mobile-nav" aria-label="Мобильная навигация">
|
||||
<a href="#catalog">Каталог</a>
|
||||
<a href="#delivery">Условия доставки</a>
|
||||
<a href="#business">Для дома и офиса</a>
|
||||
<a href="<?php echo esc_url( home_url( '/test1/#catalog' ) ); ?>">Каталог</a>
|
||||
<a href="<?php echo esc_url( home_url( '/delivery/' ) ); ?>">Условия доставки</a>
|
||||
<a href="<?php echo esc_url( home_url( '/service/' ) ); ?>">Для дома и офиса</a>
|
||||
<a href="<?php echo esc_url( home_url( '/faq/' ) ); ?>">FAQ</a>
|
||||
<a href="<?php echo esc_url( home_url( '/contacts/' ) ); ?>">Контакты</a>
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user