<?php if ( true == get_theme_mod( 'podcast_streaming_slide_on_off', 'on' ) ) : ?>

<?php $podcast_streaming_slide_count = get_theme_mod('podcast_streaming_slide_count');
$podcast_streaming_top_twitter_link = get_theme_mod('podcast_streaming_top_twitter_link');
$podcast_streaming_top_linkdin_link = get_theme_mod('podcast_streaming_top_linkdin_link');
$podcast_streaming_top_youtube_link = get_theme_mod('podcast_streaming_top_youtube_link');
$podcast_streaming_top_facebook_link = get_theme_mod('podcast_streaming_top_facebook_link');
$podcast_streaming_top_instagram_link = get_theme_mod('podcast_streaming_top_instagram_link');
$podcast_streaming_slider_background_image = get_theme_mod('podcast_streaming_slider_background_image');
?>
<section id="home_slider" style="background-image: url('<?php echo esc_url( $podcast_streaming_slider_background_image ); ?>');">
	<div class="owl-carousel slider-box">
		<?php for ($i=1; $i <= $podcast_streaming_slide_count; $i++) {
			$podcast_streaming_slider_image_1 = get_theme_mod('podcast_streaming_slider_image_1'.$i);
			$podcast_streaming_slider_short_heading = get_theme_mod('podcast_streaming_slider_short_heading'.$i);
			$podcast_streaming_slider_main_heading = get_theme_mod('podcast_streaming_slider_main_heading'.$i);
			$podcast_streaming_slider_button_link = get_theme_mod('podcast_streaming_slider_button_link'.$i); 
			$podcast_streaming_slider_button_text = get_theme_mod('podcast_streaming_slider_button_text'.$i);
			?>
			<div class="container">
				<div class="slider_main_box">
					<div class="row">
						<div class="col-lg-8 col-md-7 align-self-center">
							<div class="slider_content_box wow fadeInDown" data-wow-duration="1s">
								<div class="slider_heading">
									<?php if ( ! empty( $podcast_streaming_slider_short_heading ) ) : ?>
										<h6><?php echo esc_html( $podcast_streaming_slider_short_heading ); ?></h6>
									<?php endif; ?>
									<?php if (! empty( $podcast_streaming_slider_main_heading ) ): ?>
										<h2><?php echo esc_html( $podcast_streaming_slider_main_heading ); ?></h2>
									<?php endif; ?>
									
									<div class="slider_button mt-4 mb-5">
										<?php if ( ! empty( $podcast_streaming_slider_button_link ) || ! empty( $podcast_streaming_slider_button_text ) ): ?>
											<a class="button1" href="<?php echo esc_url( $podcast_streaming_slider_button_link ); ?>"><?php echo esc_html( $podcast_streaming_slider_button_text ); ?></a>
										<?php endif; ?>
									</div>
								</div>
							</div>
						</div>
						<div class="col-lg-4 col-md-5 align-self-center">
							<div class="slider-image-main wow fadeInUp" data-wow-duration="2s">
								<?php if ( ! empty( $podcast_streaming_slider_image_1) ) : ?>
									<img src="<?php echo esc_url( $podcast_streaming_slider_image_1 ); ?>">
								<?php endif; ?>
							</div>
						</div>
					</div>
				</div>
			</div>
		<?php } ?>
	</div>
	<?php if ( ! empty( $podcast_streaming_top_twitter_link ) || ! empty( $podcast_streaming_top_linkdin_link ) || ! empty( $podcast_streaming_top_youtube_link ) || ! empty( $podcast_streaming_top_facebook_link ) || ! empty( $podcast_streaming_top_instagram_link ) ): ?>
		<div class="icons-media wow bounceIn">
			<?php esc_html_e('Follow Us - ','podcast-streaming') ?>
			<?php if ( ! empty( $podcast_streaming_top_twitter_link ) ): ?>
				<a href="<?php echo esc_url( $podcast_streaming_top_twitter_link ); ?>"><i class="fa fa-twitter me-2" aria-hidden="true"></i>
				</a>
			<?php endif; ?>
			<?php if ( ! empty( $podcast_streaming_top_linkdin_link ) ): ?>
				<a href="<?php echo esc_url( $podcast_streaming_top_linkdin_link ); ?>"><i class="fa fa-linkedin me-2" aria-hidden="true"></i>
				</a>
			<?php endif; ?>
			<?php if ( ! empty( $podcast_streaming_top_youtube_link ) ): ?>
				<a href="<?php echo esc_url( $podcast_streaming_top_youtube_link ); ?>"><i class="fa fa-youtube-play me-2" aria-hidden="true"></i>
				</a>
			<?php endif; ?>
			<?php if ( ! empty( $podcast_streaming_top_facebook_link ) ): ?>
				<a href="<?php echo esc_url( $podcast_streaming_top_facebook_link ); ?>"><i class="fa fa-facebook me-2" aria-hidden="true"></i>
				</a>
			<?php endif; ?>
			<?php if ( ! empty( $podcast_streaming_top_instagram_link ) ): ?>
				<a href="<?php echo esc_url( $podcast_streaming_top_instagram_link ); ?>"><i class="fa fa-instagram me-2" aria-hidden="true"></i>
				</a>
			<?php endif; ?>
		</div>
	<?php endif; ?>
</section>

<?php endif; ?>