WowPress-Tailwind/theme/template-parts/layout/footer-content.php

34 lines
747 B
PHP
Raw Permalink Normal View History

2024-04-15 16:00:49 +02:00
<?php
/**
* Template part for displaying the footer content
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WowPress
*/
?>
<?php if ( is_active_sidebar( 'bottom-widgets' ) ) : ?>
<aside role="complementary" aria-label="<?php esc_attr_e( 'Footer', 'wowpress' ); ?>">
<?php dynamic_sidebar( 'bottom-widgets' ); ?>
</aside>
<?php endif; ?>
<footer id="colophon">
<?php if ( has_nav_menu( 'menu-2' ) ) : ?>
<nav aria-label="<?php esc_attr_e( 'Footer Menu', 'wowpress' ); ?>">
<?php
wp_nav_menu(
array(
'theme_location' => 'menu-2',
'menu_class' => 'footer-menu',
'depth' => 1,
)
);
?>
</nav>
<?php endif; ?>
</footer><!-- #colophon -->