-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
146 lines (121 loc) · 4.92 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
<?php
/**
* Modified footer file for the Mason Twenty Twenty Child WordPress default theme.
*/
?>
<?php if(!is_front_page()) { ?>
<!-- Child theme customization: homepage bottom widget area -->
<?php if (is_front_page()) { get_template_part('template-parts/widget-area','homepage-bottom'); } ?>
<!-- /Child theme customization: homepage bottom widget area -->
<footer id="site-footer" role="contentinfo" class="header-footer-group">
<div class="section-inner">
<div class="footer-credits">
<p class="footer-logo">
<a href="https://www.gmu.edu">
<?php
// Set default footer logo
$footer_logo_image = get_stylesheet_directory_uri() . '/images/logo-Mason-2-color-with-shadow-259x181.png';
// If we have an alternate footer logo specified in the theme customizer, use it instead.
if (get_theme_mod('gmuj_site_footer_logo') !='') {
$footer_logo_image = get_theme_mod('gmuj_site_footer_logo');
}
?>
<img src="<?php echo $footer_logo_image; ?>" alt="George Mason University logo" />
</a>
</p>
<div>
<!-- Footer Social menu -->
<?php get_template_part('template-parts/menu','footer-social'); ?>
<p class="footer-slogan-address-copyright-contact">
<?php
// Display site tagline if provided in theme customizer
if (get_theme_mod('gmuj_site_tagline')) {
echo '<!--site tagline-->';
echo '<span class="site-slogan">'.get_theme_mod('gmuj_site_tagline').'</span>';
echo '<br />';
}
// If a custom address was *not* provided in theme customizer, use default address
if (!get_theme_mod('gmuj_contact_address_line_1') && !get_theme_mod('gmuj_contact_address_line_2') && !get_theme_mod('gmuj_contact_address_line_3')) {
echo '4400 University Drive, Fairfax, Virginia 22030<br />';
}
?>
<!--Address line 1 from theme customizer-->
<?php if (get_theme_mod('gmuj_contact_address_line_1')) {
echo get_theme_mod('gmuj_contact_address_line_1');
echo '<br />';
}
?>
<!--Address line 2 from theme customizer-->
<?php if (get_theme_mod('gmuj_contact_address_line_2')) {
echo get_theme_mod('gmuj_contact_address_line_2');
echo '<br />';
}
?>
<!--Address line 3 from theme customizer-->
<?php if (get_theme_mod('gmuj_contact_address_line_3')) {
echo get_theme_mod('gmuj_contact_address_line_3');
echo '<br />';
}
?>
<!--Contact email address from theme customizer-->
<?php if (get_theme_mod('gmuj_contact_email')) {
echo 'Email: ';
echo '<a href="mailto:'.get_theme_mod('gmuj_contact_email').'">'.get_theme_mod('gmuj_contact_email').'</a>';
echo '<br />';
}
?>
<!--Contact phone number from theme customizer-->
<?php if (get_theme_mod('gmuj_contact_phone')) {
echo 'Call: ';
echo get_theme_mod('gmuj_contact_phone');
echo '<br />';
}
?>
<!--Contact fax number from theme customizer-->
<?php if (get_theme_mod('gmuj_contact_fax')) {
echo 'Fax: ';
echo get_theme_mod('gmuj_contact_fax');
echo '<br />';
}
?>
<!--Copyright notice-->
© <span style="font-weight:normal;"><?php echo date("Y"); ?> George Mason University</span>
</p>
<p class="footer-copyright">©
<?php
echo date_i18n(
/* translators: Copyright date format, see https://secure.php.net/date */
_x( 'Y', 'copyright date format', 'twentytwenty' )
);
?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
</p><!-- .footer-copyright -->
</div>
<p class="powered-by-wordpress">
<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwenty' ) ); ?>">
<?php _e( 'Powered by WordPress', 'twentytwenty' ); ?>
</a>
</p><!-- .powered-by-wordpress -->
</div><!-- .footer-credits -->
<a class="to-the-top" href="#site-header">
<span class="to-the-top-long">
<?php
/* translators: %s: HTML character for up arrow */
printf( __( 'To the top %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">↑</span>' );
?>
</span><!-- .to-the-top-long -->
<span class="to-the-top-short">
<?php
/* translators: %s: HTML character for up arrow */
printf( __( 'Up %s', 'twentytwenty' ), '<span class="arrow" aria-hidden="true">↑</span>' );
?>
</span><!-- .to-the-top-short -->
</a><!-- .to-the-top -->
<!-- Footer menu -->
<?php get_template_part('template-parts/menu','footer'); ?>
</div><!-- .section-inner -->
</footer><!-- #site-footer -->
<?php } ?>
<?php wp_footer(); ?>
</body>
</html>