<?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 roland
 */
 $roland_footer_copyright_text = get_theme_mod('roland_footer_copyright_text');
?>
	</main>

	<footer class="site-footer footer-area">
		<!-- Footer Top -->
		<div class="footer-top">
			<div class="container">
				<div class="row">
				<?php if(is_active_sidebar('roland_footer_1')) : ?>
					<div class="col-lg-3 col-md-6 col-12">
						<?php dynamic_sidebar('roland_footer_1'); ?>
					</div>
				<?php endif; ?>
					
				<?php if(is_active_sidebar('roland_footer_2')) : ?>
					<div class="col-lg-3 col-md-6 col-12">
						<?php dynamic_sidebar('roland_footer_2'); ?>
					</div>
				<?php endif; ?>

				<?php if(is_active_sidebar('roland_footer_3')) : ?>
					<div class="col-lg-3 col-md-6 col-12">
						<?php dynamic_sidebar('roland_footer_3'); ?>
					</div>
				<?php endif; ?>

				<?php if(is_active_sidebar('roland_footer_4')) : ?>
					<div class="col-lg-3 col-md-6 col-12">
						<?php dynamic_sidebar('roland_footer_4'); ?>
					</div>
				<?php endif; ?>
					
				</div>
				<!-- End-Single-Widget -->
			</div>
		</div>
		<!-- End Footer Top -->
		<!-- Copyright -->
		<div class="copyright">
			<div class="container">
				<div class="row">
					<div class="col-12">
						<div class="copyright-text">
							<?php if(!empty($roland_footer_copyright_text)) : ?>
								<?php echo wp_kses_post($roland_footer_copyright_text); ?>
								<?php
								/* translators: 1: Theme name, 2: Theme author. */
								printf( esc_html__( 'Theme %2$s  By  %1$s', 'roland' ), '<a href="https://pencilwp.com/product/roland" >PencilWp</a>' , '<a href="https://pencilwp.com">Roland</a>' );?>
							<?php else : ?>
								<?php esc_html_e('&copy; All Right Reserved ','roland'); bloginfo('title');?> <?php echo  esc_html(date_i18n( __( 'Y' , 'roland' ) ));?>
								<?php
								/* translators: 1: Theme name, 2: Theme author. */
								printf( esc_html__( 'Theme %2$s  By  %1$s', 'roland' ), '<a href="https://pencilwp.com/"  >PencilWp</a>' , '<a href="https://pencilwp.com/product/roland">Roland</a>' );?>
							<?php endif; ?>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- End Footer Copyright -->
	</footer>
	
</div><!-- End Page -->

<?php wp_footer(); ?>

</body>
</html>
