<div class="elementpress-testimonial-slider" <?php echo \ElementPress\Utils::render($wrapper_data); ?>>
<?php
	foreach ($testimonials as $testimonial):
		
		
		?>
			
		<?php
		
		if (isset($testimonial['client_photo']) &&  sizeof($testimonial['client_photo']) > 0) {
			$clientPhoto = isset($testimonial['client_photo']['url']) ? $testimonial['client_photo']['url'] : '';  } ?>
		
	
			<div class="elementpress-testimonial_card" style="background-image: url(<?php esc_attr_e($clientPhoto );?>);">	
		
			
			
			<?php if ($epress_testimonial_rating_enable == 'yes') : ?>
					
					<ul class="elementpress-stars">
					<?php
					$reviewData = isset($testimonial['rating']) ? $testimonial['rating'] : 0;
					for($m = 1; $m <= 5; $m++){
						$iconStart = 'fa fa-star';
						if($reviewData >= $m){
							$iconStart = 'fa fa-star active';
						}
					?>
					<li><a href="#"><i class="<?php esc_attr_e( $iconStart );?>"></i></a></li>

					<?php }?>
				</ul>
				<?php endif; ?>
				
				<?php if ( isset($testimonial['review']) && !empty($testimonial['review'])) : ?>
					<p class="elementpress-commentor-coment"><em><?php echo isset($testimonial['review']) ? esc_html($testimonial['review']) : ''; ?></em></p>
				<?php endif;  ?>

				<?php if ( isset($testimonial['review_youtube_link']) && !empty($testimonial['review_youtube_link'])) : ?>
					<div class="elementpress-video-popup-content">
						<a href="<?php esc_attr_e($review_youtube_link);?>" class="video-popup"><i class="icon icon-play"></i></a>
					</div><!-- .elementpress-video-popup-content END -->
				<?php endif;  ?>

				<?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); ?>" class="elementpress-testimonial-client-logo" alt="<?php esc_attr_e("Client Logo", "elementpress");?>">
			<?php endif; ?>	
			</div>
				<?php	}?>

				<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 class="xs-overlay elementor-repeater-item-<?php echo esc_attr( $testimonial[ '_id' ] ); ?>"></div>
			</div><!-- .testimonial_card END -->
	<?php endforeach; ?>
</div>