<?php

/**
 * Template part for displaying the footer content
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package studio-up
 */

?>

<footer id="colophon" class="site-footer py-8">
	<section class="container mx-auto">
		<?php if (is_active_sidebar('sidebar-footer')) : ?>
			<aside role="complementary" aria-label="<?php esc_attr_e('Footer', 'studio-up'); ?>">
				<?php dynamic_sidebar('sidebar-footer'); ?>
			</aside>
		<?php endif; ?>

		<div class="flex w-full flex-col items-center justify-between font-roboto gap-4 py-8  text-sm md:flex-row md:gap-8">

			<?php if (has_nav_menu('footer')) : ?>
				<nav aria-label="<?php esc_attr_e('Footer Menu', 'studio-up'); ?>">
					<?php
					wp_nav_menu(
						array(
							'theme_location' => 'footer',
							'menu_class'     => 'footer-menu',
							'depth'          => 1,
							'items_wrap'     => '<ul id="%1$s" class="%2$s" aria-label="submenu">%3$s</ul>',
						)
					);
					?>
				</nav>
			<?php endif; ?>

			<div>
				Copyright ® <?= date('Y') ?> <?= get_bloginfo('name') ?> <?= __('Todos los derechos reservados', 'studio-up') ?>.
			</div>
		</div>
	</section>
</footer><!-- #colophon -->