%PDF- %PDF-
| Direktori : /home/opti/www/stlc/wp-content/themes/insur/template-parts/layout/ |
| Current File : /home/opti/www/stlc/wp-content/themes/insur/template-parts/layout/default-footer.php |
<?php
/**
* Template part for displaying footer
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package insur
*/
?>
<?php
$insur_page_id = get_queried_object_id();
$insur_custom_footer_status = !empty(get_post_meta($insur_page_id, 'insur_custom_footer_status', true)) ? get_post_meta($insur_page_id, 'insur_custom_footer_status', true) : 'off';
$insur_custom_footer_id = '';
if ((is_page() && 'on' === $insur_custom_footer_status) || (is_singular('portfolio') && 'on' === $insur_custom_footer_status) || (is_singular('service') && 'on' === $insur_custom_footer_status)) {
$insur_custom_footer_id = get_post_meta($insur_page_id, 'insur_select_custom_footer', true);
} elseif ('yes' == get_theme_mod('footer_custom')) {
$insur_custom_footer_id = get_theme_mod('footer_custom_post');
} else {
$insur_custom_footer_id = 'default_footer';
}
$insur_dynamic_footer = isset($_GET['custom_footer_id']) ? $_GET['custom_footer_id'] : $insur_custom_footer_id;
?>
<?php if ('default_footer' == $insur_dynamic_footer) : ?>
<footer class="site-footer default-footer">
<div class="site-footer__bottom">
<div class="container">
<div class="row">
<div class="col-xl-12">
<div class="site-footer__bottom-inner default">
<div class="site-footer__bottom-left">
<p class="site-footer__bottom-text">
<?php echo wp_kses(get_theme_mod('footer_copytext', esc_html__('© Copyright 2022 by Layerdrops.com', 'insur')), 'insur_allowed_tags'); ?>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
<?php else : ?>
<?php echo do_shortcode('[insur-footer id="' . $insur_dynamic_footer . '"]');
?>
<?php endif; ?>