<?php 

/**
	* Layout Theme 6 Ajax
	* @version     1.0.0
**/
?>
<div id="<?php echo esc_attr( 'tab_'. str_replace( '%', '', $target ) ); ?>" class="woo-tab-container-slider responsive-slider" data-append=".resp-slider-container" data-row="<?php echo esc_attr( $item_row ); ?>" data-lg="<?php echo esc_attr( $columns ); ?>" data-md="<?php echo esc_attr( $columns1 ); ?>" data-sm="<?php echo esc_attr( $columns2 ); ?>" data-xs="<?php echo esc_attr( $columns3 ); ?>" data-mobile="<?php echo esc_attr( $columns4 ); ?>" data-speed="<?php echo esc_attr( $speed ); ?>" data-scroll="<?php echo esc_attr( $scroll ); ?>" data-interval="<?php echo esc_attr( $interval ); ?>"  data-autoplay="<?php echo esc_attr( $autoplay ); ?>">
	<div class="resp-slider-container">
		<div class="slider responsive">
		<?php 							
			while($list->have_posts()): $list->the_post();
				wc_get_template_part( 'content', 'product' );
			endwhile; wp_reset_postdata();
		?>
		</div>
	</div>
</div>
<!-- Brand -->
<?php if( count( $x_array ) > 0 ) : ?>
	<div id="<?php echo esc_attr( 'brand_' . str_replace( '%', '', $target ) ); ?>" class="responsive-slider banner-slider loading" data-append=".responsive-slider" data-lg="4" data-md="2" data-sm="3" data-xs="2" data-mobile="1" data-arrow="false" data-fade="false">
		<div class="slider responsive">
			<?php 
				$x_array = array_unique( explode( ',', $z_array ) );
				foreach( $x_array as $key => $cat ) {
				if( $key > 4 ){
					break;
				}
					$thumbnail_id 	= absint( get_term_meta( intval( $cat ), 'thumbnail_bid', true ) );
					$thumb = wp_get_attachment_image( $thumbnail_id, array(150, 104) );
					$thubnail = ( $thumb != '' ) ? $thumb : '<img src="http://placehold.it/170x90" alt=""/>';
			?>
			<div class="item-brand">
				<a href="<?php echo get_term_link( intval( $cat ), 'product_brand' ); ?>"><?php echo $thubnail ?></a>
			</div>
			<?php
				}
			?>
		</div>
	</div>
<?php endif; ?>