<?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 Magazine Express
 */
?>

<footer id="colophon" class="site-footer border-top">
	    <div class="container">
	    	<?php if (get_theme_mod('magazine_express_show_hide_footer', true)) {?>
		    	<div class="footer-column">
		    		<div class="row">
				        <div class="col-lg-3 col-md-3 col-sm-6 col-12">
				          	<?php if (is_active_sidebar('magazine-express-footer1')) : ?>
		                        <?php dynamic_sidebar('magazine-express-footer1'); ?>
		                    <?php else : ?>
		                        <aside id="search" class="widget" role="complementary" aria-label="firstsidebar">
		                            <h5 class="widget-title"><?php esc_html_e( 'About Us', 'magazine-express' ); ?></h5>
		                            <div class="textwidget">
		                            	<p><?php esc_html_e( 'Nam malesuada nulla nisi, ut faucibus magna congue nec. Ut libero tortor, tempus at auctor in, molestie at nisi. In enim ligula, consequat eu feugiat a.', 'magazine-express' ); ?></p>
		                            </div>
		                        </aside>
		                    <?php endif; ?>
				        </div>
				        <div class="col-lg-3 col-md-3 col-sm-6 col-12">
				            <?php if (is_active_sidebar('magazine-express-footer2')) : ?>
		                        <?php dynamic_sidebar('magazine-express-footer2'); ?>
		                    <?php else : ?>
		                        <aside id="pages" class="widget">
		                            <h5 class="widget-title"><?php esc_html_e( 'Useful Links', 'magazine-express' ); ?></h5>
		                            <ul class="mt-4">
		                            	<li><?php esc_html_e( 'Home', 'magazine-express' ); ?></li>
		                            	<li><?php esc_html_e( 'services', 'magazine-express' ); ?></li>
		                            	<li><?php esc_html_e( 'Reviews', 'magazine-express' ); ?></li>
		                            	<li><?php esc_html_e( 'About Us', 'magazine-express' ); ?></li>
		                            </ul>
		                        </aside>
		                    <?php endif; ?>
				        </div>
				        <div class="col-lg-3 col-md-3 col-sm-6 col-12">
				            <?php if (is_active_sidebar('magazine-express-footer3')) : ?>
		                        <?php dynamic_sidebar('magazine-express-footer3'); ?>
		                    <?php else : ?>
		                        <aside id="pages" class="widget">
		                            <h5 class="widget-title"><?php esc_html_e( 'Information', 'magazine-express' ); ?></h5>
		                            <ul class="mt-4">
		                            	<li><?php esc_html_e( 'FAQ', 'magazine-express' ); ?></li>
		                            	<li><?php esc_html_e( 'Site Maps', 'magazine-express' ); ?></li>
		                            	<li><?php esc_html_e( 'Privacy Policy', 'magazine-express' ); ?></li>
		                            	<li><?php esc_html_e( 'Contact Us', 'magazine-express' ); ?></li>
		                            </ul>
		                        </aside>
		                    <?php endif; ?>
				        </div>
				        <div class="col-lg-3 col-md-3 col-sm-6 col-12">
				            <?php if (is_active_sidebar('magazine-express-footer4')) : ?>
		                        <?php dynamic_sidebar('magazine-express-footer4'); ?>
		                    <?php else : ?>
		                        <aside id="pages" class="widget">
		                            <h5 class="widget-title"><?php esc_html_e( 'Get In Touch', 'magazine-express' ); ?></h5>
		                            <ul class="mt-4">
		                            	<li><?php esc_html_e( 'Via Carlo Montù 78', 'magazine-express' ); ?><br><?php esc_html_e( '22021 Bellagio CO, Italy', 'magazine-express' ); ?></li>
		                            	<li><?php esc_html_e( '+11 6254 7855', 'magazine-express' ); ?></li>
		                            	<li><?php esc_html_e( 'support@example.com', 'magazine-express' ); ?></li>
		                            </ul>
		                        </aside>
		                    <?php endif; ?>
				        </div>
			      	</div>
				</div>
			<?php } ?>
	    	<?php if (get_theme_mod('magazine_express_show_hide_copyright', true)) {?>
			        <div class="site-info text-center">
			            <div class="footer-menu-left">
			            	<?php  if( ! get_theme_mod('magazine_express_footer_text_setting') ){ ?>
							    <a target="_blank" href="<?php echo esc_url('https://wordpress.org/', 'magazine-express' ); ?>">
									<?php
									/* translators: %s: CMS name, i.e. WordPress. */
									printf( esc_html__( 'Proudly powered by %s', 'magazine-express' ), 'WordPress' );
									?>
							    </a>
							    <span class="sep mr-1"> | </span>

							    <span>
							    	<a target="_blank" href="<?php echo esc_url( 'https://www.themagnifico.net/products/free-magazine-wordpress-theme'); ?>">
						              	<?php
						                /* translators: 1: Theme name,  */
						                printf( esc_html__( ' %1$s ', 'magazine-express' ),'Magazine WordPress Theme' );
						              	?>
					              	</a>
						          	<?php
						              /* translators: 1: Theme author. */
						              printf( esc_html__( 'by %1$s.', 'magazine-express' ),'TheMagnifico'  );
						            ?>
			        			</span>
							<?php }?>
							<?php echo esc_html(get_theme_mod('magazine_express_footer_text_setting')); ?>
			            </div>
			        </div>
			<?php } ?>
		    <?php if(get_theme_mod('magazine_express_scroll_hide',true)){ ?>
		    	<a href="#" id="button"><?php esc_html_e('TOP','magazine-express'); ?></a>
		    <?php } ?>
	    </div>
	</footer>
</div>

<?php wp_footer(); ?>

</body>
</html>
