    <?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after
 *
 * @package _spx
 */
?>

<!--BEGIN-FOOTER-->
<div id="footer" class="page-block">
    <div class="container">
        <div class="section no-border">
            <header class="page-head colored clearfix">

                <div class="col-md-6 col-sm-12">
                    <h3 class="subscribeHeading"><?php _e('Subscribe To Our Newsletter', 'xs') ?></h3>
                    <?php
                    if (shortcode_exists('xs_subscribe_form')) {
                        echo do_shortcode('[xs_subscribe_form id="subscribeForm"]');
                    } else {
                        echo 'Please install \'Subscribe Plugin\' to enable this feature.';
                    }
                    ?>
                </div>

                <div class="col-md-5 col-md-offset-1 col-sm-12">
                    <h3>Let's Get Social</h3>
                    <div class="social">
                        <ul class="list-inline">
                            <?php
                            $array = xs_get_option('theme_options', 'social_link', array());
                            foreach ($array as $v) {
                                echo ' <li><a class="tips" href="' . $v['link'] . '" title="' . $v['title'] . '"><i class="fa fa-' . $v['icon'] . '"></i></a></li>';
                            }
                            ?>

                        </ul>
                    </div>
                    <!-- end social --> 
                </div>
            </header>
            <p class="text-center"><?php echo xs_get_option('theme_options', 'copyright_text'); ?><br>
                <?php echo xs_get_option('theme_options', 'footer_slogan'); ?></p>
            <a href="#top" class="top"><i class="fa fa-arrow-up fa-lg"></i></a> 
        </div><!--end-of-section--> 
    </div>
</div>
<!--END-FOOTER--> 

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