<footer>
    <section class="container bg-body-secondary p-3 pt-5" id="footer">
        <div class="row">
            <?php
            $widgetPos = 5;
            include PATH_VIEW . '/layout/widget.tpl';
            ?>
        </div>
    </section>

    <section class="container p-3" id="footer-info">

        <ul class="nav nav-pills nav-fill mb-0">

            <?php if ($setting->link_whatsapp) { ?>
                <li class="ms-2"><a href="https://api.whatsapp.com/send?phone=<?php echo $setting->link_whatsapp; ?>" target="_blank" aria-label="WhatsApp"><i class="fab fa-whatsapp"></i></a></li>
            <?php } ?>

            <?php if ($setting->link_youtube) { ?>
                <li class="ms-2"><a href="<?php echo $setting->link_youtube; ?>" target="_blank" aria-label="Youtube"><i class="fab fa-youtube"></i></a></li>
            <?php } ?>

            <?php if ($setting->link_instagram) { ?>
                <li class="ms-2"><a href="<?php echo $setting->link_instagram; ?>" target="_blank" aria-label="Instagram"><i class="fab fa-instagram"></i></a></li>
            <?php } ?>

            <?php if ($setting->link_facebook) { ?>
                <li class="ms-2"><a href="<?php echo $setting->link_facebook; ?>" target="_blank" aria-label="Facebook"><i class="fab fa-facebook"></i></a></li>
            <?php } ?>

            <?php if ($setting->link_tiktok) { ?>
                <li class="ms-2"><a href="<?php echo $setting->link_tiktok; ?>" target="_blank" aria-label="TikTok"><i class="fab fa-tiktok"></i></a></li>
            <?php } ?>

            <?php if ($setting->link_linkedin) { ?>
                <li class="ms-2"><a href="<?php echo $setting->link_linkedin; ?>" target="_blank" aria-label="Linkedin"><i class="fab fa-linkedin"></i></a></li>
            <?php } ?>

            <?php if ($setting->link_telegram) { ?>
                <li class="ms-2"><a href="<?php echo $setting->link_telegram; ?>" target="_blank" aria-label="Telegram"><i class="fab fa-telegram"></i></a></li>
            <?php } ?>

            <?php if ($setting->link_twitter) { ?>
                <li class="ms-2"><a href="<?php echo $setting->link_twitter; ?>" target="_blank" aria-label="Twitter"><i class="fab fa-x-twitter"></i></a></li>
            <?php } ?>

            <?php if ($setting->link_pinterest) { ?>
                <li class="ms-2"><a href="<?php echo $setting->link_pinterest; ?>" target="_blank" aria-label="Pinterest"><i class="fab fa-pinterest"></i></a></li>
            <?php } ?>

            <?php if ($setting->link_discord) { ?>
                <li class="ms-2"><a href="<?php echo $setting->link_discord; ?>" target="_blank" aria-label="Discord"><i class="fab fa-discord"></i></a></li>
            <?php } ?>

            <?php if ($setting->link_spotify) { ?>
                <li class="ms-2"><a href="<?php echo $setting->link_spotify; ?>" target="_blank" aria-label="Spotify"><i class="fab fa-spotify"></i></a></li>
            <?php } ?>

            <?php if ($setting->link_soundcloud) { ?>
                <li class="ms-2"><a href="<?php echo $setting->link_soundcloud; ?>" target="_blank" aria-label="SoundCloud"><i class="fab fa-soundcloud"></i></a></li>
            <?php } ?>

        </ul>

        <p class="mb-3 mt-3">© <?php echo $setting->title_site; ?> - <?php echo $_LANG['all_rights_reserved']; ?></p>


    </section>
</footer>

<?php if ($setting->link_whatsapp && $setting->btn_wa_floating) { ?>
    <?php if ($setting->btn_wa_floating == 1) { ?>
        <a id="whatsapp-button" href="https://api.whatsapp.com/send?phone=<?php echo $setting->link_whatsapp; ?>" target="_blank" aria-label="WhatsApp">
            <i class="fab fa-whatsapp"></i>
        </a>
    <?php } else { ?>
        <a id="whatsapp-float" href="https://api.whatsapp.com/send?phone=<?php echo $setting->link_whatsapp; ?>" target="_blank" aria-label="WhatsApp">
            <div class="icon">
                <i class="fab fa-whatsapp"></i>
            </div>
            <div class="info">
                <span><?php echo $_LANG['contact_us']; ?></span>
            </div>
        </a>
    <?php } ?>
<?php } ?>

<div class="alert text-center cookiealert" role="alert"></div>

<?php include 'modal.tpl'; ?>
<?php include 'scripts.tpl'; ?>

</body>

</html>
