<?php  $funfact_contents		= get_theme_mod('funfact_contents',themes_get_funfact_default()); ?>	
	 <!-- funfact section -->
    <section class="funfact-section home-funfact">
		<section class="sticky sticky-menu">
            <div class="bubbles">
                <div class="bubble"></div>
                <div class="bubble"></div>
                <div class="bubble"></div>
                <div class="bubble"></div>
                <div class="bubble"></div>
                <div class="bubble"></div>
                <div class="bubble"></div>
                <div class="bubble"></div>
                <div class="bubble"></div>
                <div class="bubble"></div>

            </div>
        </section>
        <div class="container">
            <div class="row">
				<?php
					if ( ! empty( $funfact_contents ) ) {
					$funfact_contents = json_decode( $funfact_contents );
					foreach ( $funfact_contents as $funfact_item ) {
						$title = ! empty( $funfact_item->title ) ? apply_filters( 'glides_translate_single_string', $funfact_item->title, 'Funfact section' ) : '';
						$subtitle = ! empty( $funfact_item->subtitle ) ? apply_filters( 'glides_translate_single_string', $funfact_item->subtitle, 'Funfact section' ) : '';
						$image = ! empty( $funfact_item->image_url ) ? apply_filters( 'glides_translate_single_string', $funfact_item->image_url, 'Funfact section' ) : '';
						$icon = ! empty( $funfact_item->icon_value ) ? apply_filters( 'glides_translate_single_string', $funfact_item->icon_value, 'Funfact section' ) : '';
						$choice = ! empty( $funfact_item->choice ) ? apply_filters( 'glides_translate_single_string', $funfact_item->choice, 'Funfact section' ) : '';
				?>
					<div class="col-lg-3">
						<div class="funfact-item">
							<div class="funfact-icon">
								<?php if($choice =='customizer_repeater_image'): ?>
									<img src="<?php echo esc_url($image); ?>" />
								<?php else: ?>
									<i class="fa <?php echo esc_attr($icon); ?>"></i>
								<?php endif; ?>
							</div>
							
							<?php if(!empty($title)){ ?>
								<h2><span class="counter"><?php echo esc_html($title); ?></span>k</h2>
							<?php } ?>
							
							<?php if(!empty($subtitle)){ ?>
								<span>
									<?php echo esc_html($subtitle); ?>
								</span>
							<?php } ?>
						</div>
					</div>
                <?php } } ?>
            </div>
        </div>
    </section>
    <!-- funfact section -->