forked from sunrisemovement/Sunrise-National-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
166 lines (129 loc) · 4.26 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Sunrise_National
*/
?>
</div><!-- #content -->
<footer id="site-footer" role="contentinfo" class="header-footer-group">
<div class="section-inner row">
<div class="footer-left col-md">
<?php
$has_footer_top = has_nav_menu( 'footer-top' );
$has_footer_left = has_nav_menu( 'footer-left' );
$has_footer_right = has_nav_menu( 'footer-right' );
// Only output the container if there are elements to display.
if ( $has_footer_top || $has_footer_left || $has_footer_right ) {
?>
<div class="footer-nav-widgets-wrapper header-footer-group">
<div class="footer-inner section-inner">
<aside class="footer-widgets-outer-wrapper" role="complementary">
<div class="footer-widgets-wrapper">
<?php if ( $has_footer_top ) { ?>
<div class="row">
<div class="footer-widgets footer-top col-md grid-item">
<?php
wp_nav_menu(
array(
'container' => '',
'depth' => 1,
'items_wrap' => '%3$s',
'theme_location' => 'footer-top',
)
);
?>
</div>
</div>
<?php } ?>
<?php if ( $has_footer_right ) { ?>
<div class="row">
<div class="footer-widgets col-lg-5 col-6 grid-item">
<?php
wp_nav_menu(
array(
'container' => '',
'depth' => 1,
'items_wrap' => '%3$s',
'theme_location' => 'footer-left',
)
);
?>
</div>
<?php } ?>
<?php if ( $has_footer_left ) { ?>
<div class="footer-widgets col-lg-5 col-6 grid-item">
<?php
wp_nav_menu(
array(
'container' => '',
'depth' => 1,
'items_wrap' => '%3$s',
'theme_location' => 'footer-right',
)
);
?>
</div>
</div>
<?php } ?>
</div><!-- .footer-widgets-wrapper -->
</aside><!-- .footer-widgets-outer-wrapper -->
</div><!-- .footer-inner -->
</div><!-- .footer-nav-widgets-wrapper -->
<?php } ?>
</div>
<div class="footer-right col-md">
<a class="to-the-top row" href="#masthead">
<div class="to-the-top-long col-md">
<?php
/* translators: %s: HTML character for up arrow. */
printf( __( 'To the top %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">↑</span>' );
?>
</div><!-- .to-the-top-long -->
</a><!-- .to-the-top -->
<?php
$has_social_menu = has_nav_menu( 'social' );
if ( $has_social_menu ) { ?>
<nav aria-label="<?php esc_attr_e( 'Social links', 'sunrisenational' ); ?>" class="footer-social-wrapper">
<ul class="social-menu footer-social reset-list-style social-icons fill-children-current-color">
<?php
wp_nav_menu(
array(
'theme_location' => 'social',
'container' => '',
'container_class' => '',
'items_wrap' => '%3$s',
'menu_id' => '',
'menu_class' => '',
'depth' => 1,
'link_before' => '<span class="screen-reader-text">',
'link_after' => '</span>',
'fallback_cb' => '',
)
);
?>
</ul><!-- .footer-social -->
</nav><!-- .footer-social-wrapper -->
<?php } ?>
<div class="footer-pac">
PAC-related content on this website is paid for by Sunrise PAC, 50 F Street NW STE #700, Washington, DC 20001. Not authorized by any candidate or candidate's committee.
</div>
<p class="footer-copyright">©
<?php
echo date_i18n(
/* translators: Copyright date format, see https://www.php.net/date */
_x( 'Y', 'copyright date format', 'twentytwenty' )
);
?>
Sunrise Movement
</p><!-- .footer-copyright -->
</div>
</div><!-- .section-inner -->
</footer><!-- #site-footer -->
<?php wp_footer(); ?>
</body>
</html>