<?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 Blog_Bank
 */
$facebook_url = get_theme_mod('facebook_url','facebook.com');
$twitter_url = get_theme_mod('twitter_url','twitter.com');
$instagram_url = get_theme_mod('instagram_url','instagram.com');
$linkedin_url = get_theme_mod('linkedin_url','linkedin.com');
?>

	</div><!-- #content -->

        <footer class="footer-section">
            <div class="container"> 
                <div class="footer-top footer-social"> 
                    <ul>
                        <?php if ($facebook_url): ?>
                        <li><a href="<?php echo esc_url($facebook_url); ?>"><i class="fa fa-facebook"></i><?php esc_html_e('Facebook','blog-bank'); ?></a></li>
                        <?php
                        endif;
                         if ($twitter_url): ?>
                        <li><a href="<?php echo esc_url($twitter_url); ?>"><i class="fa fa-twitter"></i><?php esc_html_e('Twitter','blog-bank'); ?></a></li>
                        <?php
                        endif;
                         if ($instagram_url): ?>
                        <li><a href="<?php echo esc_url($instagram_url); ?>"><i class="fa fa-instagram"></i><?php esc_html_e('Instagram','blog-bank'); ?></a></li>
                        <?php
                        endif;
                         if ($linkedin_url): ?>
                        <li><a href="<?php echo esc_url($linkedin_url); ?>"><i class="fa fa-linkedin"></i><?php esc_html_e('Linkedin','blog-bank'); ?></a></li>
                        <?php
                        endif;
                        ?>
                         
                    </ul>
                </div>
            </div>
            <div class="footer-bottom"> 
                <div class="container"> 
                <div class="copy-text">
                    <p class="footer-copyright">&copy;
                <?php
                    echo date_i18n(
                    /* translators: Copyright date format, see https://www.php.net/date */
                    _x( 'Y', 'copyright date format', 'blog-bank' )
                    );
                ?>
                <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
            
                <?php
                /* translators: 1: Theme name, 2: Theme author. */
                printf( __( '| WordPress Theme: %1$s by %2$s.', 'blog-bank' ), 'Blog Bank', '<a href="https://wpthemespace.com/">wp theme space</a>' );
                ?>
                </p><!-- .footer-copyright -->

                    </div>
                </div>
            </div>
            </div>
        </footer>
        


</div><!-- #page -->

<?php wp_footer(); ?>

</body>
</html>
