Initial commit
This commit is contained in:
47
sidebar-right.php
Normal file
47
sidebar-right.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php if (!is_front_page()) : ?>
|
||||
<div class="most-read content-right__most-read">
|
||||
<div class="most-read__inner">
|
||||
<p class="most-read__title subtitle-20">Самое читаемое</p>
|
||||
<div class="most-read__links">
|
||||
<?php get_template_part('partials/most-read-posts'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<div class="subscribe-form">
|
||||
<p class="subscribe-form__title subtitle-20">
|
||||
Подписка на рассылку
|
||||
</p>
|
||||
<p class="subscribe-form__text text-13">
|
||||
Подпишитесь на нашу рассылку и будьте в курсе всех новостей
|
||||
</p>
|
||||
<?= do_shortcode('[contact-form-7 id="0ddb83c" title="Форма подписки" html_class="" html_id=""]')?>
|
||||
</div>
|
||||
|
||||
<?php get_template_part('partials/latest-legislation-posts'); ?>
|
||||
|
||||
<?php $banners = wp_is_mobile() ? get_field('banners_right_sidebar_mobile', 'option') : get_field('banners_right_sidebar', 'option');?>
|
||||
|
||||
<? foreach ($banners ?? [] as $banner) :?>
|
||||
<? if (!empty($banner['image_banner']) && !empty($banner['link'])) : ?>
|
||||
<div class="banner-left">
|
||||
<a href="<?= empty($banner['link']) ? home_url() : $banner['link'] ?>">
|
||||
<img src="<?= $banner['image_banner']['url'] ?>" alt="">
|
||||
</a>
|
||||
</div>
|
||||
<? endif; ?>
|
||||
<? endforeach;?>
|
||||
|
||||
<style>
|
||||
.banner-left {
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.button {
|
||||
border:none;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user