-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
49 lines (39 loc) · 1.22 KB
/
Copy pathfooter.php
File metadata and controls
49 lines (39 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* Template for displaying the site footer.
*
* Closes the #content div opened in header.php, renders the #colophon
* <footer> element (containing the optional footer widget area and footer
* navigation menu), closes the #page wrapper, calls wp_footer(), and closes
* the <body> and <html> tags.
*
* The role="contentinfo" attribute is applied explicitly on #colophon because
* the implicit landmark role on <footer> only applies when it is a direct
* child of <body>. Here it is nested inside the #page div, so the implicit
* role is not exposed by assistive technology without the explicit attribute.
*
* @package Canard
*/
declare( strict_types=1 );
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
</div><!-- #content -->
<footer id="colophon" class="site-footer" role="contentinfo">
<?php get_sidebar( 'footer' ); ?>
<?php if ( has_nav_menu( 'footer' ) ) : ?>
<nav class="footer-navigation" aria-label="<?php esc_attr_e( 'Footer Navigation', 'canard' ); ?>">
<?php
wp_nav_menu( [
'theme_location' => 'footer',
'depth' => 1,
] );
?>
</nav><!-- .footer-navigation -->
<?php endif; ?>
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>