<{if $rating}>
	<{assign var="star_class" value="one"}>

	<{if $rating > 4}>
		<{assign var="star_class" value="five"}>
	<{elseif $rating > 3}>
		<{assign var="star_class" value="four"}>
	<{elseif $rating > 2}>
		<{assign var="star_class" value="three"}>
	<{elseif $rating > 1}>
		<{assign var="star_class" value="two"}>
	<{elseif $rating > 0}>
		<{assign var="star_class" value="one"}>
	<{/if}>

	<div class="rating <{$star_class}>-stars">
		<div class="star-rating"></div>
		<div class="star-bg"></div>
	</div>
<{/if}>