<?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_v18 = $options->get( 'footer_logo_image_v18' );
$footer_logo_image_v18 = inventive_set( $footer_logo_image_v18, 'url', INVENTIVE_URI . '' );

?>
<!-- main-footer -->
<footer class="footer-style-18">
    <?php if($options->get( 'show_footer_newsletter_section_v18' )){?>
    <div class="footer-top">
        <div class="auto-container wow fadeInUp" data-wow-delay="00ms" data-wow-duration="1500ms">
            <div class="top-inner">
                <?php if($options->get( 'footer_newsletter_title_v18' ) || $options->get( 'footer_newsletter_text_v18' )){?>
                <div class="text-box">
                    <?php if($options->get( 'footer_newsletter_title_v18' )){?><h3><?php echo wp_kses( $options->get( 'footer_newsletter_title_v18'), true ); ?></h3><?php } ?>
                    <?php if($options->get( 'footer_newsletter_text_v18' )){?><p><?php echo wp_kses( $options->get( 'footer_newsletter_text_v18'), true ); ?></p><?php } ?>
                </div>
                <?php } ?>
                <?php if($options->get( 'footer_newsletter_url_v18' )){?>
                <div class="form-inner">
                    <?php echo do_shortcode($options->get('footer_newsletter_url_v18')); ?>
                </div>
                <?php } ?>
            </div>
        </div>
    </div>
    <?php } ?>
	<?php if ( is_active_sidebar( 'footer-sidebar-18' ) ) { ?>
    <div class="widget-section">
        <div class="auto-container">
            <div class="row clearfix">
                <?php dynamic_sidebar( 'footer-sidebar-18' ); ?>
            </div>
        </div>
    </div>
    <?php } ?>
    <?php if($options->get( 'show_bottom_footer_v18' )){?>
    <div class="footer-bottom wow fadeInUp" data-wow-delay="800ms" data-wow-duration="1500ms">
        <div class="auto-container">
            <div class="bottom-inner">
                <div class="left-column">
                    <?php if($footer_logo_image_v18){?>
                    <figure class="footer-logo"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url($footer_logo_image_v18); ?>" alt="<?php esc_attr_e('Awesome Image', 'inventive'); ?>"></a></figure>
                    <?php } ?>
                    <?php if($options->get( 'footer_v18_copyright_text' )){?>
                    <p><?php echo wp_kses( $options->get( 'footer_v18_copyright_text'), true ); ?></p>
                    <?php } ?>
                </div>
                <?php if($options->get( 'footer_play_btn_link_v18' ) || $options->get( 'footer_app_btn_link_v18' )){?>
                <ul class="download-list">
                    <?php if($options->get( 'footer_play_btn_link_v18' )){?><li><a href="<?php echo esc_url($options->get('footer_play_btn_link_v18')); ?>"><i class="icon-google-play"></i></a></li><?php } ?>
                    <?php if($options->get( 'footer_app_btn_link_v18' )){?><li><a href="<?php echo esc_url($options->get('footer_app_btn_link_v18')); ?>"><i class="icon-apple"></i></a></li><?php } ?>
                </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>