<?php ob_start(); 

$num = ( $num ) ? $num : 10;
$options = _WSH()->option();
$clients = sh_set( sh_set( $options, 'brand_or_client' ), 'brand_or_client' );
$slice = array_slice($clients, 0, $num); //printr($slice); ?>

			<div class="padding paralax" <?php if($bg) echo ' style="background-image:url('.wp_get_attachment_url($bg).')"' ?>  >
				<div class="container">
					<header class="header-section white wow fadeInDown" data-wow-duration="1.5s">
						<h2><?php echo balanceTags($title_client); ?></h2>
						<p><?php echo balanceTags($text); ?></p>
					</header> <!-- / .header-section -->

					<div class="clients-carousel white">
						
						<?php foreach( (array)$slice as $cl ): 

							if( sh_set($cl, 'tocopy') ) continue; ?>
						
							<div class="client">
								<a href="<?php echo esc_url(sh_set( $cl, 'link' )); ?>" title="<?php echo esc_attr(sh_set( $cl, 'title' )); ?>">
									<img src="<?php echo esc_url(sh_set( $cl, 'img' )); ?>" alt="<?php echo esc_attr(sh_set( $cl, 'title' )); ?>">
								</a>
							</div> <!-- / .client -->
						
						<?php endforeach; ?>

					</div>  <!-- / .clients-carousel -->
				</div>
			</div>

<?php return ob_get_clean();