<?php

use Prodigy\Includes\Prodigy_Product_Comments;
use Prodigy\Includes\Helpers\Prodigy_Formatting;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

global $comment;
$rating = (int) get_comment_meta( $comment->comment_ID, Prodigy_Product_Comments::PRODIGY_RATING, true );

if ( $rating ) {
	echo wp_kses( pg_get_rating_html( $rating ), Prodigy_Formatting::get_allowed_html() );
}
