-
Notifications
You must be signed in to change notification settings - Fork 5
/
footer.php
73 lines (67 loc) · 2.07 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
<?php
/**
* The template for displaying the footer.
*
* @package CTCL\Elections
* @since 1.0.0
*/
use CTCL\Elections\Office_Details;
$address = Office_Details::mailing_address();
$hours = Office_Details::hours();
$twitter = Office_Details::twitter( true );
$facebook = Office_Details::facebook( true );
$instagram = Office_Details::instagram( true );
$phone = Office_Details::phone( true );
$fax = Office_Details::fax();
?>
<footer>
<div class="footer-content-wrapper">
<div class="contact">
<h3>Contact</h3>
<p class="office-title"><?php echo esc_html( Office_Details::title() ); ?></p>
<p class="info-item"><?php Office_Details::email_address( true, true ); ?></p>
<?php if ( $phone ) : ?>
<p class="info-item"><?php echo wp_kses( $phone, Office_Details::$allowed_link_tags ); ?></p>
<?php endif; ?>
<?php if ( $fax ) : ?>
<p class="info-item"><?php echo wp_kses( $fax, Office_Details::$allowed_link_tags ); ?> fax</p>
<?php endif; ?>
</div>
<?php if ( $address || $hours ) : ?>
<div class="address">
<?php if ( $address ) : ?>
<h3>Visit</h3>
<p class="info-item">
<?php echo wp_kses( $address, Office_Details::$allowed_br_tag ); ?>
</p>
<?php endif; ?>
<?php if ( $hours ) : ?>
<p class="info-item hours">
Open:<br>
<?php echo wp_kses( nl2br( $hours ), Office_Details::$allowed_br_tag ); ?>
</p>
<?php endif; ?>
</div>
<?php endif ?>
<div class="social">
<?php if ( $twitter || $facebook || $instagram ) : ?>
<h3>Social</h3>
<ul class="info-item">
<?php if ( $twitter ) : ?>
<li><?php echo wp_kses( $twitter, Office_Details::$allowed_link_tags ); ?>
<?php endif; ?>
<?php if ( $facebook ) : ?>
<li><?php echo wp_kses( $facebook, Office_Details::$allowed_link_tags ); ?>
<?php endif; ?>
<?php if ( $instagram ) : ?>
<li><?php echo wp_kses( $instagram, Office_Details::$allowed_link_tags ); ?>
<?php endif; ?>
</ul>
<?php endif; ?>
</div>
</div>
<?php edit_post_link( 'Edit Page' ); ?>
</footer>
<?php wp_footer(); ?>
</body>
</html>