
	<div class="footer-one">
		<?php do_action( 'leatherhouse_above_footer' ); ?>
	</div>
	</div>
	<!--===// Start: Footer
		=================================-->
	<?php
		$leatherhouse_footer_effect_enable = get_theme_mod( 'leatherhouse_footer_effect_enable', false );
	?>

		<footer id="footer-section" class="footer-one footer-section  
			<?php
			if ( $leatherhouse_footer_effect_enable === true ) :
				echo esc_attr( 'footer-effect-active' );
			endif;
			?>
		">
			<?php
				$leatherhouse_footer_middle_content  = get_theme_mod( 'footer_widget_middle_content', '<i class="fa fa-whatsapp"></i>' );
				$leatherhouse_footer_container_size  = get_theme_mod( 'leatherhouse_footer_container_size', 'container-full' );
				$leatherhouse_footer_column_layout   = get_theme_mod( 'leatherhouse_footer_column_layout', 'av-column-4' );
				$leatherhouse_footer_widgets_enabled = get_theme_mod( 'leatherhouse_footer_widgets_enabled', true );
			if ( $leatherhouse_footer_widgets_enabled === true ) {
				if ( is_active_sidebar( 'leatherhouse-footer-1' ) || is_active_sidebar( 'leatherhouse-footer-2' ) || is_active_sidebar( 'leatherhouse-footer-3' ) || is_active_sidebar( 'leatherhouse-footer-4' ) ) {
					?>
					<div class="footer-main">
						<div class="<?php echo esc_attr( $leatherhouse_footer_container_size ); ?>">
							<div class="av-columns-area">
								<?php if ( is_active_sidebar( 'leatherhouse-footer-1' ) ) : ?>
										<div class="<?php echo esc_attr( $leatherhouse_footer_column_layout ); ?> col-md-6 mb-xl-0 mb-4 pr-md-5">
											<?php dynamic_sidebar( 'leatherhouse-footer-1' ); ?>
										</div>
									<?php endif; ?>
								<?php if ( is_active_sidebar( 'leatherhouse-footer-2' ) ) : ?>
										<div class="<?php echo esc_attr( $leatherhouse_footer_column_layout ); ?> col-md-6 mb-xl-0 mb-4 pl-md-5">
											<?php dynamic_sidebar( 'leatherhouse-footer-2' ); ?>
										</div>
									<?php endif; ?>
								<?php if ( is_active_sidebar( 'leatherhouse-footer-3' ) ) : ?>
										<div class="<?php echo esc_attr( $leatherhouse_footer_column_layout ); ?> col-md-6 mb-xl-0 mb-4">
											<?php dynamic_sidebar( 'leatherhouse-footer-3' ); ?>
										</div>
									<?php endif; ?>
								<?php if ( is_active_sidebar( 'leatherhouse-footer-4' ) ) : ?>
										<div class="<?php echo esc_attr( $leatherhouse_footer_column_layout ); ?> col-md-6 mb-xl-0 mb-4">
											<?php dynamic_sidebar( 'leatherhouse-footer-4' ); ?>
										</div>
									<?php endif; ?>
							</div>	       
						</div>
						<!-- <?php if ( ! empty( $leatherhouse_footer_middle_content ) ) : ?>
							<div class="footer-info-overwrap"><div class="icon"><?php echo wp_kses_post( $leatherhouse_footer_middle_content ); ?></div></div>
						<?php endif; ?>	 -->
					</div>

					<?php
				}
			}
				$leatherhouse_footer_first_img = get_theme_mod( 'leatherhouse_footer_first_img', esc_url( get_template_directory_uri() . '/assets/images/logo.png' ) );
			if ( function_exists( 'leatherhouse_get_social_icon_default' ) ) :
				$leatherhouse_footer_social_icons = get_theme_mod( 'footer_social_icons', leatherhouse_get_social_icon_default() );
				else :
					$leatherhouse_footer_social_icons = get_theme_mod( 'footer_social_icons' );
				endif;

				$leatherhouse_footer_copright_enabled = get_theme_mod( 'leatherhouse_footer_copright_enabled', true );
				if ( $leatherhouse_footer_copright_enabled === true ) {
					$leatherhouse_footer_copyright_text      = get_theme_mod( 'leatherhouse_footer_copyright_text', '&copy; Leather House Premium Theme 2024' );
					$leatherhouse_footer_social_icon_enabled = get_theme_mod( 'leatherhouse_footer_social_icon_enabled', true );
					?>
					<div class="footer-copyright">
						<div class="container-full">
							<div class="av-columns-area">
									<?php
									if ( ! empty( $leatherhouse_footer_first_img ) && $leatherhouse_footer_social_icon_enabled === true && $leatherhouse_footer_copyright_text !== '' ) {
										$footer_column_area = 'av-column-4 av-md-column-6';
									} else {
										$footer_column_area = 'av-column-6 av-md-column-6';
									}
									?>
									<!-- If Image Is Empty -->
									<?php if ( ! empty( $leatherhouse_footer_first_img ) ) { ?>
										<div class="<?php echo esc_attr( $footer_column_area ); ?> text-md-left text-center">
											<div class="widget-left">
												<div class="logo">
													<a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="site-title"><img src="<?php echo esc_url( $leatherhouse_footer_first_img ); ?>"></a>
												</div>
											</div>
										</div>
									<?php } ?>

									<!-- If Image Is Empty -->
									<?php
									if ( true === $leatherhouse_footer_social_icon_enabled ) {
										?>
										<div class="<?php echo esc_attr( $footer_column_area ); ?> text-md-center text-center">
											<div class="widget-center">
												<?php if ( $leatherhouse_footer_social_icons !== '' ) { ?>
													<aside class="share-toolkit widget widget_social_widget">
														<ul>
															<li><a href="#"><i class="fa fa-facebook"></i></a></li>
															<li><a href="#"><i class="fa fa-twitter"></i></a></li>
															<li><a href="#"><i class="fa fa-instagram"></i></a></li>
														</ul>
													</aside>
												<?php } ?>
											</div>
										</div>
									<?php } ?>

									<?php if ( ! empty( $leatherhouse_footer_copyright_text ) ) { ?>
										<div class="<?php echo esc_attr( $footer_column_area ); ?> text-av-right text-md-left text-center">
											<div class="widget-right">                          
													<?php
														$leatherhouse_copyright_allowed_tags = array(
															'[current_year]' => date_i18n( 'Y' ),
															'[site_title]' => get_bloginfo( 'name' ),
															'[theme_author]' => sprintf( __( 'Powered by %s', 'leather-house' ),'<a href="https://awplife.com/" target="_blank" rel="nofollow">Leather House</a>'),

														);
													?>

												<div class="copyright-text">
													<?php
														echo apply_filters( 'leatherhouse_footer_copyright', wp_kses_post( leatherhouse_str_replace_assoc( $leatherhouse_copyright_allowed_tags, $leatherhouse_footer_copyright_text ) ) );
													?>
												</div>
											</div>
										</div>
									<?php } ?>
							</div>
						</div>
					</div>
			<?php } ?>
		</footer>
		<!-- End: Footer
		=================================-->

		<!-- ScrollUp -->
		<?php
			$leatherhouse_goto_top_icon_enabled = get_theme_mod( 'leatherhouse_goto_top_icon_enabled', true );
		if ( $leatherhouse_goto_top_icon_enabled === true ) :
			?>
			<button type=button class="scrollup"><i class="fa fa-arrow-up"></i></button>
		<?php endif; ?>
	</div>
	<?php
	wp_footer();

	/**
	 * Swithcer Code Only For Demo Site
	 */
	if ( strpos( home_url(), 'https://awplife.com' ) === 0 ) {
		require get_template_directory() . '/assets/switcher/switcher.php';
	}

	?>

</body>
</html>
