
        <?php if($this->category_data->sys_template_id != 21 && $this->category_data->sys_template_id != 46 && $this->category_data->sys_template_id != 41) : ?>
        
        <div id="front-add" class="p-xxl-5 p-xl-5 p-lg-3 p-3">
            <div class="text-center">
                <a href="/lv/perkam-auto/"><img loading="lazy" class="img-fluid" src="/assets/frontend/images/sell.png" alt="advertisement"></a>
            </div>
        </div>

        <?php endif; ?>

        <footer class="p-5">

            <div class="row">
                <div class="col-12 col-md-6 col-lg-3 col-xl-3 col-xxl-3">
                    <a class="top-nav-logo" href="/">
                        <img src="/assets/frontend/images/logo_footer.png" alt="site logo">  
                    </a>
                </div>
                <div class="col-12 col-md-6 col-lg-9 col-xl-9 col-xxl-9 d-none d-lg-block d-xl-block d-xxl-block text-right">
                    <nav class="site-menu">
                        <ul>
                            <?php foreach ($top_menu_items as $menu_item): ?>                            
                            <li><a href="/<?php echo $this->selected_language->name;?>/<?php echo $menu_item->plink; ?>"><?php echo $menu_item->category_name; ?></a></li>
                            <?php endforeach; ?>
                        </ul>
                    </nav>
                </div>
            </div>

            <hr class="my-5">

            <div class="row">
                <div class="col-12 col-md-6 col-lg-6 col-xl-6 col-xxl-6 quick_social">
                    <a target="_blank" href="https://wa.me/37126707277"><img src="/assets/frontend/images/whatsapp.png" alt="WhatsApp"> <?php echo $lang['car_buy']; ?> WhatsApp</a><br/>
                    <a target="_blank" href="https://wa.me/37128255277"><img src="/assets/frontend/images/whatsapp.png" alt="WhatsApp"> <?php echo $lang['car_sell']; ?> WhatsApp</a><br/>
                    <a target="_blank" href="https://wa.me/37127255277"><img src="/assets/frontend/images/whatsapp.png" alt="WhatsApp"> <?php echo $lang['car_lease']; ?> WhatsApp</a><br/>
                    <a target="_blank" href="https://m.me/carbuylv?ref=carbuy.lv"><img src="/assets/frontend/images/messenger.png" alt="Messenger"> <?php echo $lang['contact_us_']; ?> Messenger</a>
                </div>
                <div class="col-12 col-md-6 col-lg-6 col-xl-6 col-xxl-6 text-right copyrights">
                <a target="_blank" href="https://www.facebook.com/carbuylv"><i class="fab fa-facebook"></i> Facebook</a><br/>
                <a target="_blank" href="https://www.instagram.com/carbuy.lv/"><i class="fab fa-instagram"></i></i> Instagram</a><br/><br/>
                &copy; 2020 carbuy.lv
            	</div>
            </div>
            
        </footer>

    </div>    

    
    <div class="call-widget">
        <i class="fas fa-2x fa-phone-alt"></i>
        <div class="actions">
            <p><?php echo $lang['car_buy']; ?></p>
            <p><a href="tel:+37126707277">+371 <strong>26707277</strong></a></p>
            <p><?php echo $lang['car_sell']; ?></p>            
            <p><a href="tel:+37128255277">+371 <strong>28255277</strong></a></p>
            <p><?php echo $lang['car_lease']; ?></p>            
            <p><a href="tel:+37127255277">+371 <strong>27255277</strong></a></p>
        </div>
    </div>

	<?php if(get_cookie('_agree') != true) : ?>
    <div class="cookie-bar">
    	Uzmanību šī lapa izmanto sīkdatnes. <a class="btn btn-sm btn-success cookie-agree" href="#">Piekrītu visam</a> <a class="btn btn-sm btn-white cookie-more" href="/lv/sikdatnu-politika/">Uzzināt vairāk</a>
    </div> 
    <?php endif; ?>

    <div class="footer-contact-widget-content d-none">

        <h2>Sazinies ar mums</h2>

        <div class="contact-item-holder">

            <div class="contact-item">
                <a target="_blank" href="https://wa.me/37126707277">
                <div><img src="/assets/frontend/images/whatsapp.png" alt="WhatsApp"></div>
                <div>
                    Auto uzpirkšana<span>+371 26707277</span>
                </div>
                </a>
            </div>

            <div class="contact-item">
                <a target="_blank" href="https://wa.me/37128255277">
                <div><img src="/assets/frontend/images/whatsapp.png" alt="WhatsApp"></div>
                <div>                    
                    Auto tirdzniecība<span>+371 28255277</span>
                </div>
                </a>
            </div>

            <div class="contact-item">
                <a target="_blank" href="https://wa.me/37127255277">
                <div><img src="/assets/frontend/images/whatsapp.png" alt="WhatsApp"></div>
                <div>                    
                    Auto Līzings<span>+371 27255277</span>
                </div>
                </a>
            </div>

        </div>
    </div>

    

    <div class="footer-contact-widget">

        <div class="footer-contact-button">
            <i class="fa fa-comments"></i>
        </div>
       
    </div>

    <div class="waze d-block d-lg-none">
    	<a href="https://waze.com/ul?place=ChIJS-JmLVrP7kYRDqPrxHIaAsY&ll=56.94014340%2C24.18118310&navigate=yes&utm_campaign=default&utm_source=waze_website&utm_medium=lm_share_location">
		<span class="fa-stack fa-2x">
		<i class="fas fa-circle fa-stack-2x"></i>
		<i class="fab fa-waze fa-stack-1x text-white"></i>
		</span>
		</a>
	</div>

    <script src="/assets/frontend/plugins/jquery-3.4.1.min.js"></script>
    <script src="/assets/frontend/plugins/bootstrap-4.4.1/js/bootstrap.bundle.min.js"></script>    
    <script src="/assets/frontend/plugins/bootstrap-select-1.13.9/dist/js/bootstrap-select.min.js"></script>
    <?php 
    if(!empty($_scripts) && is_array($_scripts)) {
        foreach ($_scripts as $_script) {
           echo '<script src="'.$_script.'"></script>';
        }
    } 
    ?>

    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-ZR6M4TBEPS"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', 'G-ZR6M4TBEPS');
        gtag('config', 'AW-663599084');
        gtag('event', 'conversion', {'send_to': 'AW-663599084/u27gCPizy8kBEOzvtrwC'});
        gtag('consent', 'default', {
            'ad_storage': 'denied',
            'analytics_storage': 'denied'
        });
    </script>
    
    <script type="text/javascript">
        var selected_language = {id: '<?php echo $this->selected_language->id; ?>',name: '<?php echo $this->selected_language->name; ?>'}       
    </script>
    <script src="/assets/frontend/js/app.js?v=<?php echo time(); ?>"></script>
    

