<?php
/**
 * Product rating
 *
 * This template can be overridden by copying it to yourtheme/smart-post-show-pro/templates/item/product-rating.php
 *
 * @package    Smart_Post_Show_Pro
 * @subpackage Smart_Post_Show_Pro/public
 */

?>
<div class="sp-pcp-product-rating woocommerce">
	<div class="woocommerce-product-rating">
		<div class="star-rating" title="<?php echo esc_attr__( 'Rated ', 'smart-post-show-pro' ) . esc_attr( $av_rating ) . esc_attr__( ' out of 5', 'smart-post-show-pro' ); ?>">
			<span style="width:<?php echo esc_attr( $average_rating . '%' ); ?>"></span>
		</div>
		<?php if ( $review_count && $pcp_show_product_review_count ) { ?>
			<span class="sp-pcp-review-count">(<?php echo esc_html( $review_count ); ?>)</span>
		<?php } ?>
	</div>
</div>
