<?php
/**
 * The template for displaying all pages.
 * Template Name: client page 
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package dc
 */

get_header(); ?>

	<div id="primary" class="content-area">
	
	
	<div class="slider">
		<div class="container">
			<div class="row">
				<?php if( have_rows('client_slide_text') ): ?>
					<div id="contentSlider" class="col-md-12 owl-carousel owl-theme">
						<?php while( have_rows('client_slide_text') ): the_row();   

							// vars 
							$content = get_sub_field('text'); 

							?>
						<div class="item1">
							<h1> <?php echo $content; ?></h1>
						</div>
						<?php endwhile; ?>					
					</div>
				<?php endif; ?>
			</div>
		 </div>
	</div>  
	<section class="clientSec">
		<div class="container">
			<div class="row">
				<div class="col-md-12 clientText">
					<h2>Our <span>Clients</span></h2>	
				</div>
				<?php if( have_rows('client_image_main') ): ?>
					<?php while( have_rows('client_image_main') ): the_row();   

						// vars 
						$clientImg = get_sub_field('client_image'); 

						?>
					<div class="col-md-3">
						<div class="clientBox">
							<img src="<?php echo $clientImg; ?>" alt="img" />
						</div>
					</div>
					<?php endwhile; ?>	
				<?php endif; ?>
				
				 
			</div>  
		</div>
	</section>
	</div><!-- #primary -->
 
<?php get_footer(); ?>
