<?php
/**
 * The template for displaying the footer.
 */

?>

    <div id="left">

        <?php // include VIJ_CACHE.'leftmenu.html';?>
        <?php if (LANG_VERSION == 'en'){
            get_blocks_gen( 'left_menu_en' );
        } else {
            get_blocks_gen( 'left_menu' );
        }
        //get_template_part( '/blocks/leftmenu');?>

    <?if (LANG_VERSION == 'ru'):?>    
        
        <?php  // get_template_part( '/blocks/opinion', null, ['subclass' => '']);
            get_blocks_gen('opinion');
        ?>
        
        <?php // get_template_part( '/blocks/citats');
        get_template_part( '/blocks/pets');
        get_template_part( '/cats/cats-informer');
        //get_blocks_gen( 'citats' );?>
        <?php //include VIJ_CACHE.'opinion.html';?>
        <?php //get_template_part( '/blocks/citata', null, ['subclass' => '']);?>
        <?php //get_template_part( '/blocks/events');?>
        <?php //include VIJ_CACHE.'events.html';?>
    

        <div class="right-info">        
        <!-- Yandex.RTB R-A-4145099-1 -->
<div id="yandex_rtb_R-A-4145099-1"></div>
<script>
window.yaContextCb.push(()=>{
	Ya.Context.AdvManager.render({
		"blockId": "R-A-4145099-1",
		"renderTo": "yandex_rtb_R-A-4145099-1"
	})
})
</script>
</div>
        
    

    <?endif?>

    

    
    </div>

    
    <div id="right">
        <div id="socials">
            <a href="https://vk.com/vizhuvizh" target="_blank"><span class="socs soc-vk"></span></a>
            <a href="https://t.me/ViZHuvizh" target="_blank"><span class="socs soc-tg"></span></a>
            <a href="https://rutube.ru/channel/42943284/" target="_blank"><span class="socs soc-rutube"></span></a>
            <a href="https://dzen.ru/vetandlife" target="_blank"><span class="socs soc-dzen"></span></a>
        </div>  

        <?php include get_template_directory().'/blocks/archive.php';?>
        <?php //include VIJ_CACHE.'archive.html'?>

        <?if (function_exists('krutilka_placement')){ 
            echo krutilka_placement( 'right-desktop-1', 'right-info' );
        }?>
  
        

        <?php get_template_part('partials/formsubscript'); ?>

         <?if (function_exists('krutilka_placement')){ 
            echo krutilka_placement( 'right-desktop-2', 'right-info' );
        }?>


        <?if (LANG_VERSION == 'ru'):?>

            <?if (function_exists('ex_adv_get_banner')):?>
                 

                <?$adv_left_3 = ex_adv_get_banner( 5 );
                 if ($adv_left_3 !== ''):?>
                    <div class="right-info">
                        <?=$adv_left_3?>
                    </div>
                <?endif?> 
                
                
            <?endif?>    


           
        <?endif?>    
                
            
        <?if (LANG_VERSION == 'en'){
            get_template_part( '/blocks/regulation');
        } 
        else {
           // get_template_part( '/blocks/zakons');
                get_blocks_gen( 'zakons' );
        }?>    

         <?if (function_exists('krutilka_placement')){ 
            echo krutilka_placement( 'right-desktop-3', 'right-info' );
        }?>
        
        <?if (LANG_VERSION == 'en'):?> 
            <?get_template_part( '/blocks/enmosts', null, ['subclass' => '']);?>
            <?get_template_part( '/blocks/enmosts', null, ['subclass' => 'mob-lite']);?>
        <?else:?>    
            <?//get_template_part( '/blocks/mosts', null, ['subclass' => '']);?>
            <?//get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>
            <?include VIJ_CACHE.'top.html'?>
            <?//include VIJ_CACHE.'top_mob.html'?>
        <?endif?>  
        

        <?//php include VIJ_CACHE.'mosts.html';?>

    

</div>


        


  </div><!-- end main -->

  <?if (LANG_VERSION == 'ru'):?> 

    <?if (function_exists('krutilka_placement')){ 
        echo krutilka_placement( 'mobile-1', 'mobile-info' );
    }?>

<?//get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>
<?php get_template_part( '/cats/cats-informer', null, ['subclass' => 'mob-lite']);?>
<?include VIJ_CACHE.'top_mob.html'?>
<?get_template_part( '/blocks/enmosts', null, ['subclass' => 'mob-lite']);?>

<?endif?>     

<?php include get_template_directory().'/blocks/mobile-gazeta.php';?>



<?if (LANG_VERSION == 'ru'):?>  

    <?if (function_exists('krutilka_placement')){ 
        echo krutilka_placement( 'mobile-1', 'mobile-info' );
        echo krutilka_placement( 'mobile-2', 'mobile-info' );
         echo krutilka_placement( 'mobile-3', 'mobile-info' );
    }?>

      

<?endif?>     

