-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
59 lines (58 loc) · 2.6 KB
/
footer.php
File metadata and controls
59 lines (58 loc) · 2.6 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
<?php
/**
* Footer template
*
* @package patientsineducation
*/
$leftColumn = get_field('footer_left_column', 'option');
$middleColumn = get_field('footer_middle_column', 'option');
$rightColumn = get_field('footer_right_column', 'option');
?>
<footer class="text-white">
<div class="bg-dark">
<div class="container pt-5">
<div class="row">
<div class="col-12 col-md-5 pt-4">
<h5><?php echo $leftColumn['title']; ?></h5>
<p><?php echo $leftColumn['content']; ?></p>
</div>
<div class="col-12 col-md-3 pt-4">
<h5><?php echo $middleColumn['title']; ?></h5>
<p><?php echo $middleColumn['content']; ?></p>
</div>
<div class="col-12 col-md-4 pt-4">
<h5><?php echo $rightColumn['title']; ?></h5>
<div>
<?php if ($rightColumn['facebook_link']):; ?>
<a href="<?php echo $rightColumn['facebook_link']; ?>" target="_blank">
<img class="img-fluid-icon pie-social-icon" src="<?php echo do_shortcode('[get_icon_url image="fb-icon.png"]');?>" alt="Facebook" />
</a>
<?php endif; ?>
<?php if ($rightColumn['twitter_link']):; ?>
<a href="<?php echo $rightColumn['twitter_link']; ?>" target="_blank">
<img class="img-fluid-icon pie-social-icon" src="<?php echo do_shortcode('[get_icon_url image="twitter-icon.png"]');?>" alt="Twitter" />
</a>
<?php endif; ?>
</div>
<?php if ($rightColumn['email_address']):; ?>
<p>Email: <?php echo $rightColumn['email_address']; ?></p>
<?php endif; ?>
<?php if ($rightColumn['button_label'] && $rightColumn['button_link']):; ?>
<a class="btn btn-primary" href="<?php echo $rightColumn['button_link']; ?>" role="button"><?php echo $rightColumn['button_label']; ?></a>
<?php endif; ?>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-12 text-center pt-5 pb-3">
<p>© <?php echo date("Y"); ?> Patients In Education. Developed by <a class="text-white" href="http://codethechange.ca" target="_blank">Code the Change Foundation</a>.</p>
</div>
</div>
</div>
</div>
<?php wp_footer() ?>
</footer>
</div>
</body>
</html>