<div class="elementpress-testimonial-slider <?php echo esc_attr($wrapper_class); ?>" <?php echo \ElementPress\Utils::render($wrapper_data); ?>>
<?php
	// start foreach loop
//echo '<pre>testimonials: '.print_r($testimonials,true).'</pre><br>';exit();
	foreach ($testimonials as $testimonial):

?>
	<div class="elemntskit-testimonial-item">
		<div class="elementpress-single-testimonial-slider">
			<div class="row">
				<div class="col-lg-6 elementkit-testimonial-col">
					<div class="elementpress-commentor-content">
						<?php if (isset($testimonial['client_logo']) && sizeof($testimonial['client_logo']) > 0) {
							$clientLogo = isset($testimonial['client_logo']['url']) ? $testimonial['client_logo']['url'] : '';
						?>
							<div class="elementpress-client_logo">
								<?php if(isset($clientLogo) && $clientLogo !=null):?>
								<img src="<?php echo esc_url($clientLogo); ?>" alt="<?php esc_attr_e("Client Logo","agmycoo");?>">
								<?php endif; ?>
							</div>
						<?php
							} ?>
						<?php if ( isset($testimonial['review']) && !empty($testimonial['review'])) : ?>
							<p><?php echo isset($testimonial['review']) ? esc_html($testimonial['review']) : ''; ?></p>
						<?php endif;  ?>
						<?php if ( 'yes' == $epress_testimonial_title_separetor ): ?>
							<span class="elementpress-border-hr"></span>
						<?php endif; ?>
						<span class="elementpress-profile-info">
							<strong class="elementpress-author-name"><?php echo isset($testimonial['client_name']) ? esc_html($testimonial['client_name']) : ''; ?></strong>
							<span class="elementpress-author-des"><?php echo isset($testimonial['designation']) ? esc_html($testimonial['designation']) : ''; ?></span>
						</span>
					</div>
				</div>
				<div class="col-lg-6 elementkit-testimonial-col">
					<div class="elementpress-profile-image-card">
						<?php if (isset($testimonial['client_photo']) &&  sizeof($testimonial['client_photo']) > 0) {
								$clientPhoto = isset($testimonial['client_photo']['url']) ? $testimonial['client_photo']['url'] : '';
								if(isset($clientPhoto) && $clientPhoto !=null):?>
								<img src="<?php echo esc_url($clientPhoto); ?>" alt="<?php esc_attr_e("Client Image","agmycoo");?>">
						<?php endif;} ?>
						<?php if( isset($epress_testimonial_enable_social) && $epress_testimonial_enable_social == 'yes'):?>
							<div class="elementpress-hover-area">
								<ul class="social-list medium circle text-colored">
									<?php if(isset($testimonial['facebook_url']) && strlen($testimonial['facebook_url']) > 5){?>
									<li><a href="<?php esc_attr_e($testimonial['facebook_url']);?>" class="facebook"><i class="fa fa-facebook"></i></a></li>
									<?php }?>
									<?php if(isset($testimonial['twitter_url']) && strlen($testimonial['twitter_url']) > 5){?>
									<li><a href="<?php esc_attr_e($testimonial['twitter_url']);?>" class="twitter"><i class="fa fa-twitter"></i></a></li>
									<?php }?>
									<?php if(isset($testimonial['linkedin_url']) && strlen($testimonial['linkedin_url']) > 5){?>
									<li><a href="<?php esc_attr_e($testimonial['linkedin_url']);?>" class="linkedin"><i class="fa fa-linkedin"></i></a></li>
									<?php }?>
									<?php if(isset($testimonial['youtube_url']) && strlen($testimonial['youtube_url']) > 5){?>
									<li><a href="<?php esc_attr_e($testimonial['youtube_url']);?>" class="youtube"><i class="fa fa-youtube"></i></a></li>
									<?php }?>

								</ul>
							</div>
						<?php endif;?>
					</div>
				</div>
			</div>
		</div>
	</div>
<?php endforeach; // end foreach loop ?>
</div>