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

?>

	<footer id="colophon" class="site-footer">
	<div class="site-branding">
			<div class="col-33 titoli">
			<?php
					if (has_custom_logo()) {
						the_custom_logo();
					} else {
						if (is_front_page() && is_home()) :
					?>
							<h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>
						<?php
						else :
						?>
							<p class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></p>
						<?php
						endif;
					}
					$micologia_che_passione_description = get_bloginfo('description', 'display');
					if ($micologia_che_passione_description || is_customize_preview()) :
						?>
						<p class="site-description"><?php echo $micologia_che_passione_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 
													?></p>
					<?php endif; ?>

			</div>
			<div class="col-33 small">
			<?php
					wp_nav_menu(
						array(
							'theme_location' => 'footer',
							'menu_id'        => 'footer-menu',
						)
					);
					?>
			</div>
			<div class="search col-33 alignright small">

				<?php get_search_form(); ?>
			</div><!-- .search-banner -->
		</div><!-- .site-branding -->
		<div class="site-branding">
			<div class="col-33 alignleft">
			<p class="footer-copyright">&copy;
				<?php
				echo date_i18n( 'Y' );
				?>
				<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
			</p><!-- .footer-copyright -->			
			</div>
			<div class="col-33">
			</div>
			<div class="col-33 alignright">
				<p class="top"> <a href="#top"> <?php esc_html_e('Top ', 'micologia-che-passione'); ?></a></p>
			</div>
			</div><!-- .site-branding -->		

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

<?php wp_footer(); ?>

</body>
</html>
