<?php
/**
 * footer.php
 * @package WordPress
 * @subpackage Froday
 * @since Froday 1.0
 * 
 */
 ?>		
		<?php if ( is_active_sidebar( 'footer-1' ) || is_active_sidebar( 'footer-2' ) || is_active_sidebar( 'footer-3' ) || is_active_sidebar( 'footer-4' ) ) { ?>
         <section class="footer-top-area pt-70 pb-30 pos-r bg-blue">
            <div class="container">
                <div class="row row-tb-20">
                    <div class="col-sm-12 col-md-7">
                        <div class="row row-tb-20">
                            <div class="footer-col col-sm-6">
                                <?php dynamic_sidebar( 'footer-1' ); ?>
                            </div>
                            <div class="footer-col col-sm-6">
								<?php dynamic_sidebar( 'footer-2' ); ?>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-12 col-md-5">
                        <div class="row row-tb-20">
                            <div class="footer-col col-sm-6">
								<?php dynamic_sidebar( 'footer-3' ); ?>
                            </div>
                            <div class="footer-col col-sm-6">
								<?php dynamic_sidebar( 'footer-4' ); ?>
                            </div>
                        </div>
                    </div>

					<?php $footer_payment = ot_get_option('froday_footer_images'); 

					if($footer_payment){ ?>
                    <div class="col-xs-12">
                        <div class="payment-methods t-center">
							<?php foreach($footer_payment as $key => $value) { ?>
                            <span><img src="<?php echo esc_url($value['froday_footer_payment_image']); ?>" alt="<?php esc_attr_e('payment','froday'); ?>"></span>
							<?php } ?>
                        </div>
                    </div>
					<?php } ?>
				</div>
			</div>
		</section>
		<?php } ?>

        <footer id="mainFooter" class="main-footer">
            <div class="container">
                <div class="row">
					 <?php if(ot_get_option( 'froday_copyright' )){ ?>
						<p><?php echo froday_sanitize_data(ot_get_option( 'froday_copyright' )); ?></p>
					 <?php } else { ?>
						<p><?php esc_html_e('Copyright 2020.KlbTheme . All rights reserved','froday'); ?>
					 <?php } ?>
                </div>
            </div>
        </footer>

    </div>

    <div id="backTop" class="back-top is-hidden-sm-down">
        <i class="fa fa-angle-up" aria-hidden="true"></i>
    </div>

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