<?php

/**
 * The template for displaying the footer.
 *
 * Contains the closing of the #content div and all content after
 *
 * @package Chic Lifestyle
 */

?>

<?php
$footer_bg_color = get_theme_mod('footer_color', '#1b1b1b');
$footer_widget_layout = get_theme_mod('chic_lifestyle_footer_layout', '4');
?>

<footer class="py-40 px-0 text-white mt-32 <?php echo ($footer_widget_layout == 0) ? 'd-none' : ''; ?>" style="background-color: <?php echo esc_attr($footer_bg_color); ?>">
	<div class="container">
		<?php chic_lifestyle_footer_widgets(); ?>
	</div>
</footer>

<div class="copyright text-center my-20 px-0">
	<?php $copyright = get_theme_mod('copyright_text', ''); ?>
	<p>
		<span class="editable"><?php echo wp_kses_post($copyright); ?></span>
		<?php if (fs_chic_lifestyle()->is_free_plan()) : ?>
			<?php esc_html_e("Powered by", 'chic-lifestyle'); ?> <a href="<?php echo esc_url(__('https://wordpress.org', 'chic-lifestyle')); ?>"><?php esc_html_e("WordPress", 'chic-lifestyle'); ?></a> | <?php esc_html_e('Theme by', 'chic-lifestyle'); ?> <a href="<?php echo esc_url('https://thebootstrapthemes.com/'); ?>"><?php esc_html_e('TheBootstrapThemes', 'chic-lifestyle'); ?></a>
		<?php endif; ?>
	</p>
</div>

<?php if ( get_theme_mod( 'chic_lifestyle_scroll_to_top_display', true ) ) : ?>
<div id="chic_lifestyle_scroll_to_top" class="scroll-top-wrapper position-fixed bottom-30 end-30 d-inline-flex justify-content-center align-items-center text-center rounded-circle bg-primary cursor-pointer z-100 border-1 border-white">
	<span class="lh-1 text-light"><i class="fa fa-angle-up"></i></span>
</div>
<?php endif; ?>

<?php wp_footer(); ?>
</body>

</html>