-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.php
More file actions
executable file
·69 lines (65 loc) · 2.24 KB
/
footer.php
File metadata and controls
executable file
·69 lines (65 loc) · 2.24 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
65
66
67
68
69
<?php
/**
* The template for displaying the footer
*
* Contains footer content and the closing of the #main and #page div elements.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>
</section>
<footer class="footer">
<div class="wrap">
<!--
<div class="contact-box">
<div class="column slogan">
<?php print apply_filters( 'the_content', get_field( 'footer-slogan', 'option' ) ); ?>
</div>
<div class="column links">
<?php
if ( have_rows( 'footer-links', 'option' ) ) {
while ( have_rows( 'footer-links', 'option' ) ) : the_row();
print '<a href="' . get_sub_field( 'link' ) . '">' . get_sub_field( 'icon' ) . ' ' . get_sub_field('text') . '</a>';
endwhile;
}
?>
</div>
</div>
-->
<div class="footer-connect">
<p><img src="<?php bloginfo( 'template_url' ); ?>/img/logo-white.png" class="logo" /></p>
<p class="join">Interested in Joining Our Team?<br><a href="/careers" class="btn orange rounded">View Available Positions</a></p>
<?php
if ( have_rows( 'social', 'option' ) ) :
print '<div class="social">';
while ( have_rows( 'social', 'option' ) ) : the_row();
print '<a href="' . get_sub_field( 'link' ) . '"><img src="' . get_bloginfo('template_url') . '/img/social/' . get_sub_field( 'network' )['value'] . '.png" /></a>';
endwhile;
print '</div>';
endif;
if ( have_rows( 'secondary', 'option' ) ) :
print '<div class="secondary-contact">';
while ( have_rows( 'secondary', 'option' ) ) : the_row();
$icon = get_sub_field( 'icon' );
$link = get_sub_field( 'link' );
$text = get_sub_field( 'text' );
print '<div class="item">' .
( !empty( $link ) ? '<a href="' . $link . '">' : '<span>' ) .
get_sub_field( 'icon' ) . ' ' . $text .
( !empty( $link ) ? '</a>' : '</span>' ) .
'</div>';
endwhile;
print '</div>';
endif;
?>
</div>
<p class="copyright">Copyright © <?php print date( 'Y' ) ?> <?php bloginfo( 'sitename' ); ?>. All Rights Reserved.</p>
</div>
</footer>
</div><!-- #container -->
<script src="https://kit.fontawesome.com/5eced83e9b.js" crossorigin="anonymous"></script>
<?php wp_footer(); ?>
</body>
</html>