-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
64 lines (55 loc) · 1.96 KB
/
Copy pathfooter.php
File metadata and controls
64 lines (55 loc) · 1.96 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?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 UCSC_PBSci
*/
?>
</div><!-- #content -->
<?php
if ( !empty( ucsc_cta_get_visible_ctas() ) ) {
get_template_part( 'template-parts/ctas' );
}
if (class_exists('acf')) {
$cta = get_field('call_to_action', 'option');
if ($cta['cta_switch']) : get_template_part('template-parts/footer', 'cta');
endif;
}
get_template_part('template-parts/to', 'top');
?>
<footer id="colophon" class="site-footer front-page-blue-panel">
<?php //get_template_part( 'template-parts/footer', 'applytoday' );
?>
<div class="wrap">
<div class="flex-wrap">
<div class="panel-cell-2 footer-cell">
<?php get_sidebar('footer-one'); ?>
</div>
<div class="panel-cell-2 footer-cell">
<?php get_sidebar('footer-two'); ?>
</div>
<div class="panel-cell-2 footer-cell">
<?php get_sidebar('footer-three'); ?>
</div>
</div>
</div>
<?php
$footerLinks = get_field('footer_links', 'option');
if ($footerLinks) {
echo '<div class="site-info"><div class="wrap"><div class="footer-legal"><a href="https://science.ucsc.edu"><img src="' . IMAGES . '/science-logo.svg" alt="Science at UC Santa Cruz"/></a><ul>';
foreach ($footerLinks as $footerLink) {
echo '<li><a href="' . $footerLink['footer_link_url'] . '">' . $footerLink['footer_link_text'] . '</a></li>';
}
echo '</ul><p class="page-meta">
©' . date("Y") . ' Regents of the University of California. All rights reserved.</p><p class="page-meta">Last modified: ' . get_the_modified_date() . '</p></div></div><!-- .site-info -->';
}
?>
</footer><!-- #colophon -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>