-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
70 lines (67 loc) · 2.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
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
</div><!-- #wrap -->
<footer id="footer">
<section id="footer-body">
<div class="container">
<div class="row">
<div class="col-12">
<div class="left">
<img src="<?php bloginfo('template_directory'); ?>/images/logo.svg" alt="Logo"/>
</div>
<div class="right">
<div class="social">
<?php if ( get_field('facebook', 'option') ) : ?>
<a href="<?php echo get_field('facebook', 'option'); ?>" target="_blank" rel="noopener noreferrer"><i class="fa-brands fa-facebook-f"></i></a>
<?php endif; ?>
<?php if ( get_field('instagram', 'option') ) : ?>
<a href="<?php echo get_field('instagram', 'option'); ?>" target="_blank" rel="noopener noreferrer"><i class="fa-brands fa-instagram"></i></a>
<?php endif; ?>
<?php if ( get_field('twitter', 'option') ) : ?>
<a href="<?php echo get_field('twitter', 'option'); ?>" target="_blank" rel="noopener noreferrer"><i class="fa-brands fa-twitter"></i></a>
<?php endif; ?>
<?php if ( get_field('linkedin', 'option') ) : ?>
<a href="<?php echo get_field('linkedin', 'option'); ?>" target="_blank" rel="noopener noreferrer"><i class="fa-brands fa-linkedin"></i></a>
<?php endif; ?>
</div>
<div class="contact-info">
<?php if ( get_field('phone_number', 'option') ) : ?>
<?php $string = get_field('phone_number', 'option'); $string = str_replace(' ', '', $string); ?>
<a href="tel:<?php echo $string; ?>"><i class="fa-light fa-phone"></i>
<?php echo get_field('phone_number', 'option'); ?>
</a>
<?php endif; ?>
<?php if ( get_field('email_address', 'option') ) : ?>
<a href="mailto:<?php echo get_field('email_address', 'option'); ?>"><i class="fa-light fa-envelope"></i>
<?php echo get_field('email_address', 'option'); ?>
</a>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="footer-terms">
<div class="container">
<div class="row">
<div class="col-12">
<div class="left">
<span>© Copyright <?php echo date("Y"); ?> Website Name </span>
<?php wp_nav_menu( array('theme_location' => 'footer-menu', 'container' => 'nav', 'container_class' => 'footer-menu')); ?>
</div>
<div class="right">
<a href="http://www.metadigital.co.nz" target="_blank" class="site-by">Website Design By: Meta Digital</a>
</div>
</div>
</div>
</div>
</section>
</footer>
<?php wp_footer(); ?>
</body>
</html>