<?php
global $page_url;
?>

<footer>
    <div class="footer-container">

        <div class="subscribe-newsletter">
            <h1>Subscribe to <span>Newsletter</span></h1>

            <div class="subscribe-input-wrapper">
                <input type="text" placeholder="Enter your email ...">
                <button><i class="fa-solid fa-envelope-open"></i> Subscribe</button>
            </div>

        </div>

        <div class="footer-row1">
            <div class="footer-about">
                <img src="<?php echo get_template_directory_uri(); ?>/images/logo-sm.png" alt="logo">
                <p>“Be who you are and say what you feel, because those who mind don't matter, and those who matter
                    don't mind.”</p>
                <div class="social-icons">
                    <a href="#"><i class="fa-brands fa-facebook-f social-icon"></i></a>
                    <a href="#"></a><i class="fa-brands fa-twitter social-icon"></i></a>
                    <a href="#"></a><i class="fa-brands fa-instagram social-icon"></i></a>
                </div>
            </div>
            <div class="footer-links">
                <h1>Useful Links</h1>
                <a href="#"><i class="fa-solid fa-link footer-link-icon"></i>Help Center</a>
                <a href="#"><i class="fa-solid fa-link footer-link-icon"></i>Terms & Conditions</a>
                <a href="#"><i class="fa-solid fa-link footer-link-icon"></i>Privacy Policy</a>
                <a href="#"><i class="fa-solid fa-link footer-link-icon"></i>Refund Policy</a>
                <a href="#"><i class="fa-solid fa-link footer-link-icon"></i>+12 534 565 896</a>
                <a href="#"><i class="fa-solid fa-link footer-link-icon"></i>info@xtramarket.com</a>
            </div>
            <div class="footer-money">
                <h1>Interested in a Great Way <br /><span>Make Money?</span></h1>
                <p>A supermarket is a self-service shop offering a wide variety of food, beverages and household
                    products.</p>
                <button>Become a Seller</button>
            </div>
        </div>

        <div class="footer-row2">
            <div class="footer-copyright">
                <p>With <i class="fa-solid fa-heart footer-heart"></i> by XtraTheme. Copyright © 2025 Xtra Theme.
                </p>
            </div>
            <div class="payment">
                <img src="<?php echo get_template_directory_uri(); ?>/images/payment.png" alt="payment">
            </div>
        </div>

    </div>
</footer>

<div class="back-to-top-button">
    <i class="fa-solid fa-angle-up backtotop-icon"></i>
</div>

<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/script.js"></script>

<?php
if ($page_url == get_site_url()) {
    ?>
    <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/carousel.js"></script>
    <?php
} else
    if (endsWith($page_url, '/account/')) {
        ?>
        <script type="text/javascript">
            accountDetails();
        </script>
        <?php
    }
?>

<?php
//wp_footer();
?>
</body>

</html>