modules/XC/CrispWhiteSkin/templates/web/customer/modules/XC/Reviews/average_rating/rating.twig line 1

Open in your IDE?
  1. {##
  2.  # Rating
  3.  #}
  4.  {% if this.isVisibleAverageRatingOnPage() %}
  5.  <div class="rating{% if this.isAllowedRateProduct() %} edit{% endif %}">
  6.      {% if this.isAllowedRateProduct() %}
  7.          {{ widget('\\XC\\Reviews\\View\\FormField\\Input\\Rating', fieldName='rating', rate=this.getAverageRating(), is_editable=this.isAllowedRateProduct(), max='5') }}
  8.      {% endif %}
  9.      {% if not this.isAllowedRateProduct() %}
  10.          {{ widget('\\XC\\Reviews\\View\\VoteBar', rate=this.getAverageRating(), max='5') }}
  11.      {% endif %}
  12.      {% if 'tab' != this.get('place') %}
  13.          <div class="rating-tooltip">
  14.              {{ widget_list('reviews.tooltip.rating') }}
  15.          </div>
  16.      {% endif %}
  17.  </div>
  18. {% endif %}