<?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 Libra
 */

?>

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

	<div class="footer-wrapper">
		<footer id="colophon" class="site-footer content-wrapper" role="contentinfo">
			<?php
			if ( function_exists( 'jetpack_social_menu' ) ) {
				jetpack_social_menu();
			}
			?>
			<div class="site-info">
				<?php
				$footer_text = get_theme_mod( 'footer_text' );
					
				if ( $footer_text ) :
					echo wp_kses( $footer_text,
						array( 'a' => array( 'href' => array() ),
							'strong' => array(),
							'em'     => array(),
							'span'   => array( 'class' => array() )
						)
					);
				else : 
				?>
					<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'libra' ) ); ?>"><?php printf( esc_html__( 'Proudly powered by %s', 'libra' ), 'WordPress' ); ?></a>
					<span class="sep"> | </span>
					<?php printf( esc_html__( 'Theme: %1$s by %2$s', 'libra' ), 'Libra', '<a href="http://stephencottontail.com/" rel="designer">Stephen Dickinson</a>' );
						
				endif;	
				?>
			</div><!-- .site-info -->
		</footer><!-- #colophon -->
	</div><!-- .footer-wrapper -->
</div><!-- #page -->

<?php wp_footer(); ?>

</body>
</html>
