
<?php 
    $footer_padding = get_theme_mod('footer_padding');
    $copyright = get_theme_mod('copyright');
    $show_backtop = get_theme_mod('back_to_top',true); 
    $show_footer_top = get_theme_mod('show_footer_top',true); 
	$footer_logo = get_theme_mod('footer_logo');

    $i=0;



?>


<section class="footer">
    <?php if($show_footer_top):?>

    <div class="footer-top">
        <div class="container">
            <div class="row">
                <div class="col-lg-4 col-sm-6 col-md-6 me-auto">
                  <div class="footer-widget-area footer-start">
                    <?php if ( is_active_sidebar( 'footer-1' ) ) { 
                            dynamic_sidebar( 'footer-1' ); 
                        } 
                        ?>
                  </div>
                </div>
            
                <div class="col-lg-3 col-sm-6 col-md-6">
                    <div class="footer-widget-area">
                        <?php if ( is_active_sidebar( 'footer-2' ) ) { 
                            dynamic_sidebar( 'footer-2' ); 
                        } 
                        ?>
                    </div>
                </div>
                
                
                <div class="col-lg-2 col-sm-6 col-md-6">
                    <div class="footer-widget-area">
                        <?php if ( is_active_sidebar( 'footer-3' ) ) { 
                            dynamic_sidebar( 'footer-3' ); 
                        } 
                        ?>
                    </div>
                </div>

                <div class="col-lg-2 col-sm-6 col-md-6">
                    <div class="footer-widget-area">
                        <?php if ( is_active_sidebar( 'footer-4' ) ) { 
                            dynamic_sidebar( 'footer-4' ); 
                        } 
                        ?>
                    </div>
                </div>
            </div>
        </div>
	</div>

    <?php endif; ?>

	<div class="footer-btm">
		<div class="container">
			<div class="row justify-content-center align-items-center">
				<div class="col-lg-6">
					<div class="footer-logo">
                    <?php 
                        if (class_exists('kirki') && !empty($footer_logo)) { ?>
                        <img src="<?php echo esc_url($footer_logo );?>" alt="<?php bloginfo('name'); ?>">
                    <?php 
                    }
                    
                    else{
                        ?>
                        <img src="<?php echo esc_url(get_template_directory_uri());?>/assets/images/logo-white.png" alt="<?php bloginfo('name') ?>" class="img-fluid">
                    <?php 
                        }
                    ?>
					</div>
				</div>
				<div class="col-lg-6">
					<div class="copyright text-lg-center">
                     <p>
                     <?php
                        if(!empty($copyright)){
                            echo wp_kses_post( $copyright);
                        }
                        else{
                            ?>
                     
                     <p class="current-year"><?php echo esc_html('Copyright All rights reserved by pxelCode -','edify')?> <?php echo date('Y') ?></p>
                     <?php
                        }
                        ?>
                    </p>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>

<?php if($show_backtop == true){?>
    <div class="fixed-btm-top">
	    <a href="#top-bar" class="js-scroll-trigger scroll-to-top"><i class="fa fa-angle-up"></i></a>
    </div>

<?php }?>
