<?php
/*
 *	Contains client slider contents
 *
 *	@version 1.0
 *	@intensely 1.0
 */
?>
<?php
/*
 *	Enable / Disable clients logo sectio
 *
 *	@since intensely 1.0
 */
 $clients_logo_section	=	esc_html( get_theme_mod( 'intensely_clients_logo_enable_disable', '1' ) );
 if( $clients_logo_section ): ?>
	<section id="clients-brand">
	    <div class="container">
		    <div class="row">
		        <div class="col-md-12">
			        
				<!-- Start services -->
				<?php
					
					$clients_slider = get_theme_mod( 'intensely_clients_logo_option', array() );
					
					if( $clients_slider ){ ?>
			        
		          	<div class="clients-brand-area">
			            <ul class="clients-brand-slide">
				            
				            <?php
								/*
								 *	Start slide loop
								 */
								foreach ( $clients_slider as $clients_slide_item ) {
								
								/*
								 *	set slides variables
								 */
								$client_slide_image		=	wp_get_attachment_image_src( $clients_slide_item['intensley_cl_image'], 'full' );
								$client_slide_image_att	=	get_post_meta( $clients_slide_item['intensley_cl_image'], true );
				            ?>
				            
				              	<li class="col-md-3">
					                <div class="single-brand">
					                  <img src="<?php echo esc_url( $client_slide_image['0'] ); ?>" alt="<?php echo $client_slide_image_att; ?>">
					                </div>
								</li>
							
							<?php } ?>
							
			            </ul>
					</div>
					<?php } ?>
		        </div>
		    </div>
	    </div>
	</section>
<?php endif; ?>