<?php if ( true == get_theme_mod( 'film_celebrity_slide_on_off', 'off' ) ) : ?>

<?php $film_celebrity_slide_count = get_theme_mod('film_celebrity_slide_count'); ?>

<section id="home_slider">
	<div class="owl-carousel">
		<?php for ($i=1; $i <= $film_celebrity_slide_count; $i++) {
			
			$film_celebrity_slider_image = get_theme_mod('film_celebrity_slider_image'.$i);
			$film_celebrity_slider_short_heading = get_theme_mod('film_celebrity_slider_short_heading'.$i);
			$film_celebrity_slider_heading = get_theme_mod('film_celebrity_slider_heading'.$i);
			$film_celebrity_slider_heading_link = get_theme_mod('film_celebrity_slider_heading_link'.$i);
			$film_celebrity_slider_button1_text = get_theme_mod('film_celebrity_slider_button1_text'.$i);
			$film_celebrity_slider_button1_link = get_theme_mod('film_celebrity_slider_button1_link'.$i);

	        $film_celebrity_slider_facebook_link = get_theme_mod('film_celebrity_slider_facebook_link'.$i);
	        $film_celebrity_slider_twitter_link = get_theme_mod('film_celebrity_slider_twitter_link'.$i);
	        $film_celebrity_slider_youtube_link = get_theme_mod('film_celebrity_slider_youtube_link'.$i);
	        $film_celebrity_slider_watsapp_link = get_theme_mod('film_celebrity_slider_watsapp_link'.$i); ?>

			<div class="slider_main_box">
				<?php if ( ! empty( $film_celebrity_slider_image ) ) : ?>
					<img src="<?php echo esc_url( $film_celebrity_slider_image ); ?>">
					<div class="slider_content_box wow zoomIn" data-wow-duration="2s">
						<?php if ( ! empty( $film_celebrity_slider_short_heading ) ) : ?>
							<h5><?php echo esc_html( $film_celebrity_slider_short_heading ); ?></h5>
						<?php endif; ?>
						<?php if ( ! empty( $film_celebrity_slider_heading_link ) || ! empty( $film_celebrity_slider_heading ) ): ?>
							<h3><a href="<?php echo esc_url( $film_celebrity_slider_heading_link ); ?>"><?php echo esc_html( $film_celebrity_slider_heading ); ?></a></h3>
						<?php endif; ?>
						<?php if ( ! empty( $film_celebrity_slider_button1_text ) || ! empty( $film_celebrity_slider_button1_link ) ): ?>
							<a class="slider-btn" href="<?php echo esc_url( $film_celebrity_slider_button1_link ); ?>"><?php echo esc_html( $film_celebrity_slider_button1_text ); ?></a>
						<?php endif; ?>
					</div>
						<div class="social-media wow bounceIn">
							<?php if ( ! empty( $film_celebrity_slider_facebook_link ) || ! empty( $film_celebrity_slider_twitter_link ) || ! empty( $film_celebrity_slider_youtube_link ) || ! empty( $film_celebrity_slider_watsapp_link ) ): ?>
							<span><?php esc_html_e('Follow Us - ','film-celebrity'); ?></span>
								<?php if ( ! empty( $film_celebrity_slider_facebook_link ) ) : ?>
			                      <a target="_blank" href="<?php echo esc_url( $film_celebrity_slider_facebook_link ); ?>">
			                          <i class="fa fa-facebook"></i>
			                      </a>
			                  	<?php endif; ?>

			                  	<?php if ( ! empty( $film_celebrity_slider_twitter_link ) ) : ?>
			                      <a target="_blank" href="<?php echo esc_url( $film_celebrity_slider_twitter_link ); ?>">
			                          <i class="fa fa-twitter"></i>
			                      </a>
			                  	<?php endif; ?>

			                  	<?php if ( ! empty( $film_celebrity_slider_youtube_link ) ) : ?>
			                      <a target="_blank" href="<?php echo esc_url( $film_celebrity_slider_youtube_link ); ?>">
			                          <i class="fa fa-youtube-play"></i>
			                      </a>
			                  	<?php endif; ?>

			                  	<?php if ( ! empty( $film_celebrity_slider_watsapp_link ) ) : ?>
			                      <a target="_blank" href="<?php echo esc_url( $film_celebrity_slider_watsapp_link ); ?>">
			                          <i class="fa fa-whatsapp"></i>
			                      </a>
			                  	<?php endif; ?>
			                  	<?php endif; ?>
						</div>
				<?php endif; ?>
			</div>
		<?php } ?>
	</div>
</section>

<?php endif; ?>