shkola/wp-content/themes/dekart/footer.php

99 lines
4.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
?>
<script src="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.js" defer></script>
<?php wp_footer(); ?>
<footer>
<div class="container footer-wrapper">
<div class="footer-main">
<a class="footer_logo" href="/">
<img width="238" height="70"
src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/logo-svg.svg"
alt="<?php esc_attr_e('Декарт — частная школа в Щелково', 'dekart'); ?>"
loading="lazy">
</a>
<div class="footer__main-col desktop">
<?php
wp_nav_menu( array(
'menu' => 'Footer Menu',
'container' => 'nav',
'container_class' => 'footer_links',
'menu_class' => 'footer_links-col',
'theme_location' => 'top',
) );
?>
</div>
<div class="footer__col">
<button class="btn-write btn-lilac desktop"><?php esc_html_e('Записаться', 'dekart'); ?></button>
<button class="btn-write btn-lilac mobile"><?php esc_html_e('Бесплатное занятие', 'dekart'); ?></button>
<div class="footer__link-icon">
<img width="19" height="32"
src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/icon-location.svg"
alt="" role="presentation" loading="lazy">
<span>г. <?php echo esc_html( carbon_get_theme_option('site_city') ); ?> <br class="mobile"> <?php echo esc_html( carbon_get_theme_option('site_address') ); ?></span>
</div>
<a class="footer__link-icon"
href="tel:<?php echo preg_replace('/[^0-9+]/', '', carbon_get_theme_option('site_phone')); ?>">
<img width="27" height="27"
src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/icon-phone.svg"
alt="Телефон" loading="lazy" style="margin-left:-3px">
<span><?php echo esc_html( carbon_get_theme_option('site_phone') ); ?></span>
</a>
<div class="footer_mobile mobile">
<div class="footer_mobile_title">Наш центр</div>
<ul>
<li><a class="footer_mobile_item" href="/podgotovka-k-ege/">Подготовка к ЕГЭ</a></li>
<li><a class="footer_mobile_item" href="/podgotovka-k-oge/">Подготовка к ОГЭ (ГИА)</a></li>
<li><a class="footer_mobile_item" href="/our-teachers/">Преподаватели</a></li>
<li><a class="footer_mobile_item" href="/otzyvy/">Отзывы</a></li>
</ul>
<div class="footer_mobile_title">Наши контакты</div>
</div>
<div class="social">
<?php get_template_part('template-parts/block-social'); ?>
</div>
</div>
</div>
<div class="footer-last-row">
<a href="/soglashenie-na-obrabotku-personalnyh-dannyh/">Соглашение на обработку персональных данных</a>
<span class="desktop">Все права защищены &copy; <?php echo date('Y'); ?></span>
<span class="mobile">Разработка сайта dekart-promo &copy; <?php echo date('Y'); ?></span>
</div>
</div>
</footer>
<?php
?>
<div class="modal-request-form" style="display:none;" aria-hidden="true" role="dialog" aria-label="Форма записи">
<div class="form-wrapper">
<button class="btn-close-request-form" aria-label="Закрыть форму">
<img class="btn-close-request-form-img"
src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/btn-close-modal.svg"
alt="Закрыть"
loading="lazy">
</button>
<?php echo carbon_get_theme_option('site_bitrix_script'); ?>
</div>
</div>
<link rel="sitemap" type="application/xml" href="/sitemap.xml">
<script>
document.addEventListener("DOMContentLoaded", function() {
var formButton = document.querySelector('.btn-write-camp');
if (formButton) {
formButton.addEventListener('click', function() {
if (!window.b24formLoaded) {
var script = document.createElement('script');
script.src = 'https://cdn-ru.bitrix24.ru/b2215181/crm/form/loader_102.js?' + (Date.now()/180000|0);
script.async = true;
document.body.appendChild(script);
window.b24formLoaded = true;
}
}, { once: true });
}
});
</script>
</body>
</html>