<?php 
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
$enable_info	= get_theme_mod('enable_info',daddy_plus_flixita_get_default_option( 'enable_info' ));
$info_data	= get_theme_mod('info_data',daddy_plus_flixita_get_default_option( 'info_data' ));
if($enable_info=='1'):
?>	
<section id="info-section" class="info-section">
	<div class="container">
		<div class="row">
			<div class="col-12 wow fadeInUp">
				<div class="row g-4 info-wrapper">
					<?php
						if ( ! empty( $info_data ) ) {
						$info_data = json_decode( $info_data );
						foreach ( $info_data as $i=>$item ) {
							$title = ! empty( $item->title ) ? apply_filters( 'flixita_translate_single_string', $item->title, 'Information section' ) : '';
							$text = ! empty( $item->text ) ? apply_filters( 'flixita_translate_single_string', $item->text, 'Information section' ) : '';
							$button = ! empty( $item->text2 ) ? apply_filters( 'flixita_translate_single_string', $item->text2, 'Information section' ) : '';
							$link = ! empty( $item->link ) ? apply_filters( 'flixita_translate_single_string', $item->link, 'Information section' ) : '';
							$icon = ! empty( $item->icon_value ) ? apply_filters( 'flixita_translate_single_string', $item->icon_value, 'Information section' ) : '';
							$image = ! empty( $item->image_url ) ? apply_filters( 'flixita_translate_single_string', $item->image_url, 'Information section' ) : '';
					?>
						<div class="col-lg-3 col-md-6 col-12">
							<aside class="widget widget-contact">
								<div class="contact-area">
									<div class="feature-box-inner">
										<?php if(!empty($icon)): ?>
											<div class="feature-box-icon">
												<i class="fa <?php echo esc_attr($icon); ?>"></i>
											</div>	
										<?php endif; ?>	
										
										<?php if(!empty($title)): ?>
											<h4 class="feature-box-title"><?php echo esc_html($title); ?></h4>
										<?php endif; ?>
										
										<?php if(!empty($text)): ?>
											<div class="fbox-content"><?php echo esc_html($text); ?></div>
										<?php endif; ?>
										
										<?php if(!empty($button)): ?>
											<a href="<?php echo esc_url($link); ?>" class="more read-more"><?php echo esc_html($button); ?><i class="fa fa-arrow-right"></i></a>
										<?php endif; ?>	
									</div>
								</div>
								<div class="side-border-lines"></div>
							</aside>
						</div>
				   <?php } } ?>
				</div>
			</div>
		</div>
	</div>
</section>
<?php endif; ?>