You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
294 lines
13 KiB
294 lines
13 KiB
<?php
|
|
|
|
|
|
use Bitrix\Main\Page\Asset;
|
|
|
|
?> <?php if (!preg_match('#^/services(/|$)#', $_SERVER['REQUEST_URI'])): ?> <section class="consultation container">
|
|
<h2 class="consultation__title">Нужна консультация?</h2>
|
|
<form action="#" class="consultation__form" onsubmit="handleConsultationForm(this); return false;">
|
|
<input type="hidden" name="consultation_form" value="Y"> <input type="text" class="input" name="name" placeholder="Ваше имя" required=""> <input type="tel" class="input" name="phone" placeholder="Номер телефона" required=""> <button class="button button--orange">Получить консультацию</button>
|
|
</form>
|
|
<div class="consultation__info">
|
|
Нажимая кнопку «Получить консультацию», вы соглашаетесь с <a href="/dokumentatsiya/politika-konfidentsialnosti/" class="consultation__info--link"><u>условиями конфиденциальности</u></a>
|
|
</div>
|
|
</section>
|
|
<?php endif; ?> <?php if (preg_match('#^/services(/|$)#', $_SERVER['REQUEST_URI'])): ?> <section class="order-call container section">
|
|
<div class="order-call__wrap" style="background-image: url('<span id=" title="<?=SITE_TEMPLATE_PATH?>">
|
|
<?=SITE_TEMPLATE_PATH?><span class="bxhtmled-surrogate-inner"><span class="bxhtmled-right-side-item-icon"></span><span class="bxhtmled-comp-lable" unselectable="on" spellcheck="false">Код PHP</span></span>/images/png/house.png')">
|
|
<form class="order-call__data" action="#" onsubmit="handleConsultationForm(this); return false;">
|
|
<input type="hidden" name="order_call_form" value="Y">
|
|
<h2 class="section-title">
|
|
Рассчитать септик <span class="orange-text">за 5 минут!</span> </h2>
|
|
<p class="order-call__info">
|
|
Наш менеджер свяжется с вами в ближайшее время
|
|
</p>
|
|
<input type="text" class="input" name="name" placeholder="Ваше имя" required=""> <input type="tel" class="input" name="phone" placeholder="Номер телефона" required=""> <button class="button button--orange">Заказать звонок</button>
|
|
<p class="order-call__personal">
|
|
Нажимая кнопку «Заказать звонок», вы подтверждаете свое согласие на обработку <a href="/dokumentatsiya/politika-konfidentsialnosti/">персональных данных</a>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
<?php endif; ?>
|
|
<div class="footer-widget-icons">
|
|
<button class="footer-widget-icon" id="footer-mail-btn" type="button" title="Почта">
|
|
<picture>
|
|
<source srcset="<?= SITE_TEMPLATE_PATH ?>/images/svg/email_footer.svg" type="image/webp">
|
|
<img class="choose__content-icon" src="<?= SITE_TEMPLATE_PATH ?>/images/svg/email_footer.svg" alt="Smile-icon">
|
|
</picture>
|
|
</button>
|
|
<a class="footer-widget-icon" href="tel:+79260084132" title="Позвонить">
|
|
<picture>
|
|
<source srcset="<?= SITE_TEMPLATE_PATH ?>/images/svg/phone_footer.svg" type="image/webp">
|
|
<img class="choose__content-icon" src="<?= SITE_TEMPLATE_PATH ?>/images/svg/phone_footer.svg" alt="Smile-icon">
|
|
</picture>
|
|
</a>
|
|
</div>
|
|
<div class="footer-popup" id="footer-popup" style="display:none;">
|
|
<div class="footer-popup__content">
|
|
<button class="footer-popup__close" id="footer-popup-close" type="button">×</button>
|
|
<h2 class="footer-popup__title">Получить консультацию</h2>
|
|
<form class="footer-popup__form" action="#" onsubmit="handleConsultationForm(this); return false;">
|
|
<input type="hidden" name="footer_popup_form" value="Y"> <input type="text" class="input" name="name" placeholder="Имя" required=""> <input type="tel" class="input" name="phone" placeholder="Номер телефона*" required=""> <input type="email" class="input" name="email" placeholder="Почта"> <button class="button button--orange" type="submit">Отправить заявку</button>
|
|
<p class="footer-popup__personal">
|
|
Нажимая на кнопку «Отправить заявку», вы соглашаетесь с <a href="/dokumentatsiya/politika-konfidentsialnosti/" target="_blank">условиями конфиденциальности</a>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<section class="tap-bar">
|
|
<div class="tap-bar__item">
|
|
<a class="tap-bar__link" href="/">
|
|
Главная </a>
|
|
</div>
|
|
<div class="tap-bar__item">
|
|
<a class="tap-bar__link" href="/uslugi/">
|
|
Услуги </a>
|
|
</div>
|
|
<div class="tap-bar__item tap-bar__item--catalog">
|
|
<button class="tap-bar__link js-catalog" type="button">
|
|
Каталог </button>
|
|
</div>
|
|
<div class="tap-bar__item">
|
|
<a class="tap-bar__link" href="/cart/">
|
|
Корзина </a>
|
|
</div>
|
|
<div class="tap-bar__item tap-bar__item--tablet">
|
|
<a class="tap-bar__link" href="#">
|
|
Расчет </a>
|
|
</div>
|
|
<div class="tap-bar__item tap-bar__item--menu">
|
|
<button class="tap-bar__link js-menu" type="button">
|
|
Меню </button>
|
|
</div>
|
|
</section> <footer class="footer footer section">
|
|
<div class="container">
|
|
<div class="footer__top">
|
|
<?$APPLICATION->IncludeComponent(
|
|
"bitrix:menu",
|
|
"footer_menu",
|
|
Array(
|
|
"ALLOW_MULTI_SELECT" => "N",
|
|
"CHILD_MENU_TYPE" => "",
|
|
"DELAY" => "N",
|
|
"MAX_LEVEL" => "1",
|
|
"MENU_CACHE_GET_VARS" => array(0=>"",),
|
|
"MENU_CACHE_TIME" => "3600",
|
|
"MENU_CACHE_TYPE" => "N",
|
|
"MENU_CACHE_USE_GROUPS" => "Y",
|
|
"MENU_TITLE" => "Услуги",
|
|
"ROOT_MENU_TYPE" => "services",
|
|
"USE_EXT" => "N"
|
|
)
|
|
);?> <?$APPLICATION->IncludeComponent(
|
|
"bitrix:menu",
|
|
"footer_menu",
|
|
Array(
|
|
"ALLOW_MULTI_SELECT" => "N",
|
|
"CHILD_MENU_TYPE" => "",
|
|
"DELAY" => "N",
|
|
"MAX_LEVEL" => "1",
|
|
"MENU_CACHE_GET_VARS" => array(0=>"",),
|
|
"MENU_CACHE_TIME" => "3600",
|
|
"MENU_CACHE_TYPE" => "N",
|
|
"MENU_CACHE_USE_GROUPS" => "Y",
|
|
"MENU_TITLE" => "Полезная информация",
|
|
"ROOT_MENU_TYPE" => "useful",
|
|
"USE_EXT" => "N"
|
|
)
|
|
);?> <?$APPLICATION->IncludeComponent(
|
|
"bitrix:menu",
|
|
"footer_menu",
|
|
Array(
|
|
"ALLOW_MULTI_SELECT" => "N",
|
|
"CHILD_MENU_TYPE" => "",
|
|
"DELAY" => "N",
|
|
"MAX_LEVEL" => "1",
|
|
"MENU_CACHE_GET_VARS" => array(0=>"",),
|
|
"MENU_CACHE_TIME" => "3600",
|
|
"MENU_CACHE_TYPE" => "N",
|
|
"MENU_CACHE_USE_GROUPS" => "Y",
|
|
"MENU_TITLE" => "Покупателям",
|
|
"ROOT_MENU_TYPE" => "customers",
|
|
"USE_EXT" => "N"
|
|
)
|
|
);?>
|
|
<div class="footer-items">
|
|
<?$APPLICATION->IncludeComponent(
|
|
"bitrix:menu",
|
|
"footer_menu",
|
|
Array(
|
|
"ALLOW_MULTI_SELECT" => "N",
|
|
"CHILD_MENU_TYPE" => "",
|
|
"DELAY" => "N",
|
|
"MAX_LEVEL" => "1",
|
|
"MENU_CACHE_GET_VARS" => array(0=>"",),
|
|
"MENU_CACHE_TIME" => "3600",
|
|
"MENU_CACHE_TYPE" => "N",
|
|
"MENU_CACHE_USE_GROUPS" => "Y",
|
|
"MENU_TITLE" => "Интересное",
|
|
"ROOT_MENU_TYPE" => "interesting",
|
|
"USE_EXT" => "N"
|
|
)
|
|
);?> <?$APPLICATION->IncludeComponent(
|
|
"bitrix:menu",
|
|
"footer_menu",
|
|
Array(
|
|
"ALLOW_MULTI_SELECT" => "N",
|
|
"CHILD_MENU_TYPE" => "",
|
|
"DELAY" => "N",
|
|
"MAX_LEVEL" => "1",
|
|
"MENU_CACHE_GET_VARS" => array(0=>"",),
|
|
"MENU_CACHE_TIME" => "3600",
|
|
"MENU_CACHE_TYPE" => "N",
|
|
"MENU_CACHE_USE_GROUPS" => "Y",
|
|
"MENU_TITLE" => "Документация",
|
|
"ROOT_MENU_TYPE" => "docs",
|
|
"USE_EXT" => "N"
|
|
)
|
|
);?>
|
|
</div>
|
|
</div>
|
|
<div class="footer__bottom">
|
|
<?$APPLICATION->IncludeComponent(
|
|
"bitrix:main.include",
|
|
"",
|
|
Array(
|
|
"AREA_FILE_SHOW" => "file",
|
|
"AREA_FILE_SUFFIX" => "",
|
|
"EDIT_TEMPLATE" => "",
|
|
"PATH" => "/include/footer_logo.php"
|
|
)
|
|
);?>
|
|
<div>
|
|
<iframe src="https://yandex.ru/sprav/widget/rating-badge/153624708058?type=rating" width="150" height="50" frameborder="0"></iframe>
|
|
</div>
|
|
<?$APPLICATION->IncludeComponent(
|
|
"bitrix:main.include",
|
|
"",
|
|
Array(
|
|
"AREA_FILE_SHOW" => "file",
|
|
"AREA_FILE_SUFFIX" => "",
|
|
"EDIT_TEMPLATE" => "",
|
|
"PATH" => "/include/footer_address.php"
|
|
)
|
|
);?> <?$APPLICATION->IncludeComponent(
|
|
"bitrix:main.include",
|
|
"",
|
|
Array(
|
|
"AREA_FILE_SHOW" => "file",
|
|
"AREA_FILE_SUFFIX" => "",
|
|
"EDIT_TEMPLATE" => "",
|
|
"PATH" => "/include/footer_phone.php"
|
|
)
|
|
);?> <?$APPLICATION->IncludeComponent(
|
|
"bitrix:main.include",
|
|
"",
|
|
Array(
|
|
"AREA_FILE_SHOW" => "file",
|
|
"AREA_FILE_SUFFIX" => "",
|
|
"EDIT_TEMPLATE" => "",
|
|
"PATH" => "/include/footer-requisite.php"
|
|
)
|
|
);?> <?$APPLICATION->IncludeComponent(
|
|
"bitrix:main.include",
|
|
"",
|
|
Array(
|
|
"AREA_FILE_SHOW" => "file",
|
|
"AREA_FILE_SUFFIX" => "",
|
|
"EDIT_TEMPLATE" => "",
|
|
"PATH" => "/include/footer-social.php"
|
|
)
|
|
);?>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
<div class="cookie-banner" id="cookie-banner">
|
|
<span>Продолжая просматривать страницы веб-сайта или нажав кнопку Принять, вы соглашаетесь с <a href="/dokumentatsiya/politika-konfidentsialnosti/" target="_blank">политикой конфиденциальности</a></span> <button class="button button--orange" id="cookie-accept">Принять</button>
|
|
</div>
|
|
<script type="module" src="<?= DEFAULT_TEMPLATE_PATH . '/js/main.js' ?>"></script> <?php
|
|
Asset::getInstance()->addJs(DEFAULT_TEMPLATE_PATH . '/js/libs/fancybox.umd.js');
|
|
Asset::getInstance()->addJs(DEFAULT_TEMPLATE_PATH . '/js/custom.js');
|
|
?> <script>
|
|
// Открытие попапа
|
|
const mailBtn = document.getElementById('footer-mail-btn');
|
|
const popup = document.getElementById('footer-popup');
|
|
const popupClose = document.getElementById('footer-popup-close');
|
|
if (mailBtn && popup && popupClose) {
|
|
mailBtn.addEventListener('click', () => popup.style.display = 'flex');
|
|
popupClose.addEventListener('click', () => popup.style.display = 'none');
|
|
popup.addEventListener('click', (e) => { if (e.target === popup) popup.style.display = 'none'; });
|
|
}
|
|
|
|
const cookieBanner = document.getElementById('cookie-banner');
|
|
const cookieAccept = document.getElementById('cookie-accept');
|
|
if (cookieBanner && cookieAccept) {
|
|
if (localStorage.getItem('cookieAccepted')) {
|
|
cookieBanner.style.display = 'none';
|
|
}
|
|
cookieAccept.addEventListener('click', function() {
|
|
localStorage.setItem('cookieAccepted', '1');
|
|
cookieBanner.style.display = 'none';
|
|
});
|
|
}
|
|
document.querySelectorAll('[data-product]').forEach(function(button) {
|
|
button.addEventListener('click', function() {
|
|
document.querySelector('.cart-popup__wrapper').classList.remove('cart-popup__wrapper--hidden');
|
|
document.getElementById('fast_product').value = button.getAttribute('data-product');
|
|
});
|
|
});
|
|
|
|
</script>
|
|
<div class="cart-popup__wrapper cart-popup__wrapper--hidden">
|
|
<div class="cart-popup">
|
|
<button class="button cart-popup__close js-cart__popup-close"> <img width="20" alt="close-icon" src="<?= DEFAULT_TEMPLATE_PATH ?>/img/svg/cancel.svg" height="20"> </button>
|
|
<h2>
|
|
Оформление заказа </h2>
|
|
<form id="cart-form" action="/local/ajax/order.php" method="POST" class="cart-popup__form">
|
|
<input type="hidden" name="fast_product" id="fast_product"> <label> <input type="text" name="name" placeholder="" required=""> <span class="cart-popup__input-label">Имя</span> </label> <label> <input type="tel" name="phone" placeholder="" required=""> <span class="cart-popup__input-label"> Номер телефона*</span> </label> <label> <input type="email" name="email" placeholder=""> <span class="cart-popup__input-label">Почта</span> </label> <label class="cart-popup__select"> <span class="cart-popup__select-label">Способ получение заказа</span>
|
|
<select class="js-cart__order-select" name="delivery_method">
|
|
<option value="self-delivery">
|
|
Самовывоз </option>
|
|
<option value="service-delivery">
|
|
Службой доставки </option>
|
|
</select>
|
|
</label> <label class="cart-popup__select cart-popup__self-delivery js-cart__self-delivery"> <span class="cart-popup__select-label">Адрес самовывоза</span>
|
|
<select name="pickup_address" disabled="">
|
|
<option>
|
|
Московская область, г. Наро-Фоминск, ул. Московская улица, 3А </option>
|
|
</select>
|
|
</label> <label class="cart-popup__label-delivery cart-popup__label-delivery--hidden js-cart__service-delivery"> <input type="text" name="address" placeholder=""> <span class="cart-popup__input-label">Адрес доставки</span> </label> <label class="cart-popup__label-delivery cart-popup__label-delivery--hidden js-cart__service-delivery"> <input type="text" name="comment" placeholder=""> <span class="cart-popup__input-label">Комментарий</span> </label> <label class="cart-popup__select"> <span class="cart-popup__select-label">Способ оплаты</span>
|
|
<select name="payment_method">
|
|
<option value="cash">
|
|
Наличными при получении </option>
|
|
<option value="card">
|
|
Картой при получении </option>
|
|
</select>
|
|
</label> <button type="submit" class="cart-popup__form-submit js-cart__popup-submit">
|
|
Оформить заказ </button>
|
|
<p class="order-call__personal">
|
|
Нажимая кнопку «Оформить заказ», вы подтверждаете свое согласие на обработку <a href="/dokumentatsiya/politika-konfidentsialnosti/">персональных данных </a>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
</div>
|