| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/successkpi/wp-content/themes/successkpi/ |
Upload File : |
<?php
/**
* The template for displaying the footer
*
* @package successkpi
*/
?>
<footer class="sk-footer">
<div class="container">
<div class="row">
<div class="sk-footer-info-col">
<?php
$footer_logo = get_field('footer_logo', 'option');
if (isset($footer_logo) && !empty($footer_logo)) : ?>
<a class="sk-footer-logo" href="<?php echo esc_url(home_url('/')); ?>">
<img src="<?php echo esc_url($footer_logo['url']); ?>"
class="img-fluid" alt="<?php echo esc_attr(!empty($footer_logo['alt']) ? $footer_logo['alt'] : ''); ?>">
</a>
<?php endif; ?>
<?php $footer_description = get_field('footer_description', 'option'); ?>
<?php if (isset($footer_description) && !empty($footer_description)) : ?>
<?php echo wp_kses_post($footer_description); ?>
<?php endif; ?>
<?php
$phone_number = get_field('phone_number', 'option');
$email_address = get_field('email_address', 'option');
$office_location = get_field('office_location', 'option');
if (!empty($phone_number) || !empty($email_address) || !empty($office_location)) :
?>
<p class="sk-contact-info">
<?php if (!empty($phone_number)) : ?>
<a href="tel:<?php echo esc_attr(preg_replace('/[^0-9+]/', '', $phone_number)); ?>" target="_self">
<i class="fa fa-phone" aria-hidden="true"></i>
<?php echo esc_html($phone_number); ?>
</a>
<?php endif; ?>
<?php if (!empty($phone_number) && !empty($email_address)) : ?>
<?php endif; ?>
<?php if (!empty($email_address)) : ?>
<a href="mailto:<?php echo esc_attr($email_address); ?>" target="_self">
<i class="fa fa-envelope" aria-hidden="true"></i>
<?php echo esc_html($email_address); ?>
</a>
<?php endif; ?>
<?php if (isset($office_location) && !empty($office_location)) : ?>
<p> <i class="fa fa-location-dot" aria-hidden="true"></i><?php echo esc_html($office_location); ?></p>
<?php endif; ?>
</p>
<?php endif; ?>
</div>
<div class="sk-footer-menu-col">
<?php if (have_rows('column', 'option')) : ?>
<?php while (have_rows('column', 'option')) : the_row(); ?>
<div class="sk-footer-col">
<?php $heading = get_sub_field('heading'); ?>
<?php if (isset($heading) && !empty($heading)) : ?>
<h5><?php echo esc_html($heading); ?></h5>
<?php endif; ?>
<?php if (have_rows('menu_links')) : ?>
<ul class="sk-footer-menu-list list-unstyled">
<?php while (have_rows('menu_links')) : the_row(); ?>
<?php $menu_link = get_sub_field('menu_link'); ?>
<?php if (isset($menu_link['url']) && !empty($menu_link['url'])) : ?>
<li class="sk-footer-menu-link">
<a href="<?php echo esc_url($menu_link['url']); ?>" target="<?php echo esc_attr(!empty($menu_link['target']) ? $menu_link['target'] : '_self'); ?>">
<?php echo esc_html($menu_link['title']); ?>
</a>
</li>
<?php endif; ?>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
<div class="row sk-bottom-footer">
<div class="col-md-9 sk-bottom-footer-col">
<?php $copyright = get_field('copyright_text', 'option'); ?>
<?php if (isset($copyright) && !empty($copyright)) :
$current_year = date('Y');
?>
<p>©<?php echo esc_html($copyright) . ' ' . $current_year; ?></p>
<?php endif; ?>
<?php
$legal_link = get_field('legal_link', 'option');
$privacy_link = get_field('privacy_link', 'option');
if (!empty($legal_link['url']) || !empty($privacy_link['url'])) :
?>
<p>
<?php if (!empty($legal_link['url'])) : ?>
<a href="<?php echo esc_url($legal_link['url']); ?>" target="<?php echo esc_attr(!empty($legal_link['target']) ? $legal_link['target'] : '_self'); ?>">
<?php echo esc_html($legal_link['title']); ?>
</a>
<?php endif; ?>
<?php if (!empty($legal_link['url']) && !empty($privacy_link['url'])) : ?>
<span> and </span>
<?php endif; ?>
<?php if (!empty($privacy_link['url'])) : ?>
<a href="<?php echo esc_url($privacy_link['url']); ?>" target="<?php echo esc_attr(!empty($privacy_link['target']) ? $privacy_link['target'] : '_self'); ?>">
<?php echo esc_html($privacy_link['title']); ?>
</a>
<?php endif; ?>
</p>
<?php endif; ?>
<div class="cookie">
<script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/21157292.js"></script>
<!-- Start of HubSpot code snippet -->
<button type="button" id="hs_show_banner_button"
onClick="(function(){
var _hsp = window._hsp = window._hsp || [];
_hsp.push(['showBanner']);
})()">
<?php $cookie_policy = get_field('cookie_policy', 'option');
if (isset($cookie_policy) && !empty($cookie_policy)):
echo esc_html($cookie_policy);
endif; ?>
</button>
</div>
</div>
<div class="col-md-3 sk-bottom-footer-col">
<div class="social-icon">
<?php
if (have_rows('social_media_links', 'option')):
while (have_rows('social_media_links', 'option')): the_row();
$link = get_sub_field('link');
$icon_class = get_sub_field('platform');
?>
<?php if (isset($link['url']) && !empty($link['url'])) : ?>
<span class="social-link-item">
<a href="<?php echo esc_url($link['url']); ?>" target="<?php echo esc_attr($link['target'] ? $link['target'] : '_self'); ?>">
<?php
if ($icon_class === 'fa-linkedin') {
$icon_class = 'fa-linkedin-in';
}
?>
<i class="fa-brands <?php echo esc_attr($icon_class); ?>"></i>
</a>
</span>
<?php
endif;
endwhile;
endif; ?>
</div>
</div>
</div>
</div>
</footer>
<?php wp_footer(); ?>
</body>
</html>