<?php
/**
 *
 * @package theme-eye-Premium
 */
if(get_theme_mod('lz_fitness_testimonials_section_disable') != 'on' ){ ?> 
  <section id="testimonials-section" class="ht-section lz-testimonials-section"> 
    <div class="lightbox">
      <div class="col-md-10 col-md-offset-1">
        <?php
        $lz_fitness_testimonials_title = get_theme_mod('lz_fitness_testimonials_title', 'What other said about us'); 
        //$lz_fitness_testimonials_sub_title  = get_theme_mod('lz_fitness_testimonials_sub_title ', 'Our teaching staff in Primary School are all well qualified early years teachers as are our assistants.');
        $lz_fitness_testimonials_sub_text = get_theme_mod('lz_fitness_testimonials_sub_text', 'CLIENT’S TESTIMONIALS');
        ?>

        <div class="ht-section-title-tagline">
          <h2 class="ht-section-subtagline"><?php if(!empty($lz_fitness_testimonials_title)) { echo esc_html($lz_fitness_testimonials_title);}?></h2>
          <div class="ht-section-title lz-testimonials-heading">
            <?php echo $lz_fitness_testimonials_sub_text;?>
          </div>
        </div>


        <div class="testimonials-member-wrap">
          <!-- Carousel slider -->
            <div class="carousel slide" data-ride="carousel" id="quote-carousel"> 
              <?php
              $showStatic = true;
              $testimonialTxt = '';
              $counter = -1 ;
              ?>
              <!-- Bottom Carousel Indicators -->
              <ol class="carousel-indicators">
                <?php
                for( $i = 1; $i < 10; $i++ ){
                  $lz_fitness_testimonials_page_id = get_theme_mod('lz_fitness_testimonials_page'.$i); 
                  $lz_fitness_testimonials_page_icon = get_theme_mod('lz_fitness_testimonials_page_icon'.$i);
                  if(get_post_status($lz_fitness_testimonials_page_id) != 'publish'){
                    continue;
                  }else{
                    ++$counter;
                  }
                  if($lz_fitness_testimonials_page_id){
                    $showStatic = false;
                    $testimonialTxt .= testimonialShortCode($lz_fitness_testimonials_page_id, $isCustomizer=false, $counter);
                  }
                  $lz_fitness_image = wp_get_attachment_image_src(get_post_meta( $lz_fitness_testimonials_page_id, '_thumbnail_id', true ),'total-team-thumb');
                  if($showStatic == false && !empty($lz_fitness_image[0])){
                    ?>
                    <li data-target="#quote-carousel" data-slide-to="<?php echo $counter;?>" <?php if($i==1){?>class="active"<?php }?>></li>
                  <?php } 
                  if(empty($lz_fitness_image[0]) && !empty($lz_fitness_testimonials_page_id)){?>
                    <li data-target="#quote-carousel" data-slide-to="<?php echo $counter;?>" <?php if($i==0){?>class="active"<?php }?>><img class="img-responsive " src="<?php echo get_template_directory_uri(); ?>/images/team-thumb.png" alt="">
                    </li>
                  <?php }
                }

                if($showStatic === true){
                  for($i=0;$i<=2;$i++){?>
                    <li data-target="#quote-carousel" data-slide-to="<?php echo $i;?>" <?php if($i==0){?>class="active"<?php }?>><img class="img-responsive " src="<?php //echo get_template_directory_uri(); ?>/images/team-thumb.png" alt="">
                    </li>
                  <?php }
                }
                ?>
              </ol>
              <!-- Carousel items -->
              <!-- Carousel Slides / Quotes -->
              <div class="carousel-inner">
                <?php 
                echo $testimonialTxt;
                if($showStatic == true){
                  for($i=0;$i<=2;$i++){?>
                    <div class="item <?php if($i==0){?>active<?php }?>"> 
                     <div class="row">

                      <div class="col-md-4 col-sm-4">
                       <div class="col-sm-12 testimonial-content-box">
                        <div class="testimonial-content">                                
                          <p>There are many variations of passages of Lorem Ipsum available majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use passage Lorem Ipsum.</p> 
                        </div> 
                      <div class="col-md-3 col-sm-3 test-img padding0">
                        <img class="img-responsive" src="<?php echo get_template_directory_uri(); ?>/images/blog.jpg" alt="">
                      </div>
                       <div class="col-md-9 col-sm-9 padding5">
                        <h6 class="secondry-text">Jhohn Smit </h6> 
                         <div class="text-designation">Fashion Clothes Client</div>
                      </div>
                    </div>
                  </div>



                    <div class="col-md-4 col-sm-4">
                       <div class="col-sm-12 testimonial-content-box">
                        <div class="testimonial-content">                                
                          <p>There are many variations of passages of Lorem Ipsum available majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use passage Lorem Ipsum.</p> 
                        </div> 
                      <div class="col-md-3 col-sm-3 test-img padding0">
                        <img class="img-responsive" src="<?php echo get_template_directory_uri(); ?>/images/blog.jpg" alt="">
                      </div>
                       <div class="col-md-9 col-sm-9 padding5">
                        <h6 class="secondry-text">Jhohn Smit </h6> 
                         <div class="text-designation">Fashion Clothes Client</div>
                      </div>
                    </div>
                  </div>

                  <div class="col-md-4 col-sm-4">
                       <div class="col-sm-12 testimonial-content-box">
                        <div class="testimonial-content">                                
                          <p>There are many variations of passages of Lorem Ipsum available majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use passage Lorem Ipsum.</p> 
                        </div> 
                      <div class="col-md-3 col-sm-3 test-img padding0">
                        <img class="img-responsive" src="<?php echo get_template_directory_uri(); ?>/images/blog.jpg" alt="">
                      </div>
                       <div class="col-md-9 col-sm-9 padding5">
                        <h6 class="secondry-text">Jhohn Smit </h6> 
                         <div class="text-designation">Fashion Clothes Client</div>
                      </div>
                    </div>
                  </div>

              </div>
            </div>

          <?php }
        }
        ?>
      </div>
                <!-- <a data-slide="prev" href="#quote-carousel" class="left carousel-control"><i class="fa fa-chevron-left"></i></a>
                 <a data-slide="next" href="#quote-carousel" class="right carousel-control"><i class="fa fa-chevron-right"></i></a>-->

               </div>

               <div class="clearfix"></div>
             <!-- Carousel items -->

           </div>
           <div class="clearfix"></div>
         </div>
         <div class="clearfix"></div>

       </div>
 <div class="clearfix"></div>
     </section>

   <?php }

