-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
78 lines (52 loc) · 2.19 KB
/
footer.php
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* The template for displaying the footer
*
*/
$widgets_areas = get_theme_mod( 'footer-layout', '4' );
$has_active_sidebar = false;
if ( $widgets_areas > 0 ) {
$i = 1;
while ( $i <= $widgets_areas ) {
if ( is_active_sidebar( 'footer_' . $i ) ) {
$has_active_sidebar = true;
break;
}
$i++;
}
}
?>
</div><!-- ./inner-wrap -->
<footer id="colophon" class="site-footer" role="contentinfo">
<?php if ( $has_active_sidebar ) : ?>
<div class="inner-wrap">
<div class="footer-widgets widgets widget-columns-<?php echo esc_attr( $widgets_areas ); ?>">
<?php for ( $i = 1; $i <= $widgets_areas; $i ++ ) : ?>
<div class="column">
<?php dynamic_sidebar( 'footer_' . $i ); ?>
</div><!-- .column -->
<?php endfor; ?>
<div class="clear"></div>
</div><!-- .footer-widgets -->
</div>
<?php endif; ?>
<?php if ( has_nav_menu( 'tertiary' ) ) { ?>
<div class="footer-menu">
<?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-footer', 'theme_location' => 'tertiary', 'depth' => '1' ) ); ?>
</div>
<?php } ?>
<div class="site-info">
<span class="copyright">
<?php
/* translators: 1: poweredby, 2: link, 3: span tag closed */
printf( esc_html__( ' %1$sPowered by %2$s%3$s', 'foodica' ), '<span>', '<a href="'. esc_url( __( 'https://wordpress.org/', 'foodica' ) ) .'" target="_blank">WordPress.</a>', '</span>' );
/* translators: 1: designedby, 2: link, 3: span tag closed */
printf( esc_html__( ' %1$sFoodica WordPress Theme by %2$s%3$s', 'foodica' ), '<span>', '<a href="'. esc_url( __( 'https://www.wpzoom.com/', 'foodica' ) ) .'" rel="nofollow" target="_blank">WPZOOM.</a>', '</span>' );
?>
</span>
</div><!-- .site-info -->
</footer><!-- #colophon -->
</div>
<?php wp_footer(); ?>
</body>
</html>