-
Notifications
You must be signed in to change notification settings - Fork 7
/
footer.php
242 lines (197 loc) · 9.5 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<?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 WordPress
* @subpackage Twenty_Seventeen
* @since 1.0
* @version 1.2
*/
?>
</div><!-- #content -->
</div><!-- .site-content-contain -->
</div><!-- #page -->
<?php
//Looks at the current site. If the current site is the signage site, it will not display the footer
$blog_id = get_current_blog_id();
//This id the site IDs for the blank website.
$blankID = array(217);
if( in_array($blog_id, $blankID) ){
?> <footer></footer> <?php }
else {
?>
<footer aria-label="Main Footer">
<div class="footer-main">
<div class="footer-main-wrap">
<div class="footer-main-col-1">
<div class="uf">
<a href="https://clas.ufl.edu" target="_blank">
<?php echo twentyseventeen_get_svg( array( 'icon_id' => 'clas-connected-footer', 'class' => 'icon-college-logo-stacked' ) ); ?>
<!-- <span class="SVGaltText">College of Liberal Arts and Sciences Homepage</span> -->
</a>
</div>
<?php
if ( !empty(get_theme_mod('dept_address')) ):
echo '<p class="footer-clas-address">';
echo wp_kses_post( get_theme_mod('dept_address') );
echo '</p>';
else :
?>
<p class="footer-clas-address">Set department address here.</p>
<?php
endif;
?>
<?php echo twentyseventeen_get_svg( array( 'icon_id' => 'journeys-begin', 'class' => 'icon-journeys-begin' ) ); ?>
</div><!-- .footer-main-col-1 -->
<div class="footer-main-col-2">
<div class="footer-main-sub-col">
<!-- Navigate CLAS Footer Menu
<div class="footer-main-nav">
<div class="footer-main-FooterMainNav footer-menu">
<h2>Navigate Liberal Arts & Sciences</h2>
<div class="menu-navigate-liberal-arts-sciences-container">
<ul id="FooterMainNav" class="list-unstyled footer-list>"><li id="menu-item-8769" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-8769"><a href="#" title="Academics" target=""> <span>Academics</span></a></li>
<li id="menu-item-8770" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-8770"><a href="#" title="People" target=""> <span>People</span></a></li>
<li id="menu-item-8771" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-8771"><a href="#" title="Resources" target=""> <span>Resources</span></a></li>
<li id="menu-item-11902" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-11902"><a href="#" title="About" target=""> <span>About</span></a></li>
</ul>
</div>
</div>
</div>-->
<!-- End Navigate CLAS Footer Menu -->
<div class="footer-main-sub-col-1">
<div class="footer-main-FooterCol1 footer-menu">
<?php
$menu_obj = ufclas_emily_get_menu_by_location("FooterCol1");
if (isset ($menu_obj->name)):
?>
<h2><?php echo esc_html($menu_obj->name); ?>
<button><span class="icon-svg icon-caret"><?php echo twentyseventeen_get_svg( array( 'icon_id' => 'caret', 'class' => 'icon-caret-right' ) ); ?></span></button>
</h2>
<?php
endif;
wp_nav_menu( array(
'theme_location' => 'FooterCol1',
'menu_id' => 'FooterCol1',
'menu_class' => 'list-unstyled footer-list>',
'fallback_cb' => 'ufclas_emily_primary_menu_fallback',
'depth' => 1,
) );
?>
</div>
</div>
<div class="footer-main-sub-col-2">
<div class="footer-main-FooterCol1 footer-menu">
<?php
$menu_obj = ufclas_emily_get_menu_by_location("FooterCol2");
if (isset ($menu_obj->name)):
?>
<h2><?php echo esc_html($menu_obj->name); ?> <button><span class="icon-svg icon-caret">
<?php echo twentyseventeen_get_svg( array( 'icon_id' => 'caret', 'class' => 'icon-caret-right' ) ); ?></span></button>
</h2>
<?php
endif;
wp_nav_menu( array(
'theme_location' => 'FooterCol2',
'menu_id' => 'FooterCol2',
'menu_class' => 'list-unstyled footer-list>',
'fallback_cb' => 'ufclas_emily_primary_menu_fallback',
'depth' => 1,
) ); ?>
</div>
</div>
<div class="footer-main-sub-col-3">
<div class="footer-main-FooterCol1 footer-menu">
<?php
$menu_obj = ufclas_emily_get_menu_by_location("FooterCol3");
if (isset ($menu_obj->name)):
?>
<h2><?php echo esc_html($menu_obj->name); ?> <button><span class="icon-svg icon-caret">
<?php echo twentyseventeen_get_svg( array( 'icon_id' => 'caret', 'class' => 'icon-caret-right' ) ); ?></span></button>
</h2>
<?php
endif;
wp_nav_menu( array(
'theme_location' => 'FooterCol3',
'menu_id' => 'FooterCol3',
'menu_class' => 'list-unstyled footer-list>',
'fallback_cb' => 'ufclas_emily_primary_menu_fallback',
'depth' => 1,
) ); ?>
</div>
</div>
</div>
<div class="footer-bottom-col-2">
<h2 class="footer-col-2-connected">Stay Connected</h2>
<p class="footer-connect-alumni"><a href="https://advancement.clas.ufl.edu/alumni/stay-connected">Connect with 125,000+ Liberal Arts and Sciences Alumni!</a></p>
</div>
</div><!-- .footer-main-col-2 -->
<div class="footer-main-col-3">
<div class="uf-campaign">
<a href="http://www.ufl.edu" target="_blank">
<?php echo twentyseventeen_get_svg( array( 'icon_id' => 'uflogo-go-greater', 'class' => 'icon-uflogo-go-greater' ) ); ?>
<span class="SVGaltText">University of Florida Homepage</span>
</a>
<div class="hashtag">
<span> #LASGATORS</span>
</div>
<div class="social">
<ul class="social-nav">
<?php
// Get all the social media links. These are set on the CLAS DEPT Theme Settings page
if ( !empty(get_theme_mod('fb')) ):
echo '<li><a href="' . esc_url(get_theme_mod('fb')) . '" class=" icon-svg icon-social-media icon-facebook" target="_blank">' . twentyseventeen_get_svg( array( 'icon_id' => 'facebook' )) . '<span class="SVGaltText">Share this page on Facebook</span></a></li>';
endif;
if ( !empty(get_theme_mod('twitter')) ):
echo '<li><a href="' . esc_url( get_theme_mod('twitter') ) . '" class=" icon-svg icon-social-media icon-twitter" target="_blank">' . twentyseventeen_get_svg( array( 'icon_id' => 'twitter' )) . '<span class="SVGaltText">Share this page on Twitter</span></a></li>';
endif;
if ( !empty(get_theme_mod('instagram')) ):
echo '<li><a href="' . esc_url( get_theme_mod('instagram') ) . '" class=" icon-svg icon-social-media icon-instagram" target="_blank">' . twentyseventeen_get_svg( array( 'icon_id' => 'instagram' )) . '<span class="SVGaltText">Share this page on Instagram</span></a></li>';
endif;
if ( !empty(get_theme_mod('youtube')) ):
echo '<li><a href="' . esc_url( get_theme_mod('youtube') ) . '" class=" icon-svg icon-social-media icon-youtube" target="_blank">' . twentyseventeen_get_svg( array( 'icon_id' => 'youtube' )) . '<span class="SVGaltText">Share this page on YouTube</span></a></li>';
endif;
if ( !empty(get_theme_mod('rss')) ):
echo '<li><a href="' . esc_url( get_theme_mod('rss') ) . '" class=" icon-svg icon-social-media icon-rss" target="_blank">' . twentyseventeen_get_svg( array( 'icon_id' => 'rss' )) . '<span class="SVGaltText">RSS Feed</span></a></li>';
endif;
if ( !empty(get_theme_mod('email')) ):
echo '<li><a href="mailto:' . esc_attr( get_theme_mod('email') ) . '" class=" icon-svg icon-social-media icon-email" target="_blank">' . twentyseventeen_get_svg( array( 'icon_id' => 'icon-footer-email' )) . '<span class="SVGaltText">Contact <abbr title="College of Liberal Arts and Sciences">CLAS</abbr></span></a></li>';
endif;
if ( !empty(get_theme_mod('linkedin')) ):
echo '<li><a href="' . esc_url( get_theme_mod('linkedin') ) . '" class=" icon-svg icon-social-media icon-linkedin" target="_blank">' . twentyseventeen_get_svg( array( 'icon_id' => 'icon-footer-linkedin' )) . '<span class="SVGaltText"><abbr title="College of Liberal Arts and Sciences">CLAS</abbr> LinkedIn Profile</span></a></li>';
endif;
?>
</ul>
</div>
<p class="contact-webmaster">If you have any website questions please contact <a href="https://commsupport.clas.ufl.edu/submit-ticket/">CLAS Communications Support</a></p>
</div>
</div><!-- .footer-main-col-3 -->
</div>
</div><!-- .footer-main -->
<div class="footer-uf">
<div class="footer-uf-wrap">
<div class="footer-uf-col-1 bottom-links">
<p>
© <?php echo current_time('Y'); ?> University of Florida | <a href ="//assistive.usablenet.com/tt/referrer"> Text-only </a> | <a href="https://mediaservices.clas.ufl.edu/"> Website Feedback</a> | <a href ="http://privacy.ufl.edu/privacy-policies-and-procedures/onlineinternet-privacy-statement"> UF Privacy Policy </a>
</p>
</div>
<div class="footer-uf-col-2">
<div class="footer-uf-campaign-logo">
<a href="http://www.ufl.edu" target="_blank">
<?php echo twentyseventeen_get_svg( array( 'icon_id' => 'footer-icon-uf', 'class' => 'footer-icon-uf' ) ); ?>
<span class="SVGaltText">University of Florida Homepage</span>
</a>
</div>
</div>
</div>
</div><!-- .footer-uf -->
<?php ufclas_emily_footer_bottom(); ?>
</footer>
<?php }
wp_footer(); ?>
</body>
</html>