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

?>

<footer id="colophon" class="site-footer">

	<div class="site-info">

		<span class="footer-copyright">
			<?php
			if ( '' === get_theme_mod( 'footer_copyright' ) ) :
				echo '&copy; ' . date( 'Y' ) . '. ' . esc_html( 'All Rights Reserved.', 'pixigo' ); //phpcs:ignore
			else :
				echo wp_kses_post( get_theme_mod( 'footer_copyright' ) );
			endif;
			?>
		</span>

	</div><!-- .site-info -->

	<?php if ( has_nav_menu( 'footer' ) ) : ?>
		<nav id="site-navigation" class="footer-navigation" itemscope itemtype="http://schema.org/SiteNavigationElement" role="navigation">
		<?php
			wp_nav_menu( array(
				'theme_location' => 'footer',
				'menu_id'        => 'footer-menu',
				'depth'          => 1,
			) );
		?>
		</nav><!-- #site-navigation -->
	<?php endif; ?>

</footer><!-- #colophon -->

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

<?php wp_footer(); ?>

</body>
</html>
