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

<?php 

$film_celebrity_industry_heroes_short_heading = get_theme_mod('film_celebrity_industry_heroes_short_heading');

$film_celebrity_industry_heroes_main_heading = get_theme_mod('film_celebrity_industry_heroes_main_heading');

$film_celebrity_industry_heroes_count = get_theme_mod('film_celebrity_industry_heroes_count');

?>

<section id="home_industry_heroes" class="py-5">
  <div class="container">
    <?php if ( ! empty( $film_celebrity_industry_heroes_short_heading ) ): ?>
      <h4 class="text-center wow fadeInDown" data-wow-duration="2s"><?php echo esc_html( $film_celebrity_industry_heroes_short_heading ); ?>
      </h4>
    <?php endif; ?>
    <?php if ( ! empty( $film_celebrity_industry_heroes_main_heading ) ): ?>
      <h3 class="text-center mb-4 wow fadeInDown" data-wow-duration="2s"><?php echo esc_html( $film_celebrity_industry_heroes_main_heading ); ?>
      </h3>
    <?php endif; ?>
    <div class="row">
      <?php for ($i=1; $i <= $film_celebrity_industry_heroes_count; $i++) {      
        $film_celebrity_industry_heroes_image = get_theme_mod('film_celebrity_industry_heroes_image'.$i);
        $film_celebrity_industry_heroes_name = get_theme_mod('film_celebrity_industry_heroes_name'.$i);
        $film_celebrity_industry_heroes_designation = get_theme_mod('film_celebrity_industry_heroes_designation'.$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="col-lg-3 col-md-6">
          <div class="heroes_main_box text-center wow fadeInUp" data-wow-duration="2s">
            <?php if ( ! empty( $film_celebrity_industry_heroes_image ) ) : ?>
              <img class="mb-4" src="<?php echo esc_url( $film_celebrity_industry_heroes_image ); ?>">
                <div class="social_media">
                      <?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; ?>  
                </div>
            <?php endif; ?>
            <div class="heroes_content_box text-center mb-4">
            <?php if ( ! empty( $film_celebrity_industry_heroes_name ) ) : ?>
              <h5 class="mb-1"><?php echo esc_html( $film_celebrity_industry_heroes_name ); ?></h5>
            <?php endif; ?>
           <?php if ( ! empty( $film_celebrity_industry_heroes_designation ) ) : ?>
              <p class="mb-0"><?php echo esc_html( $film_celebrity_industry_heroes_designation ); ?></p>
            <?php endif; ?>
          </div>
          </div>
        </div>
      <?php } ?>
    </div>
  </div>
</section>

<?php endif; ?>