-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
130 lines (124 loc) 路 3.71 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
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package kadence
*/
namespace Kadence;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<footer class="c-footer-w">
<?php
// Hook before footer
get_template_part( 'template-parts/before_footer' );
?>
<div class="c-footer-midel">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-6">
<div class="c-footer-form">
<?php
if ( is_active_sidebar( 'footer1' ) ) :
dynamic_sidebar( 'footer1' );
endif;
?>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="c-footer-nav">
<div class="c-footer-nav-in">
<h4>Navigation</h4>
<?php
wp_nav_menu(
array(
'container' => false,
'menu' => 'Footer menu',
'theme_location' => 'footer'
)
);
?>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="c-footer-contact">
<h4>Contact us</h4>
<ul>
<?php
$address = get_field('company_address', 'option');
if ( !empty($address) ): ?>
<li>
<i class="fas fa-map-marker-alt"></i>
<p><?php echo $address; ?></p>
</li>
<?php endif; ?>
<?php
$phone = get_field('company_phone', 'option');
if ( !empty($phone) ): ?>
<li>
<i class="fas fa-phone-alt"></i>
<p>
<a href="tel:<?php echo preg_replace("/\s+/", "", $phone); ?>">
+<?php echo $phone; ?>
</a>
</p>
</li>
<?php endif; ?>
<?php
$email = get_field('company_email', 'option');
if ( !empty($email) ): ?>
<li>
<i class="fas fa-envelope"></i>
<p>
<a href="maito:<?php echo $email; ?>">
<?php echo $email; ?>
</a>
</p>
</li>
<?php endif; ?>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="c-footer-bottom">
<div class="container">
<div class="row align-items-center">
<div class="col-md-6">
<div class="c-footer-social">
<?php
if( have_rows('company_social_media', 'option') ):
echo '<ul>';
while ( have_rows('company_social_media', 'option') ) : the_row();
$profile_icon = get_sub_field('social_media_icon', 'option');
$profile_link = get_sub_field('social_media_url', 'option');
echo '<li>';
echo '<a href="' . $profile_link . '" target="_blank">';
echo $profile_icon;
echo '</a>';
echo '</li>';
endwhile;
echo '</ul>';
endif;
?>
</div>
</div>
<div class="col-md-6">
<div class="c-footer-text">
<?php do_action( 'kadence_footer_html' ); ?>
</div>
</div>
</div>
</div>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>