<?php 
  $slider_overlay = get_theme_mod('shopbiz_overlay_slider_color_control','');
  
  $shopbiz_slider_enable = get_theme_mod('shopbiz_slider_enable');
  $slider_post_one = array(get_theme_mod('slider_post_one'));
  $slider_post_two = array(get_theme_mod('slider_post_two'));
  $slider_post_three = array(get_theme_mod('slider_post_three'));
  if($shopbiz_slider_enable){
  ?>
<!--==================== ta-SLIDER ====================-->
<section class="ta-slider-warraper">
  <div id="ta-slider" class="owl-carousel">
	<!--Slider-one-->
	<?php
	if($slider_post_one){ ?>
	<?php
			$slider_query = new WP_Query( array( 'post__in' => $slider_post_one, 'ignore_sticky_posts' => true));
            if( $slider_query->have_posts() ){                
                while( $slider_query->have_posts() ){
                    $slider_query->the_post();		
     ?>
	<div class="item">
      <figure> 
	  <?php if( has_post_thumbnail() ){ the_post_thumbnail( 'img-responsive' ); } ?></figure>
      <div class="ta-slider-inner" style="background:<?php echo esc_html($slider_overlay);?>">
        <div class="container inner-table">
          <div class="inner-table-cell">
            <div class="slide-caption">
              <h1>
                <?php the_title(); ?>
              </h1>
              <div class="description">
               <?php the_content(); ?>
              </div>
			</div>
          </div>
        </div>
      </div>
    </div>
	<?php } } }?>
	<!--- Slider Two -->
	<?php
	if($slider_post_two){ ?>
	<?php
			$slider_query = new WP_Query( array( 'post__in' => $slider_post_two, 'ignore_sticky_posts' => true));
            if( $slider_query->have_posts() ){                
                while( $slider_query->have_posts() ){
                    $slider_query->the_post();		
     ?>
	<div class="item">
      <figure> 
	  <?php if( has_post_thumbnail() ){ the_post_thumbnail( 'img-responsive' ); } ?></figure>
      <div class="ta-slider-inner" style="background:<?php echo esc_html($slider_overlay);?>">
        <div class="container inner-table">
          <div class="inner-table-cell">
            <div class="slide-caption">
              <h1>
                <?php the_title(); ?>
              </h1>
              <div class="description">
                <?php the_content(); ?>
              </div>
			</div>
          </div>
        </div>
      </div>
    </div>
	<?php } } }?>
	
	<!-- Slider Three -->
	<?php
	if($slider_post_three){ ?>
	<?php
			$slider_query = new WP_Query( array( 'post__in' => $slider_post_three, 'ignore_sticky_posts' => true));
            if( $slider_query->have_posts() ){                
                while( $slider_query->have_posts() ){
                    $slider_query->the_post();		
     ?>
	<div class="item">
      <figure> 
	  <?php if( has_post_thumbnail() ){ the_post_thumbnail( 'img-responsive' ); } ?></figure>
      <div class="ta-slider-inner" style="background:<?php echo esc_html($slider_overlay);?>">
        <div class="container inner-table">
          <div class="inner-table-cell">
            <div class="slide-caption">
              <h1>
                <?php the_title(); ?>
              </h1>
              <div class="description">
                <?php the_content(); ?>
              </div>
			</div>
          </div>
        </div>
      </div>
    </div>
	<?php } } }?>
  </div>
</section>
<div class="clearfix"></div>
<?php } ?>