-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathfooter.php
executable file
·121 lines (82 loc) · 2.57 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
/**
* The template for displaying footer
*
* @since 1.0.0
* @package Coldbox
*/
if ( cd_is_amp() ) :
cd_addon_amp_footer();
else :
?>
<footer id="footer" class="footer" role="contentinfo">
<?php if ( cd_get_number_of_footer_sidebar() ) : ?>
<div class="footer-widget-area has-<?php echo absint( cd_get_number_of_footer_sidebar() ); ?>">
<div class="container">
<?php for ( $cd_i = 1; $cd_i <= 4; $cd_i++ ) : ?>
<?php if ( is_active_sidebar( 'footer-' . $cd_i ) ) : ?>
<aside id="footer-<?php echo absint( $cd_i ); ?>" class="footer-sidebar-container footer-s<?php echo absint( $cd_i ); ?>" role="complementary">
<div class="footer-sidebar sidebar">
<div class="sidebar-inner">
<?php dynamic_sidebar( 'footer-' . $cd_i ); ?>
</div>
</div>
</aside><!--/.sidebar-->
<?php endif; ?>
<?php endfor; ?>
</div>
</div>
<?php endif; ?>
<?php cd_footer_menu(); ?>
<div class="footer-bottom">
<div class="container">
<div class="copyright">
<p>
<?php
$cd_allowed_html = array(
'a' => array(
'href' => array(),
'onclick' => array(),
'target' => array(),
),
'p' => array(
'style' => array(),
'align' => array(),
'target' => array(),
),
'br' => array(),
'strong' => array(),
'b' => array(),
'small' => array(),
);
?>
<?php echo wp_kses( cd_credit(), $cd_allowed_html ); ?>
<?php if ( function_exists( 'the_privacy_policy_link' ) && cd_is_privacy_policy_link_shown() ) : ?>
<?php the_privacy_policy_link( ' / ', '<span role="separator" aria-hidden="true"></span>' ); ?>
<?php endif; ?>
</p>
<?php if ( cd_is_theme_credit() ) : ?>
<p>
<?php echo wp_kses( cd_theme_credit_text(), $cd_allowed_html ); ?>
</p>
<?php endif; ?>
</div>
<?php cd_social_links(); ?>
</div>
</div><!--/.footer-bottom-->
<a id="back-to-top" class="noscroll is-hidden back-to-top" href="#">
<span class="chevron-up" aria-hidden="true"></span>
<span class="screen-reader-text"><?php esc_html_e( 'Back To Top', 'coldbox' ); ?></span>
</a>
</footer>
<div class="modal-search-form" id="modal-search-form" role="dialog" aria-modal="true">
<?php get_search_form(); ?>
<button class="close-toggle">
<span class="top" aria-hidden="true"></span>
<span class="bottom" aria-hidden="true"></span>
<span class="label"><?php esc_html_e( 'Close', 'coldbox' ); ?></span>
</button>
</div>
<?php wp_footer(); ?>
</body></html>
<?php endif; ?>