-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
48 lines (43 loc) · 1.76 KB
/
footer.php
File metadata and controls
48 lines (43 loc) · 1.76 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
<footer class="site-footer" id="site-footer">
<div class="devstarter-container">
<?php if ( is_active_sidebar( 'footer-1' ) || is_active_sidebar( 'footer-2' ) ) : ?>
<div class="footer-widgets devstarter-grid devstarter-grid--2">
<?php if ( is_active_sidebar( 'footer-1' ) ) : ?>
<div class="footer-widget-area">
<?php dynamic_sidebar( 'footer-1' ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'footer-2' ) ) : ?>
<div class="footer-widget-area">
<?php dynamic_sidebar( 'footer-2' ); ?>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="site-info">
<?php
$custom_footer = get_theme_mod( 'devstarter_footer_text', '' );
if ( ! empty( $custom_footer ) ) :
echo wp_kses_post( $custom_footer );
else :
?>
<p>© <?php echo esc_html( wp_date( 'Y' ) ); ?> <?php bloginfo( 'name' ); ?>. <?php esc_html_e( 'All rights reserved.', 'devstarter' ); ?></p>
<?php endif; ?>
</div>
<?php if ( has_nav_menu( 'footer' ) ) : ?>
<nav class="footer-navigation" aria-label="<?php esc_attr_e( 'Footer Menu', 'devstarter' ); ?>">
<?php
wp_nav_menu( array(
'theme_location' => 'footer',
'menu_class' => 'footer-menu',
'container' => false,
'depth' => 1,
) );
?>
</nav>
<?php endif; ?>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>