update theme

This commit is contained in:
2024-03-12 09:16:19 +03:00
parent 10722da013
commit bef7aac0d5
74 changed files with 2018 additions and 2417 deletions

View File

@@ -17,31 +17,21 @@
<p class="subscribe-form__text text-13">
Подпишитесь на нашу рассылку и будьте в курсе всех новостей
</p>
<?= do_shortcode('[contact-form-7 id="0ddb83c" title="Форма подписки" html_class="" html_id=""]')?>
<?= do_shortcode('[contact-form-7 id="0ddb83c" title="Форма подписки" html_class="" html_id=""]') ?>
</div>
<?php get_template_part('partials/latest-legislation-posts'); ?>
<?php $banners = wp_is_mobile() ? get_field('banners_right_sidebar_mobile', 'option') : get_field('banners_right_sidebar', 'option');?>
<div class="banner-left desktop">
<?php if (function_exists('banners_conf_display')) banners_conf_display('right_sidebar_banner_desktop_1'); ?>
</div>
<div class="banner-left mobile">
<?php if (function_exists('banners_conf_display')) banners_conf_display('right_sidebar_banner_mobile_1'); ?>
</div>
<? foreach ($banners ?? [] as $banner) :?>
<? if (!empty($banner['image_banner']) && !empty($banner['link'])) : ?>
<div class="banner-left">
<a href="<?= empty($banner['link']) ? home_url() : $banner['link'] ?>">
<img src="<?= $banner['image_banner']['url'] ?>" alt="">
</a>
</div>
<? endif; ?>
<? endforeach;?>
<style>
.banner-left {
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.button {
border:none;
}
</style>
<div class="banner-left desktop">
<?php if (function_exists('banners_conf_display')) banners_conf_display('right_sidebar_banner_desktop_2'); ?>
</div>
<div class="banner-left mobile">
<?php if (function_exists('banners_conf_display')) banners_conf_display('right_sidebar_banner_mobile_2'); ?>
</div>