update theme
This commit is contained in:
@@ -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; ?>
|
||||
Reference in New Issue
Block a user