<?php
/**
 *
 * @package LZ Fitness Premium
 */
?>


 <?php if(get_theme_mod('logofaq_section_disable') != 'on' ){ ?> 
 <section id="logofaq-page">	
<div class="container">

<div class="row row-eq-height">

<?php
/**
 *
 * @package theme-eye-Premium
 */
if(get_theme_mod('logo_section_disable') != 'on' ){ ?> 
  <section id="logo-section" class="ht-section lz-logo-section col-md-6 wow fadeInLeft"> 

    <div class="inside-full-height">

    	 <?php
            $logo_title = get_theme_mod('logo_title', 'Honors & Rewards'); 
           $logo_subtitle = get_theme_mod('logo_subtitle', 'LEGAL PRACTICE AREAS'); 
        ?>
       <div class="col-md-12">
              <div class="ht-section-title-tagline">
                  <?php if($logo_subtitle || $logo_title){ ?>
              		<div class="lz-logo-subheading"><?php echo !empty($logo_subtitle)?$logo_subtitle:''; ?></div>
                  <h2 class="ht-section-title lz-logo-heading">
                  <?php if(!empty($logo_title)) { echo ($logo_title);}?>
                  </h2>
                  <?php } ?> 

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

        <div class="logo-member-wrap">
          <!-- Carousel slider -->
            <div class="carousel slide" data-ride="carousel" id="quote-carousel"> 
          <div class="clearfix"></div>
              <?php
              $showStatic = true;
              $logoTxt = '';
              $counter = -1 ;
              $testcount = 0;
              ?>
              <!-- Bottom Carousel Indicators -->
              <ol class="carousel-indicators">
                <?php
                for( $i = 1; $i < 10; $i++ ){
                  $logo_page_id = get_theme_mod('logo_page'.$i); 
                  $logo_page_icon = get_theme_mod('logo_page_icon'.$i);
                  if(get_post_status($logo_page_id) != 'publish'){
                    continue;
                  }else{
                    ++$counter;
                  }
                  if($logo_page_id){
                    $showStatic = false;
                    $logoTxt .= logoShortCode($logo_page_id, $isCustomizer=false, $counter);
                  }
                  $lz_fitness_image = wp_get_attachment_image_src(get_post_meta( $logo_page_id, '_thumbnail_id', true ),'total-team-thumb');
                  if($showStatic == false && !empty($lz_fitness_image[0]) && ( $counter%3 == 0 ) ){
                    ?>
                    <li data-target="#quote-carousel" data-slide-to="<?php echo $testcount;?>" <?php if($i==1){?>class="active"<?php }?>></li>
                  <?php
                  $testcount ++; } 
                  // if(empty($lz_fitness_image[0]) && !empty($testimonialals_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<=1;$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/nothumb-related.png" alt="">
                    </li>
                  <?php }
                }
                ?>
              </ol>
              <!-- Carousel items -->
              <!-- Carousel Slides / Quotes -->
              <div class="carousel-inner">
                <?php 
                echo $logoTxt;
                if($showStatic == true){
                  for($i=0;$i<=1;$i++){?>
                    <div class="item <?php if($i==0){?>active<?php }?>"> 
                     <div class="row">

                       <div class="col-md-4 col-sm-4">
	                       <div class="logo-content-box">
	                           <div class="team-thumb">
	                              <img class="img-responsive" src="<?php echo get_template_directory_uri(); ?>/images/lawlogo.png" alt="">
	                            </div>
	                     	</div>
                   		 </div>
	                    <div class="col-md-4 col-sm-4">
	                       <div class="logo-content-box">
	                           <div class="team-thumb">
	                              <img class="img-responsive" src="<?php echo get_template_directory_uri(); ?>/images/lawlogo.png" alt="">
	                            </div>
	                      </div>
	                    </div>
	                    <div class="col-md-4 col-sm-4">
	                       <div class="logo-content-box">
	                           <div class="team-thumb">
	                              <img class="img-responsive" src="<?php echo get_template_directory_uri(); ?>/images/lawlogo.png" alt="">
	                            </div>
	                     	</div>
                   		 </div>

                </div>
              </div>

            <?php }
          }
          ?>
        </div>

               </div>

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

           </div>
 <div class="clearfix"></div>
 </div>
     </section> 
   <?php } ?> 





 <?php if(get_theme_mod('faq_section_disable') != 'on' ){ ?> 
<section id="faq-section" class="ht-section lz-faq-teachers-section col-md-6 wow fadeInRight">
	<div class="inside-full-height">
		<div class="ht-section-title-tagline">
			<?php
				$faq_section_title = get_theme_mod('faq_section_title', 'FAQS');
				$faq_section_subtitle = get_theme_mod('faq_section_subtitle', 'LEGAL PRACTICE AREAS');

				if($faq_section_subtitle){ ?>
				<div class="faq-subheading"><?php echo ($faq_section_subtitle); ?></div>
			<?php } 
				if($faq_section_title){ ?>
				<h2 class="ht-section-title faq-heading"><?php echo ($faq_section_title); ?></h2>
			<?php } 

      
			?>
		</div>
		<div class="col-md-12 padding0">
			<div role="tabpanel" class="tab-pane" id="FAQ">
				<?php echo faqShortcode(1);?>  
				<div class="clearfix"></div>
			</div>
			<div class="clearfix"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<div class="clearfix"></div>
</section>
<div class="clearfix"></div>
<!--tab script-->
<script>
	$(".nav-tabs a").click(function() {
		var position = $(this).parent().position();
		var width = $(this).parent().width();
		$(".slider").css({"left":+ position.left,"width":width});
	});
	var actWidth = $(".nav-tabs .active").width();
	var actPosition = $(".nav-tabs .active").position();
	$(".slider").css({"left":+ actPosition.left,"width": actWidth});
</script>
<!--end tab script-->
<?php  }?>


<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
</section>
<?php  }?>
