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

@@ -22,20 +22,10 @@
</div>
</div>
</div>
<?php $banners = wp_is_mobile() ? get_field('banners_left_sidebar_mobile', 'option') : get_field('banners_left_sidebar', 'option');?>
<?if ($banners): ?>
<? foreach ($banners ?? [] as $banner) : ?>
<? if (empty($banner['image_banner']) && empty($banner['link'])) : ?>
<? continue; ?>
<? endif; ?>
<div class="banner-left desktop">
<a href="<?= empty($banner['link']) ? home_url() : $banner['link'] ?>">
<img src="<?= $banner['image_banner']['url'] ?>" alt="">
</a>
</div>
<? endforeach; ?>
<? endif;?>
<div class="banner-left desktop">
<?php if (function_exists('banners_conf_display')) banners_conf_display('left_sidebar_banner_desktop_1'); ?>
</div>
<div class="banner-left mobile">
<?php if (function_exists('banners_conf_display')) banners_conf_display('left_sidebar_banner_mobile_1'); ?>
</div>
<?php endif; ?>