Skip to content

Commit

Permalink
#3515 - review ID's
Browse files Browse the repository at this point in the history
  • Loading branch information
abrookbanks committed Mar 14, 2024
1 parent f0b8ad5 commit 75ec441
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions skins/foundation/templates/element.product.review_score.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
* License: GPL-3.0 https://www.gnu.org/licenses/quick-guide-gplv3.html
*}
{if $PRODUCT.review_score && $CTRL_REVIEW}
<div>
<div id="review_rating">
{for $i = 1; $i <= 5; $i++}
{if $PRODUCT.review_score >= $i}
<img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star.png" alt="">
<img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star.png" alt="" id="review_rating_{$i}">
{elseif $PRODUCT.review_score > ($i - 1) && $PRODUCT.review_score < $i}
<img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star_half.png" alt="">
<img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star_half.png" alt="" id="review_rating_{$i}">
{else}
<img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star_off.png" alt="">
<img src="{$STORE_URL}/skins/{$SKIN_FOLDER}/images/star_off.png" alt="" id="review_rating_{$i}">
{/if}
{/for}
</div>
<div>{$LANG_REVIEW_INFO}</div>
<div id="review_rating_info">{$LANG_REVIEW_INFO}</div>
{/if}

0 comments on commit 75ec441

Please sign in to comment.