<?php
/**
 * Footer Template  File
 *
 * @package INVENTIVE
 * @author  Theme Kalia
 * @version 1.0
 */

$options = inventive_WSH()->option();
$allowed_html = wp_kses_allowed_html( 'post' );

$footer_logo_image_v7 = $options->get( 'footer_logo_image_v7' );
$footer_logo_image_v7 = inventive_set( $footer_logo_image_v7, 'url', INVENTIVE_URI . '' );

?>

<!-- main-footer -->
<footer class="footer-style-seven wow fadeInUp" data-wow-delay="00ms" data-wow-duration="1500ms">
    <div class="auto-container">
        <?php if($options->get( 'show_footer_newsletter_section_v7' )){?>
        <div class="footer-top">
            <div class="top-inner">
                <?php if($options->get( 'footer_newsletter_title_v7' )){?><h2><?php echo wp_kses( $options->get( 'footer_newsletter_title_v7'), true ); ?></h2><?php } ?>
                <?php if($options->get( 'footer_newsletter_description_v7' )){?><p><?php echo wp_kses( $options->get( 'footer_newsletter_description_v7'), true ); ?></p><?php } ?>
                <?php if($options->get( 'footer_newsletter_url_v7' )){?>
                <div class="form-inner">
                    <?php echo do_shortcode($options->get('footer_newsletter_url_v7')); ?>
                </div>
                <?php } ?>
                <?php if($options->get( 'footer_newsletter_text_v7' )){?>
                <div class="lower-text"><?php echo wp_kses( $options->get( 'footer_newsletter_text_v7'), true ); ?></div>
                <?php } ?>
            </div>
        </div>
        <?php } ?>
        <?php if ( is_active_sidebar( 'footer-sidebar-7' ) ) { ?>
        <div class="widget-section">
            <div class="row clearfix">
                <?php dynamic_sidebar( 'footer-sidebar-7' ); ?>
            </div>
        </div>
        <?php } ?>
    </div>
    <?php if($options->get( 'show_bottom_footer_v7' )){?>
    <div class="footer-bottom wow fadeInUp" data-wow-delay="1000ms" data-wow-duration="1500ms">
        <div class="auto-container">
            <div class="bottom-inner">
                <?php if($footer_logo_image_v7 || $options->get( 'footer_v7_copyright_text' )) {?>
                <div class="left-column">
                    <?php if($footer_logo_image_v7) {?><figure class="logo-box"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url($footer_logo_image_v7); ?>" alt="<?php esc_attr_e('Awesome Image','inventive'); ?>"></a></figure><?php } ?>
                    <?php if($options->get( 'footer_v7_copyright_text' )){?><p><?php echo wp_kses( $options->get( 'footer_v7_copyright_text'), true ); ?></p><?php } ?>
                </div>
                <?php } ?>
                <?php if($options->get( 'show_footer_social_media_v7' )){?>
                <ul class="social-links clearfix">
                    <?php echo inventive_get_social_icon(); ?>
                </ul>
                <?php } ?>
            </div>
        </div>
    </div>
    <?php } ?>
</footer>
<!-- main-footer end -->
    
<!-- Scroll to top end -->
<div class="prgoress_indicator">
    <svg class="progress-circle svg-content" width="100%" height="100%" viewBox="-1 -1 102 102">
      <path d="M50,1 a49,49 0 0,1 0,98 a49,49 0 0,1 0,-98" />
    </svg>
</div>