<?php include get_template_directory().'/blocks/mobile-subscript.php';?>    


  <footer id="footer">  
    
        <div id="footer_menu">
            <?php wp_footer(); ?>

            <?if (LANG_VERSION == 'en'){
                $mainmenu = 'topenmenu'; 
            }
            else{
                $mainmenu = 'topmenu';
            }
            ?>


            <div class="footer_sub">
                <?php wp_nav_menu( array(
	            'menu_class' => 'menu_footer',
                'menu' => $mainmenu
            ));?>
            </div>
            <div id="footer_up">
                <a href="#main"><?=vij_lang('up_bth', LANG_VERSION);?>&nbsp;&nbsp;<i class="fas fa-chevron-up"></i></a>
            </div>    
        </div>  

        <div id="footer_info">
           <!-- <div id="footer_qr">
                <img id="img_qr" src = "<?=get_stylesheet_directory_uri()?>/pub/icons/qvij.svg" width="100" height="100" />
                <p class="vazh"><?=vij_lang('qrtitle', LANG_VERSION);?></p>
            </div> --> 
            
            <div id="footer_qr">
                <div class="footer_qr qr_vk">
                    <img id="img_qr" src = "<?=get_stylesheet_directory_uri()?>/pub/icons/qr-vk.svg" width="100" height="100" />
                    <p class="vazh">"ВиЖ"<br>ВКонтакте</p>
                </div>
                <div class="footer_qr qr_telega">
                    <img id="img_qr" src = "<?=get_stylesheet_directory_uri()?>/pub/icons/qr-telega.svg" width="100" height="100" />
                    <p class="vazh">"ВиЖ"<br>Telegram</p>
                </div>
        </div>     
            
            <div id="footer-contact">
                <div id="head_tel"><a href="tel:79250634">+7 (495) 925 06 34</a></div>
                <div id="head_mail"><a href="mailto:info@vetandlife.ru">info@vetandlife.ru</a></div>
            </div>
            <div id="footer_logo">    
               <a  href="<?php echo vij_lang('link_version', LANG_VERSION); ?>"><img src = "<?=get_stylesheet_directory_uri().vij_lang('path_logo', LANG_VERSION);?>" alt = "<?=vij_lang('alt_logo', LANG_VERSION);?>" width="180"/></a>
            </div>
            <div id="footer_subscript">
            <button class="sub_button" onclick="location.href='https://vetandlife.ru/subscripts'" type="button">
            <?=vij_lang('subscript_btn', LANG_VERSION);?> </button>
            </div>   
            
            <?php get_template_part('partials/social_footer'); ?>

        </div>
        
        <div id="footer_2">
            <div id="copy">© <?=vij_lang('copyright', LANG_VERSION);?> <?=date('Y')?></div> 
            <div>
               <?if (is_page(20548)):?>
                

                <?endif?> 


            </div>
            <ul id="svid">
                <li><a href="https://vetandlife.ru/rss/news.xml" target="_blank">RSS</a></li> 
                <li><a href="https://vetandlife.ru/wp-content/uploads/2021/11/vij-roskomnadzor.pdf" target="_blank"><?=vij_lang('svid_smi', LANG_VERSION);?></a></li>  
                <li><a href="https://vetandlife.ru/politika-v-otnoshenii-obrabotki-i-zashhity-personalnyh-dannyh-ooo-da-vinchi-media/" target="_blank">Политика в отношении обработки и защиты персональных данных</a></li>
            </ul>
        </div>
       
        <div id="footer_3">
            <div class="rating">
                <div class=""rating-num>16+</div>
            </div>
            <div id="pere">
                <?=vij_lang('copyright_text', LANG_VERSION);?>
            </div>


            <div><!--LiveInternet logo--><a href="https://www.liveinternet.ru/click"
target="_blank"><img src="https://counter.yadro.ru/logo?12.1"
title="LiveInternet: number of pageviews for 24 hours, of visitors for 24 hours and for today is shown"
alt="" style="border:0" width="88" height="31"/></a><!--/LiveInternet-->
</div>

            <div>
    <!-- Yandex.Metrika informer -->
<a href="https://metrika.yandex.ru/stat/?id=56480275&amp;from=informer"
target="_blank" rel="nofollow"><img src="https://informer.yandex.ru/informer/56480275/3_1_FFFFFFFF_EFEFEFFF_0_pageviews"
style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" class="ym-advanced-informer" data-cid="56480275" data-lang="ru" /></a>
<!-- /Yandex.Metrika informer --></div>

<div>
<!--Rating::top.agroserver.ru counter-->
<a href="https://agroserver.ru/" target="_blank">
<script language="javascript">
var r = escape(document.referrer);
var rd = Math.random();
var pr = 'https://top.agroserver.ru/ct/';
document.write('<img src="'+pr+'?uid=18820&ref='+r+'&rd='+rd+'" width="88" height="31" border="0">');
</script></a>
<!--// Rating::top.agroserver.ru counter-->
</div>
        
</div>            
         

</div>
    <?php if (!isset($_COOKIE['cookie_consent_accepted'])) {
        get_template_part('cookie-consent');
    }?>        
    </footer>

    <?php get_template_part( 'partials/formhash' );?>
  
</body>
</html>

