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

@@ -37,13 +37,11 @@
<?php $copyright = get_field('copyright', 'option'); ?> <?php $copyright = get_field('copyright', 'option'); ?>
<div class="footer-bottom__text desktop"> <div class="footer-bottom__text desktop">
<?= sprintf('© %d %s', date('Y'), $copyright); ?> <?= sprintf('© %d %s', date('Y'), $copyright); ?>
<!--Rating::top.agroserver.ru counter-->
</div> </div>
<?php get_template_part('partials/menu-footer-bottom'); ?> <?php get_template_part('partials/menu-footer-bottom'); ?>
<div class="socials footer__socials"> <div class="socials footer__socials">
<?php get_template_part('partials/menu-socials'); ?> <?php get_template_part('partials/menu-socials'); ?>
<!--Rating::top.agroserver.ru counter-->
<a href="https://agroserver.ru/" target="_blank"> <a href="https://agroserver.ru/" target="_blank">
<script language="javascript"> <script language="javascript">
var r = escape(document.referrer); var r = escape(document.referrer);

View File

@@ -50,17 +50,24 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<body <?php body_class(); ?>> <body <?php body_class(); ?>>
<?php wp_body_open(); ?> <?php wp_body_open(); ?>
<div id="app"> <div id="app">
<?if (function_exists('banners_conf_display') and banners_conf_display('header_banner_desktop', false) !== ''):?>
<div class="banner banner--header desktop"> <?if (function_exists('ex_adv_get_banner')):
<?php banners_conf_display('header_banner_desktop'); ?>
</div> $mainbanner = ex_adv_get_banner(1);
<?endif?> if ($mainbanner !== ''):?>
<?if (function_exists('banners_conf_display') and banners_conf_display('header_banner_mobile', false) !== ''):?> <div class="banner banner--header desktop">
<div class="banner banner--header mobile"> <?=$mainbanner?>
<?php banners_conf_display('header_banner_mobile'); ?> </div>
</div> <?endif?>
<?endif?>
<?$mobanner = ex_adv_get_banner(2);
if ($mobanner !== ''):?>
<div class="banner banner--header mobile">
<?=$mobanner?>
</div>
<?endif?>
<?endif?>
<header class="header"> <header class="header">
<div class="container"> <div class="container">

View File

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

View File

@@ -22,20 +22,59 @@
</div> </div>
</div> </div>
</div> </div>
<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>
<div class="banner-left desktop"> <?if (function_exists('ex_adv_get_banner')):
<?php if (function_exists('banners_conf_display')) banners_conf_display('left_sidebar_banner_desktop_2'); ?>
</div> $left_desk_1 = ex_adv_get_banner(3);
<div class="mobile" style="margin-top: 12px;"> if ($left_desk_1 !== ''):?>
<center> <div class="banner-left desktop">
<?php if (function_exists('banners_conf_display')) banners_conf_display('left_sidebar_banner_mobile_2'); ?> <?=$left_desk_1?>
</center> </div>
</div> <?endif?>
<?$left_desk_2 = ex_adv_get_banner(4);
if ($left_desk_2 !== ''):?>
<div class="banner-left desktop">
<?=$left_desk_2?>
</div>
<?endif?>
<?$left_desk_3 = ex_adv_get_banner(5);
if ($left_desk_3 !== ''):?>
<div class="banner-left desktop">
<?=$left_desk_3?>
</div>
<?endif?>
<?$left_mob_1 = ex_adv_get_banner(6);
if ( $left_mob_1 !== ''):?>
<div class="mobile" style="margin-top: 12px;">
<center>
<?=$left_mob_1?>
</center>
</div>
<?endif?>
<?$left_mob_2 = ex_adv_get_banner(7);
if ( $left_mob_2 !== ''):?>
<div class="mobile" style="margin-top: 12px;">
<center>
<?=$left_mob_2?>
</center>
</div>
<?endif?>
<?$left_mob_3 = ex_adv_get_banner(8);
if ( $left_mob_3 !== ''):?>
<div class="mobile" style="margin-top: 12px;">
<center>
<?=$left_mob_3?>
</center>
</div>
<?endif?>
<?endif?>
<?php endif; ?> <?php endif; ?>

View File

@@ -22,18 +22,35 @@
<?php get_template_part('partials/latest-legislation-posts'); ?> <?php get_template_part('partials/latest-legislation-posts'); ?>
<div class="banner-left desktop"> <?if (function_exists('ex_adv_get_banner')):
<?php if (function_exists('banners_conf_display')) banners_conf_display('right_sidebar_banner_desktop_1'); ?>
</div> $right_desk_1 = ex_adv_get_banner(9);
<div class="banner-left mobile"> if ($right_desk_1 !== ''):?>
<?php if (function_exists('banners_conf_display')) banners_conf_display('right_sidebar_banner_mobile_1'); ?> <div class="banner-left desktop">
</div> <?=$right_desk_1?>
</div>
<?endif?>
<?$right_mob_1 = ex_adv_get_banner(11);
if ($right_mob_1 !== ''):?>
<div class="banner-left mobile">
<?=$right_mob_1?>
</div>
<?endif?>
<div class="banner-left desktop"> <?$right_desk_2 = ex_adv_get_banner(10);
<?php if (function_exists('banners_conf_display')) banners_conf_display('right_sidebar_banner_desktop_2'); ?> if ($right_desk_2 !== ''):?>
</div> <div class="banner-left desktop">
<div class="mobile" style="margin-top: 12px;"> <?=$right_desk_2?>
<center> </div>
<?php if (function_exists('banners_conf_display')) banners_conf_display('right_sidebar_banner_mobile_2'); ?> <?endif?>
</center>
</div> <?$right_mob_2 = ex_adv_get_banner(12);
if ($right_mob_2 !== ''):?>
<div class="banner-left mobile">
<?=$right_mob_2?>
</div>
<?endif?>
<?endif?>