add new adv plugin and suppoer webp

This commit is contained in:
argoexpert press
2025-04-18 19:44:26 +03:00
parent f3b21a96e4
commit 5aeb9f4cdb
13 changed files with 156 additions and 138 deletions

View File

@@ -9,24 +9,14 @@ 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)) : ?>
<?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?>
<?if (function_exists('krutilka_placement')):?>
<div class="banner-middle desktop">
<?=krutilka_placement( 'middle-desktop' );?>
</div>
<div class="banner-middle mobile">
<?=krutilka_placement( 'middle-mobile' );?>
</div>
<?endif?>
<?php endif; ?>
<?php
}