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

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

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

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

?>

<footer class="main-footer footer-style-2">
    <?php if ( is_active_sidebar( 'footer-sidebar-2' ) ) { ?>
    <div class="footer-1-middle mb_55">
        <div class="auto-container">
            <div class="row pb_30">
                <?php dynamic_sidebar( 'footer-sidebar-2' ); ?>
            </div>
        </div>            
    </div>
    <?php } ?>
    <div class="auto-container">
        <?php if($options->get( 'show_footer_partner_section_v2' )){?>
        <div class="row">
            <?php if($options->get( 'footer_partner_title_v2' ) || $options->get( 'footer_partner_text_v2' ) || $footer_icon_image){?>
            <div class="col-lg-6">
                <div class="footer_icon_box wow fadeInUp" data-wow-delay="500ms" data-wow-duration="1500ms">
                    <?php if($options->get( 'footer_partner_title_v2' )){?><h4><?php echo wp_kses( $options->get( 'footer_partner_title_v2'), true ); ?></h4><?php } ?>
                    <?php if($options->get( 'footer_partner_text_v2' )){?><p><?php echo wp_kses( $options->get( 'footer_partner_text_v2'), true ); ?></p><?php } ?>
                    <?php if($footer_icon_image) {?><div class="icon"><img src="<?php echo esc_url($footer_icon_image); ?>" alt="<?php esc_attr_e('Awesome Image','inventive'); ?>"></div><?php } ?>
                </div>
            </div>
            <?php } ?>
            <?php if($options->get( 'footer_partner_title2_v2' ) || $options->get( 'footer_partner_text2_v2' ) || $footer_icon_image2){?>
            <div class="col-lg-6">
                <div class="footer_icon_box wow fadeInUp" data-wow-delay="1000ms" data-wow-duration="1500ms">
                    <?php if($options->get( 'footer_partner_title2_v2' )){?><h4><?php echo wp_kses( $options->get( 'footer_partner_title2_v2'), true ); ?></h4><?php } ?>
                    <?php if($options->get( 'footer_partner_text2_v2' )){?><p><?php echo wp_kses( $options->get( 'footer_partner_text2_v2'), true ); ?></p><?php } ?>
                    <?php if($footer_icon_image2) {?><div class="icon"><img src="<?php echo esc_url($footer_icon_image2); ?>" alt="<?php esc_attr_e('Awesome Image','inventive'); ?>"></div><?php } ?>
                </div>
            </div>
            <?php } ?>
        </div>
        <?php } ?>
        <?php if($options->get( 'footer_v2_copyright_text' )){?>
        <p class="copyright_text home-2-copyright text-center m-0"><?php echo wp_kses( $options->get( 'footer_v2_copyright_text'), true ); ?></p>
        <?php } ?>
    </div>
</footer> 
    
    
<div class="scroll-to-top">
    <div>
        <div class="scroll-top-inner">
            <div class="scroll-bar">
                <div class="bar-inner"></div>
            </div>
            <div class="scroll-bar-text">Go To Top</div>
        </div>
    </div>
</div>