add adv_spaces

This commit is contained in:
argoexpert press
2024-07-07 19:06:45 +03:00
parent 17d9093900
commit 2ead9c2bee
5 changed files with 120 additions and 47 deletions

View File

@@ -9,12 +9,24 @@ if ($query->have_posts()) {
$query->the_post();
get_template_part('content', 'post', ['full_width' => $post_count === 1 && $large_first_image]);
if ($post_count === ($large_first_image ? 5 : 4)) : ?>
<div class="banner-middle desktop">
<?php if (function_exists('banners_conf_display')) banners_conf_display('content_banner_desktop'); ?>
</div>
<div class="banner-middle mobile">
<?php if (function_exists('banners_conf_display')) banners_conf_display('content_banner_mobile'); ?>
</div>
<?if (function_exists('ex_adv_get_banner')):
$middle_desk = ex_adv_get_banner(13);
if ($middle_desk !== ''):?>
<div class="banner-middle desktop">
<?=$middle_desk?>
</div>
<?endif?>
<?$middle_mob = ex_adv_get_banner(14);
if ($middle_mob !== ''):?>
<div class="banner-middle mobile">
<?=$middle_mob?>
</div>
<?endif?>
<?endif?>
<?php endif; ?>
<?php
}