<?php 
/**
 * Testimonial Style 4
 */
?>
<div class="pls-client swiper-slide">
	<div class="pls-client-wrap">
		<?php if( ! empty( $product_image ) ){ ?>
			<div class="pls-client-img">
				<?php echo ( $product_image ); ?>
				<?php if( $has_product ){ ?>
						<span class="pls-quickview-btn" data-id="<?php echo esc_attr( $product_id ); ?>"><?php esc_html_e( 'Quick View', 'modave-core' ); ?></span>
				<?php } ?>
			</div>
		<?php } ?>
		<div class="pls-client-data">
			<?php if( $rating > 0 ){ ?>
				<div class="pls-client-rating woocommerce"> 
					<div class="star-rating">
						<span style="width:<?php echo esc_html( $rating ); ?>%"></span>
					</div>
				</div>
			<?php }?>	
			<?php if( ! empty( $title ) ){ ?>
				<div class="pls-client-title"><?php echo esc_html( $title ); ?></div>
			<?php }?>
			<div class="pls-client-quote">
				<?php echo wp_kses_post( $quote ); ?>
			</div>
			<?php if( ! empty( $name ) ){ ?>
				<div class="pls-client-name"><?php echo esc_html( $name ); ?></div>
			<?php } ?>
			<?php if( ! empty( $caption ) ){ ?>
				<span class="pls-client-caption"><?php echo esc_html( $caption ); ?></span>
			<?php } ?>	
			<?php 
			if( $has_product ){ ?>
				<div class="pls-testimonial-product">
					<div class="pls-product-image">
						<a href="<?php echo esc_url( $product_link );?>">
							<?php echo $product_thumbnail;?>
						</a>
					</div>
					<div class="pls-product-info">
						<div class="product-title">
							<a href="<?php echo esc_url( $product_link ); ?>">
								<?php echo esc_html( $product_title ); ?>
							</a>
						</div>
						<div class="product-price">
							<?php echo $product_price; ?>
						</div>
					</div>
				</div>
			<?php }	?>
		</div>
	</div>
</div>