<?php
/**
 * The template for displaying the footer
 *
 * Contains the closing of the #content div and all content after.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Better_Morning
 */
global $vtd_option;
?>

<!-- start footer -->
<footer class="ftr"> 
     <section class="newsletter-wrap">
        <div class="container">
            <div class="row">
                <div class="col-md-4 col-sm-5">
                    <h3 class="hd2">
                    <span>NEWSLETTER</span> SUBSCRIPTION
                    </h3>

                </div>
                <div class="col-md-8 col-sm-7">
                  <div class="news-letter-bx">
                    <form method="post"  action="<?php echo site_url(); ?>/?na=s" onsubmit="return newsletter_check(this)">
                        <input class="form-control" type="email" name="ne" placeholder="Enter your email to get updates" required>
                        <input class="tnp-submit" type="submit" value="Submit">
                    </form>
                  </div>
                </div>
            </div>
        </div>
    </section>

    <section class="ftr-top">
        <div class="container">
            <div class="row">
                <div class="col-md-3 col-sm-3">
                    <div class="ftr-info-bx">
                        <a href="<?php echo site_url(); ?>" class="ftr-logo">
                            <img src="<?php echo $vtd_option['f_logo']['url'] ?>" class="img-responsive" alt=""/>
                        </a>
                        <div class="spacer gap-20"></div>
                        <ul>
                            <li><img src="<?php echo IMAGE_PATH; ?>images/payment1.png" class="img-responsive" alt=""/></li>
                            <li><img src="<?php echo IMAGE_PATH; ?>images/payment2.png" class="img-responsive" alt=""/></li>
                            <li><img src="<?php echo IMAGE_PATH; ?>images/payment3.png" class="img-responsive" alt=""/></li>
                            <li><img src="<?php echo IMAGE_PATH; ?>images/payment4.png" class="img-responsive" alt=""/></li>
                            <!-- <li><img src="<?php //echo IMAGE_PATH; ?>images/payment5.png" class="img-responsive" alt=""/></li> -->
                        </ul>                        
                    </div>
                </div>
                <div class="col-md-3 col-sm-3">
                    <div class="ftr-bx">
                        <h3>Navigate us</h3>
                        <?php   $f_menu1 = array(
                                        'menu'            => 'Footer Menu 1',
                                        'menu_id'         => '20',
                                        'cotainer'        => false
                                  ) ;
                             wp_nav_menu($f_menu1);
                        ?>  
                    </div>
                </div>
                <div class="col-md-3 col-sm-3">
                    <div class="ftr-bx">
                        <h3>USEFUL LINKS</h3>
                        <?php   $f_menu2 = array(
                                        'menu'            => 'Footer Menu 2',
                                        'menu_id'         => '25',
                                        'cotainer'        => false
                                  ) ;
                             wp_nav_menu($f_menu2);
                        ?>  
                    </div>
                </div>
                <div class="col-md-3 col-sm-3">
                    <div class="ftr-bx">
                        <h3>CUSTOMER SERVICE</h3>
                        <ul>
                        <?php if(is_user_logged_in()) {?>
                            <li><a href="<?php echo esc_url(get_permalink(61)); ?>">My account</a></li>
                            <li><a href="<?php echo esc_url(get_permalink(102)); ?>">Wishlist</a></li>
                            <li><a href="<?php echo esc_url(get_permalink(57)); ?>">My Cart</a></li>
                            <li><a href="<?php echo esc_url(get_permalink(59)); ?>">Checkout</a></li>
                        <?php } else { ?>
                            <li><a href="<?php echo esc_url(get_permalink(61)); ?>">Register</a></li>
                        <?php } ?>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <section class="ftr-btm">
        <div class="container">
            <div class="row">
                <div class="col-md-12 text-center">
                    <h6 class="copy-right">Copyright © <?php echo date('Y') ?> All Rights Reserved. Designed by <a href="http://vtdesignz.com" target="_blank" rel="nofollow"> vtdesignz.com</a></h6>
                </div>
            </div>
        </div>
    </section>
</footer>
<!-- end footer -->

<div class="spacer"></div>
</div>
<!-- end main wrapper -->

<?php wp_footer(); ?>

</body>
</html>
