<?php if (!is_front_page()) : ?>
    <div class="menu-vertical desktop">
        <div class="menu-vertical__inner">
            <?php get_template_part('partials/category-menu-for-category'); ?>
        </div>
    </div>
<?php endif; ?>

<?php if (is_active_sidebar('left-sidebar')) : ?>
    <?php dynamic_sidebar('left-sidebar'); ?>
<?php endif; ?>


<?php 
if ( in_category('interviews') ) {
    echo '<div class="desktop">';
    get_template_part('partials/latest-interview-post'); 
    echo '</div>';
} else {
    get_template_part('partials/latest-interview-post');
}
?>

<?php if (is_front_page()) : ?>
    <div class="most-read mobile">
        <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; ?>


<?if (function_exists('krutilka_placement')):?>
    <div class="banner-left desktop">
        <?=krutilka_placement( 'left-desktop-1' );?>
    </div>
<?endif?>        
 
<div class="agro-widget">
    <a href="https://speakers.agroexpert.press" target="_blank"><img src="https://agroexpert.press/wp-content/uploads/2025/12/spiker-goda-1.jpg" /></a>
</div>    

<?php get_template_part('rfo/rfo-informer');?>
<?php //get_template_part('partials/forest-informer');?>



<?if (function_exists('krutilka_placement')):?>        
       
        <div class="banner-left desktop">
            <?=krutilka_placement( 'left-desktop-2' );?>
        </div>
       
        <div class="banner-left desktop">
            <?=krutilka_placement( 'left-desktop-3' );?>
        </div>
        <div class="mobile" style="margin-top: 12px;">
            <center><?=krutilka_placement( 'mobile-1' );?></center>
        </div> 
        <div class="mobile" style="margin-top: 12px;">
            <center><?=krutilka_placement( 'mobile-2' );?></center>
        </div> 
        <div class="mobile" style="margin-top: 12px;">
            <center><?=krutilka_placement( 'mobile-3' );?></center>
        </div>     
    <?endif?> 