<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after
 *
 * @package Library Books
 */
?>
<div id="footer-wrapper" aria-label="<?php esc_attr_e( 'footer', 'library-books' ); ?>">
    	<div class="container footer">
            <?php if ( is_active_sidebar( 'fc-1' ) ) : ?>
            <div class="cols-3 widget-column-1">  
              <?php dynamic_sidebar( 'fc-1' ); ?>
            </div><!--end .widget-column-1-->                  
    		<?php endif; ?> 
			<?php if ( is_active_sidebar( 'fc-2' ) ) : ?>
            <div class="cols-3 widget-column-2">  
            <?php dynamic_sidebar( 'fc-2' ); ?>
            </div><!--end .widget-column-3-->
            <?php endif; ?> 
			<?php if ( is_active_sidebar( 'fc-3' ) ) : ?>    
            <div class="cols-3 widget-column-3">  
            <?php dynamic_sidebar( 'fc-3' ); ?>
            </div><!--end .widget-column-4-->
			<?php endif; ?> 
            <div class="clear"></div>
        </div><!--end .container--> 
         <div class="copyright-wrapper">
        	<div class="container">
            	 <div class="copyright-txt"><?php echo esc_html(' Copyright &copy; '); bloginfo('name');?></div>	
            	 <div class="design-by"><?php echo esc_html('Theme By '); ?><?php if( is_home() && is_front_page() || is_home() || is_front_page()) {?>
                <a class="desb" href="<?php echo esc_url('https://www.pinnaclethemes.net/product/free-bookstore-wordpress-theme/');?>" rel="nofollow noopener" target="_blank">
                <?php echo esc_html('Library Books'); ?>
                </a>
                <?php } else {?>
                <?php echo esc_html('Library Books'); ?>
                <?php } ?></div>
                 <div class="clear"></div>
            </div>           
        </div>
    </div><!--end .footer-wrapper-->
<?php wp_footer(); ?>
</body>
</html>