<?php
/**
 * @var $full
 * @var $half
 */
?>

<div class="wpj-star-rating-static">

	<?php for ( $i = 0; $i < $full; $i++ ) { ?>

		<img src="<?php echo get_template_directory_uri(); ?>/assets/images/star/star-full-full.svg" height="20" width="20" alt="" />

	<?php }

	if ( $half ) {
		if ( is_rtl() ) { ?>

			<img src="<?php echo get_template_directory_uri(); ?>/assets/images/star/star-half-full.svg" height="20" width="20" alt="" />

		<?php } else { ?>

			<img src="<?php echo get_template_directory_uri(); ?>/assets/images/star/star-half-full.svg" height="20" width="20" alt="" />
		<?php }
	}

	for ( $i = $full + $half; $i < 5; $i++ ) { ?>

		<img src="<?php echo get_template_directory_uri(); ?>/assets/images/star/star-empty.svg" height="20" width="20" alt="" />

	<?php } ?>

</div>
