File: /mnt/data/dreamsrent-wp/wp-content/themes/dreamsrent/templates/footer/footer-normal.php
<?php
$current_user = wp_get_current_user();
$roles = (array) $current_user->roles;
if (in_array('dreamsrent_vendor', $roles, true)) {
get_template_part('templates/footer/header', 'provider');
} else {
get_template_part('templates/footer/header', 'normal');
}
?>
<footer class="footer <?php
if(in_array('redux-framework/redux-framework.php', apply_filters('active_plugins', get_option('active_plugins'))))
{ ?> footer_main <?php } ?> ">
<!-- Footer Top -->
<?php
if(in_array('redux-framework/redux-framework.php', apply_filters('active_plugins', get_option('active_plugins'))))
{ ?>
<div class="footer-top aos" data-aos="fade-up">
<div class="container">
<div class="row">
<div class="col-lg-7">
<div class="row">
<div class="col-lg-4 col-md-6">
<!-- Footer Widget -->
<div class="footer-widget footer-menu">
<?php if(dreamsrent_fl_framework_getoptions('footer_aboutus_heading')) { ?>
<h2 class="footer-title">
<?php echo esc_html(dreamsrent_fl_framework_getoptions('footer_aboutus_heading')); ?>
</h2>
<?php } ?>
<!-- <?php
$footer_logo = dreamsrent_fl_framework_getoptions('footer_logo');
$footer_logo_url = isset($footer_logo) && $footer_logo != '' ? $footer_logo['url'] : '';
if($footer_logo_url) {
?>
<img src="<?php echo esc_url($footer_logo_url); ?>" class="img-fluid footer_logo" alt="<?php echo get_bloginfo('name');?>">
<?php } ?>
<div class="footer_about">
<?php echo dreamsrent_fl_framework_getoptions('footer_aboutus_content'); ?>
</div> -->
<?php
$helpful_pages = dreamsrent_fl_framework_getoptions('footer_aboutus');
if(isset($helpful_pages) && $helpful_pages != '')
{ ?>
<ul>
<?php foreach($helpful_pages as $helpful_page)
{
echo '<li><a href="'.get_the_permalink($helpful_page).'">'.get_the_title($helpful_page).'</a></li>';
} ?>
</ul>
<?php } ?>
</div>
<!-- /Footer Widget -->
</div>
<div class="col-lg-4 col-md-6">
<!-- Footer Widget -->
<div class="footer-widget footer-menu">
<h2 class="footer-title">
<?php echo esc_html(dreamsrent_fl_framework_getoptions('footer_services_locations_heading')); ?>
</h2>
<?php
$helpful_pages = dreamsrent_fl_framework_getoptions('footer_services_locations');
if(isset($helpful_pages) && $helpful_pages != '')
{ ?>
<ul>
<?php foreach($helpful_pages as $helpful_page)
{
echo '<li><a href="'.get_the_permalink($helpful_page).'">'.get_the_title($helpful_page).'</a></li>';
} ?>
</ul>
<?php } ?>
</div>
<!-- /Footer Widget -->
</div>
<div class="col-lg-4 col-md-6">
<!-- Footer Widget -->
<div class="footer-widget footer-menu">
<h2 class="footer-title">
<?php echo esc_html(dreamsrent_fl_framework_getoptions('footer_links_heading')); ?>
</h2>
<?php
$helpful_pages = dreamsrent_fl_framework_getoptions('footer_page_links');
if(isset($helpful_pages) && $helpful_pages != '')
{ ?>
<ul>
<?php foreach($helpful_pages as $helpful_page)
{
echo '<li><a href="'.get_the_permalink($helpful_page).'">'.get_the_title($helpful_page).'</a></li>';
} ?>
</ul>
<?php } ?>
</div>
<!-- /Footer Widget -->
</div>
</div>
</div>
<div class="col-lg-5">
<div class="footer-contact footer-widget">
<h5 class="footer-title">
<?php echo dreamsrent_fl_framework_getoptions('footer_contact_name'); ?></h5>
<div class="footer-contact-info">
<div class="footer-address">
<span><i class="feather-phone-call"></i></span>
<div class="addr-info">
<a
href="tel:<?php echo dreamsrent_fl_framework_getoptions('footer_contact'); ?>"><?php echo dreamsrent_fl_framework_getoptions('footer_contact'); ?></a>
</div>
</div>
<div class="footer-address">
<span><i class="feather-mail"></i></span>
<div class="addr-info">
<a
href="mailto:<?php echo dreamsrent_fl_framework_getoptions('footer_email'); ?>"><?php echo dreamsrent_fl_framework_getoptions('footer_email'); ?></a>
</div>
</div>
<div class="update-form">
<?php echo apply_shortcodes(dreamsrent_fl_framework_getoptions('footer_newsletter') ); ?>
</div>
</div>
<div class="footer-social-widget">
<h6><?php echo esc_html_e('Connect with us', 'dreamsrent'); ?></h6>
<ul class="nav-social">
<?php if(dreamsrent_fl_framework_getoptions('footer_facebook_link')) { ?>
<li>
<a href="<?php echo dreamsrent_fl_framework_getoptions('footer_facebook_link'); ?>"><i
class="fa-brands fa-facebook-f fa-facebook fi-icon"></i></a>
</li>
<?php } ?>
<?php if(dreamsrent_fl_framework_getoptions('footer_instagram_link')) { ?>
<li>
<a href="<?php echo dreamsrent_fl_framework_getoptions('footer_instagram_link'); ?>"><i
class="fab fa-instagram fi-icon"></i></a>
</li>
<?php } ?>
<?php if(dreamsrent_fl_framework_getoptions('footer_behance_link')) { ?>
<li>
<a href="<?php echo dreamsrent_fl_framework_getoptions('footer_behance_link'); ?>"><i
class="fab fa-behance fi-icon"></i></a>
</li>
<?php } ?>
<?php if(dreamsrent_fl_framework_getoptions('footer_twitter_link')) { ?>
<li>
<a href="<?php echo dreamsrent_fl_framework_getoptions('footer_twitter_link'); ?>"><i
class="fab fa-twitter fi-icon"></i> </a>
</li>
<?php } ?>
<?php if(dreamsrent_fl_framework_getoptions('footer_linkedin_link')) { ?>
<li>
<a href="<?php echo dreamsrent_fl_framework_getoptions('footer_linkedin_link'); ?>"><i
class="fab fa-linkedin fi-icon"></i></a>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div> <?php }?>
<!-- /Footer Top -->
<!-- Footer Bottom -->
<div class="footer-bottom">
<div class="container">
<!-- Copyright -->
<div class="copyright">
<div class="row align-items-center">
<div class="col-md-12 text-center">
<div class="copyright-text">
<?php
if(in_array('redux-framework/redux-framework.php', apply_filters('active_plugins', get_option('active_plugins'))))
{ ?>
<p><?php echo dreamsrent_fl_framework_getoptions('footer_copyright_text'); ?></p>
<?php } else { ?>
<p>© <?php echo date("Y"); ?>
<?php echo esc_html__('Dreams Rent. All Rights Reserved.','dreamsrent'); ?> </p>
<?php } ?>
</div>
</div>
</div>
</div>
<!-- /Copyright -->
</div>
</div>
<!-- /Footer Bottom -->
</footer>
<div class="progress-wrap active-progress">
<svg class="progress-circle svg-content" width="100%" height="100%" viewBox="-1 -1 102 102">
<path d="M50,1 a49,49 0 0,1 0,98 a49,49 0 0,1 0,-98"
style="transition: stroke-dashoffset 10ms linear 0s; stroke-dasharray: 307.919px, 307.919px; stroke-dashoffset: 228.265px;">
</path>
</svg>
</div>
<input type="hidden" id="gen_nonce" value="<?php echo wp_create_nonce('fl_gen_secure'); ?>" />
<input type="hidden" id="nonce_error" value="<?php echo esc_attr__('Something went wrong','dreamsrent'); ?>" />
<?php wp_footer(); ?>
</body><!-- /body -->
</html>
<?php
$gdpr_text = dreamsrent_fl_framework_getoptions('gdpr_text');
$gdpr_pagelink = dreamsrent_fl_framework_getoptions('gdpr_pagelink');
$gdpr_accept_buttontext = dreamsrent_fl_framework_getoptions('gdpr_accept_buttontext');
$gdpr_cancel_buttontext = dreamsrent_fl_framework_getoptions('gdpr_cancel_buttontext');
$gdpr_switch = dreamsrent_fl_framework_getoptions('gdpr_switch');
if($gdpr_switch == '1') {
?>
<div id="gdpr-bar" class="gdpr-bar" style="display: none;">
<div class="container">
<div class="row ">
<div class="col-lg-10">
<?php echo wp_kses_post($gdpr_text); ?>
<?php
if (isset($gdpr_pagelink) && $gdpr_pagelink != '') {
?>
<a href="<?php echo esc_url(get_permalink($gdpr_pagelink)); ?>">
<?php echo get_the_title($gdpr_pagelink); ?>
</a>
<?php
}
?>
</div>
<div class="col-lg-1 col-4 justify-content-center">
<?php if($gdpr_accept_buttontext) { ?>
<button id="gdpr-accept-btn" class="gdpr-close-btn"><?php echo esc_html($gdpr_accept_buttontext); ?></button>
<?php } ?>
</div>
<div class="col-lg-1 col-4 justify-content-center">
<?php if($gdpr_cancel_buttontext) { ?>
<button id="gdpr-cancel-btn" class="gdpr-close-btn"><?php echo esc_html($gdpr_cancel_buttontext); ?></button>
<?php } ?>
</div>
</div>
</div>
</div>
<?php
}
?>