-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
174 lines (157 loc) · 7.77 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!-- signup field -->
<section class="signup_section section_spacing_top_small">
<div class="container">
<?php
if (!is_page('k8s-tool')) {
$footer_text = get_field('footer_text', 'option');
$footer_link = get_field('footer_link', 'option'); ?>
<div class="text_section text-center">
<?php if ($footer_text) { ?>
<p class=""> <?php echo $footer_text; ?></p>
<?php
} ?>
</div>
<div class="btn_container">
<?php if ($footer_link) { ?>
<a class="btn link" href="<?php echo $footer_link['url']; ?>" target="<?php echo $footer_link['target']; ?>" rel="noopener noreferrer"><?php echo $footer_link['title']; ?>
</a>
<?php } ?>
</div>
<?php
} else {
//k8s-tool sign up
$k8s_text = get_field('k8s_text', 'option');
$k8s_link = get_field('k8s_link', 'option'); ?>
<div class="text_section text-center">
<?php if ($k8s_text) { ?>
<p class=""> <?php echo $k8s_text; ?></p>
<?php
} ?>
</div>
<div class="btn_container">
<?php if ($k8s_link) { ?>
<a class="btn link" href="<?php echo $k8s_link['url']; ?>" target="<?php echo $k8s_link['target']; ?>" rel="noopener noreferrer"><?php echo $k8s_link['title']; ?>
</a>
<?php } ?>
</div>
<?php }
?>
</div>
</section>
<!-- footer -->
<?php
$footer_height_class = '';
if (!is_page('k8s-tool')) {
$footer_height_class = 'boozang_footer';
} ?>
<footer id="footer" class="footer-main section_spacing_top_mini <?php echo $footer_height_class; ?>">
<div class="container">
<div class="row align-items-start justify-content-between">
<div class="col-md-6 col-xl-3">
<div class="logo">
<a href="<?php echo home_url() ?>" class="logo" aria-label="Boozang home page">
<img class="logo-img" src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/boozang_logo_reverse.png" srcset="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/[email protected] 325w" width="208" height="51" alt="Boozang home page" />
</a>
</div>
<div class="social-icons">
<ul class="social">
<!-- repeater field -->
<?php if (have_rows('social_icons', 'option')) {
while (have_rows('social_icons', 'option')) {
the_row();
$social_url = get_sub_field('social_url');
$social_site = get_sub_field('social_site'); ?>
<li class="social-item">
<a href="<?php echo $social_url; ?>" aria-label="<?php echo $social_site; ?>">
<i class="fab fa-<?php echo $social_site; ?>" aria-hidden="true"></i>
</a>
</li>
<?php
}
} ?>
</ul>
<div class="customer_contact">
<p>Drop us an email if you have any questions! We are always happy to help!
</p>
<?php $link = get_field('mail_link', 'option'); ?>
<a href="mailto:<?php echo $link; ?>" target="_top" aria-label="Boozang email">
<i class="fas fa-envelope" aria-hidden="true"></i><?php echo $link; ?>
</a>
</div>
</div>
</div>
<!-- k8s-tool -->
<?php if (!is_page('k8s-tool')) { ?>
<div class="col-md-112 col-xl-8">
<div class="row align-items-start links">
<?php
if (function_exists('acf_add_options_page')) {
//repeater field
if (have_rows('footer_links', 'option')) {
while (have_rows('footer_links', 'option')) {
the_row(); ?>
<div class="col-6 col-md-3">
<h3 class="footer-links-heading"><?php the_sub_field('heading'); ?> </h3>
<!-- repeater field -->
<?php if (have_rows('links')) { ?>
<ul class="footer-links">
<?php while (have_rows('links')) {
the_row(); ?>
<?php $link = get_sub_field('link'); ?>
<li class="link-item">
<a href="<?php echo $link['url']; ?>" target="<?php echo $link['target']; ?>"><?php echo $link['title']; ?></a>
</li>
<?php } ?>
</ul>
<?php } ?>
</div>
<?php }
}
} ?>
</div>
</div>
<?php } ?>
<div class="back_to_top_link">
<a href="#header_top">
<i class="fa-solid fa-angles-up" aria-hidden="true" aria-label="To top of page"></i>
</a>
</div>
</div>
</div>
<div class="container badges">
<div class="row">
<?php if (!is_page('k8s-tool')) { ?>
<div class="sf-root" data-id="2969897" data-badge="heart-badge-white" data-variant-id="sf" style="width:90px">
<a href="https://sourceforge.net/software/product/Boozang/" target="_blank">Boozang Reviews</a>
</div>
<div class="sf-root" data-id="2969897" data-badge="light-default" data-variant-id="sd" style="width:90px">
<a href="https://slashdot.org/software/p/Boozang/" target="_blank">Boozang Reviews</a>
</div>
<a href="https://www.capterra.com/reviews/166146/Boozang?utm_source=vendor&utm_medium=badge&utm_campaign=capterra_reviews_badge" target="_blank">
<img border="0" src="https://assets.capterra.com/badge/0b59d4c7af779186f0e9303f7c23bc2a.svg?v=2115861&p=166146" />
</a>
<?php } ?>
<div class="back_to_top_link">
<a href="#header_top">
<i class="fa-solid fa-angles-up" aria-hidden="true" aria-label="To top of page"></i>
</a>
</div>
</div>
</div>
<div class="footer-copy">
<div class="container">
<div class="row align-items-start">
<div class="col">
<div class="copy">
<p>© <?php echo Date('Y'); ?> - <?php bloginfo('name'); ?> INC. ALL RIGHTS RESERVED.
Theme by <a href="http://karinljunggren.com/" target="_blank" rel="noopener noreferrer" aria-label="Karin Ljunggren Home Page">Karin</a>
</p>
</div>
</div>
</div>
</div>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>