<?php

	global $clients_logos_show;
	
	$clients = get_clients_carousel();

	if(count($clients) && (get_option('kolor_show_clients_carousel') != 'false' || $clients_logos_show == 1) && $clients_logos_show != -1):
		
		# Import Script
		wp_enqueue_script('kolor_ancarousel');
		
		$kolor_clients_carousel_timeout = get_option('kolor_clients_carousel_timeout');
?>
<!-- clients block -->
<div class="container">
	
	<div class="sixteen columns">
		<h2 class="title"><?php _e('Our Clients', TD); ?></h2>
		
		<!-- clients -->
		<ul class="partners_carousel clearfix" data-autoswitch="<?php echo $kolor_clients_carousel_timeout; ?>">
		<?php
		foreach($clients as $i => $entry):
			
			$url = $entry['link'];
			$logo_img = WPURL . $entry['logo_image']['th'];
		?>
		<li><a href="<?php echo $url ? $url : '#'; ?>"><img src="<?php echo $logo_img; ?>" alt="client_0<?php echo $i + 1; ?>" /></a></li>
		<?php
		endforeach;
		?>
		</ul>
		<!-- end: clients -->
		
	</div>

</div>
<!-- end: clients block -->
<?php
	endif; 
?>