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

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

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

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

?>

<!-- main-footer -->
<footer class="footer-style-16 clearfix wow fadeInUp" data-wow-delay="00ms" data-wow-duration="1500ms">
    <?php if($options->get( 'show_footer_left_section_v16' )){?>
    <div class="footer-left-column">
        <div class="bg-layer" style="background-image: url('<?php echo esc_url($footer_shape_image_v16); ?>');"></div>
        <div class="inner-box">
            <div class="content-box">
                <?php if($footer_icon_image_v16){?>
                <div class="icon-box"><img src="<?php echo esc_url($footer_icon_image_v16); ?>" alt="<?php esc_attr_e('Awesome Image', 'inventive'); ?>"></div>
                <?php } ?>
                <?php if($options->get( 'footer_box_title_v16' )){?><h3><?php echo wp_kses( $options->get( 'footer_box_title_v16'), true ); ?></h3><?php } ?>
                <?php if($options->get( 'footer_box_btn_title_v16' )){?>
                <a href="<?php echo esc_url($options->get('footer_box_btn_link_v16')); ?>" class="btn-1"><?php echo wp_kses( $options->get( 'footer_box_btn_title_v16'), true ); ?><span></span></a>
                <?php } ?>
            </div>
        </div>
    </div>
    <?php } ?>
    <div class="footer-right-column wow fadeInUp" data-wow-delay="200ms" data-wow-duration="1500ms">
        <?php if($options->get( 'show_footer_newsletter_section_v16' )){?>
        <div class="footer-top">
            <?php if($options->get( 'footer_newsletter_title_v16' )){?><h3><?php echo wp_kses( $options->get( 'footer_newsletter_title_v16'), true ); ?></h3><?php } ?>
            <?php if($options->get( 'footer_newsletter_url_v16' )){?>
            <div class="form-inner">
                <?php echo do_shortcode($options->get('footer_newsletter_url_v16')); ?>
            </div>
            <?php } ?>
        </div>
        <?php } ?>
        <div class="widget-section">
            <div class="row clearfix">
                <?php if($options->get( 'show_footer_contact_info_v16' )){?>
                <div class="col-lg-12 col-md-12 col-sm-12 footer-column">
                    <div class="footer-widget contact-widget wow fadeInUp" data-wow-delay="400ms" data-wow-duration="1500ms">
                        <?php if($options->get( 'footer_contact_title_v16' )){?>
                        <div class="widget-title">
                            <h3><?php echo wp_kses( $options->get( 'footer_contact_title_v16'), true ); ?></h3>
                        </div>
                        <?php } ?>
                        <div class="widget-content">
                            <?php if($options->get( 'footer_working_title_v16' ) || $options->get( 'footer_contact_working_v16' ) || $options->get( 'footer_contact_close_v16' )){?>
                            <p><?php if($options->get( 'footer_working_title_v16' )){?><strong><?php echo wp_kses( $options->get( 'footer_working_title_v16'), true ); ?></strong><?php } ?> <?php echo wp_kses( $options->get( 'footer_contact_working_v16'), true ); ?> <?php if($options->get( 'footer_contact_close_v16' )){?><span><?php echo wp_kses( $options->get( 'footer_contact_close_v16'), true ); ?></span><?php } ?></p>
                            <?php } ?>
                            <?php if($options->get( 'footer_contact_address_v16' )){?>
                            <ul class="info-list clearfix">
                                <?php if($options->get( 'footer_contact_address_v16' )){?><li><?php echo wp_kses( $options->get( 'footer_contact_address_v16'), true ); ?></li><?php } ?>
                                <?php if($options->get( 'footer_contact_phone_v16' ) || $options->get( 'footer_contact_email_v16' )){?>
                                <li>
                                	<?php if($options->get( 'footer_contact_phone_v16' )){?><a href="tel:<?php echo esc_attr($options->get('footer_contact_phone_v16'), true); ?>"><?php echo wp_kses( $options->get( 'footer_contact_phone_v16'), true ); ?></a><?php } ?>
                                	<?php if($options->get( 'footer_contact_email_v16' )){?><br /><a href="mailto:<?php echo esc_attr($options->get('footer_contact_email_v16'), true); ?>"><?php echo wp_kses( $options->get( 'footer_contact_email_v16'), true ); ?></a><?php } ?>
                                </li>
                                <?php } ?>
                            </ul>
                            <?php } ?>
                        </div>
                    </div>
                </div>
                <?php } ?>
                <?php if($options->get( 'show_footer_links_v16' )){?>
                <div class="col-lg-6 col-md-6 col-sm-12 footer-column">
                    <div class="footer-widget links-widget wow fadeInUp" data-wow-delay="600ms" data-wow-duration="1500ms">
                        <?php if($options->get( 'footer_menu_title_v16' )){?>
                        <div class="widget-title">
                            <h3><?php echo wp_kses( $options->get( 'footer_menu_title_v16'), true ); ?></h3>
                        </div>
                        <?php } ?>
                    </div>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-12 footer-column">
                    <div class="footer-widget links-widget wow fadeInUp" data-wow-delay="800ms" data-wow-duration="1500ms">
                        <?php if($options->get( 'footer_menu_title2_v16' )){?>
                        <div class="widget-title">
                            <h3><?php echo wp_kses( $options->get( 'footer_menu_title2_v16'), true ); ?></h3>
                        </div>
                        <?php } ?>
                    </div>
                </div>
                <?php } ?>
            </div>
        </div>
        <?php if($options->get( 'show_bottom_footer_v16' )){?>
        <div class="footer-bottom wow fadeInUp" data-wow-delay="1000ms" data-wow-duration="1500ms">
            <div class="bottom-inner">
                <?php if($options->get( 'footer_v16_copyright_text' )){?><div class="copyright"><p><?php echo wp_kses( $options->get( 'footer_v16_copyright_text'), true ); ?></p></div><?php } ?>
                <?php if($options->get( 'footer_v16_back_to_top_text' )){?><div class="scroll-top-inner visible"><?php echo wp_kses( $options->get( 'footer_v16_back_to_top_text'), true ); ?><i class="icon-diagonal-arrow-1"></i></div><?php } ?>
            </div>
        </div>
        <?php } ?>
    </div>
</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>