<!-- footer -->
<?php if (! function_exists( 'elementor_theme_do_location' ) || !elementor_theme_do_location( 'footer' )){
    include(TEMPLATEPATH."/inc/theme_parts/default-footer.php");
}
?>
<!-- search modal -->
<?php include(TEMPLATEPATH."/inc/theme_parts/search-modal.php"); ?>

<div class="banta-toast"><div class="toast-icon"><i class="icon-heart"></i></div><span class="toast-msg"></span></div>
<script src="<?php bloginfo('template_directory'); ?>/js/bootstrap.bundle.min.js"></script>
<script src="<?php bloginfo('template_directory'); ?>/js/swiper-bundle.min.js"></script>
<script src="<?php bloginfo('template_directory'); ?>/js/sweetalert2.all.js"></script>
<script src="<?php bloginfo('template_directory'); ?>/js/core.js"></script>

<?php global $template;
if(basename( $template ) === 'page_blog.php'):?>
    <script>
        new Swiper('.featured-posts-swiper', {
            ...globalSwiperOptions,
            slidesPerView: 1.2,
            spaceBetween: 16,
            loop:true,
            speed: 500,
            freeMode:false,
            autoplay: true,
            navigation: {
                nextEl: '.custom-swiper-button-next',
                prevEl: '.custom-swiper-button-prev',
                enabled:false,
            },
            breakpoints: {
                768:{
                    slidesPerView: 1,
                    navigation: {
                        nextEl: '.custom-swiper-button-next',
                        prevEl: '.custom-swiper-button-prev',
                        enabled:true,
                    },
                }

            }
        });
    </script>
<?php endif;?>

<?php $customJs = get_option(TEXT_DOMAIN . '_custom_js'); echo $customJs;?>
<?php wp_footer();?>
</body>
</html>