<?php
/*var_dump(get_field('numbers_bool'));
if(get_field('numbers_bool')==true){
    include 'inc/numbers.php';
}
if(is_singular('produit')){
    include 'inc/numbers.php';
}*/
include 'inc/numbers.php';
?>

<footer role="contentinfo" class="footer container-fluid bg-brown white p-5">
    <div class="container pt-5">
        <div class="row">
            <div class="col-12 col-md-6 col-xl-3 order-0 order-xl-0 px-4">
                <img src="<?php echo get_template_directory_uri();?>/images/logo-white.png" alt="<?php echo bloginfo('name'); ?>" class="img-fluid">
                <?php
                if(get_field('linkedin','options')){
                    $linkedin = get_field('linkedin','options');
                    ?>
                        <p class="my-3 d-block">
                            <a href="<?php echo $linkedin;?>" class="white montserrat bold " target="_blank">Suivez-nous <i class="ms-3 bi bi-linkedin beige"></i></a>
                        </p>
                <?php
                }
                ?>
             </div>
            <div class="col-12 col-md-6 col-xl-3  order-4 order-xl-1 addresses px-4">
                <div class="arrow  arrow arrow_top arrow_title arrow_beige">
                <p class="h3 montserrat bold"><?php echo get_field('title_1','options');?></p>
                <p class="subtitle"><?php echo get_field('subtitle_1','options');?></p>
                </div>
                <address>
                    <?php echo get_field('address_1','options');?>
                </address>
                <p>
                    <?php
                    $phone = get_field('phone_1','options');
                    $phone_link = str_replace(' ','',$phone);
                    ?>
                    <a href="tel:<?php echo $phone_link;?>" class="white"><?php echo get_field('phone_1','options');?></a>
                </p>
            </div>
            <div class="col-12 col-md-6 col-xl-3  order-3 order-xl-2 addresses px-4">
                <div class="arrow  arrow arrow_top arrow_title arrow_beige">
                    <p class="h3 montserrat bold"><?php echo get_field('title_2','options');?></p>
                    <p class="subtitle"><?php echo get_field('subtitle_2','options');?></p>
                </div>
                <address>
                    <?php echo get_field('address_2','options');?>
                </address>
                <p>
                    <?php
                    $phone = get_field('phone_2','options');
                    $phone_link = str_replace(' ','',$phone);
                    ?>
                    <a href="tel:<?php echo $phone_link;?>" class="white"><?php echo get_field('phone_2','options');?></a>
                </p>
            </div>
            <div class="col-12 col-md-6 col-xl-3  order-1 order-xl-4 px-4">
                <p>
                    <a class="arrow_link bg-beige white montserrat bold btn btn-lg" href="">Contactez-nous</a>
                </p>
                <ul class="list-unstyled mt-4">
                    <li class="py-2">
                        <a class="white" href="<?php echo get_permalink(9);?>">À propos</a>
                    </li>
                    <li class="py-2">
                        <a class="white" href="<?php echo get_permalink(15);?>">Recrutement</a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="row">
            <div class="col-12 text-center pt-5">
                <p class="mb-0">
                    © CPL OP <?php echo date('Y');?>
                    - <a class="white" href="<?php echo get_permalink(283);?>">Mentions Légales</a>
                    - Réalisation : <a class="white" href="https://www.b17.fr" target="_blank">B17 Communication Nantes</a>
                    - <a class="white" href="<?php echo get_permalink(437);?>">Gestion des données personnelles</a>
                    - <a class="white" href="#gdpr_cookie_modal">Gérer mes cookies</a>
                </p>
            </div>
        </div>
    </div>
</footer>


<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="<?php echo get_template_directory_uri();?>/js/jquery-3.5.1.min.js"></script>
<script src="<?php echo get_template_directory_uri();?>/js/bootstrap.min.js"></script>
<script src="<?php echo get_template_directory_uri();?>/js/jplist.min.js"></script>
<?php wp_footer(); // js scripts are inserted using this function ?>
<?php
if(is_front_page() || is_singular('produit') || is_singular('actualite') || get_the_id()==15 || is_singular('activite')){
echo '<script src="'.get_template_directory_uri().'/js/jquery.bxslider.min.js"></script>';
echo '<script src="'.get_template_directory_uri().'/js/slick.min.js"></script>';
}
?>

<script src="<?php echo get_template_directory_uri();?>/js/main.js"></script>
<?php
if(is_front_page () || is_singular('actualite')){
    //echo '<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>';
}

?>
	</body>
</html>
