custom/plugins/KayloBasicTheme/src/Resources/views/storefront/component/review/point.html.twig line 1

Open in your IDE?
  1. {% block component_review_point %}
  2.     {% if size is not defined %}
  3.         {% set size = 'xs' %}
  4.     {% endif %}
  5.     <span class="product-review-point">
  6.         {% if type == 'half' %}
  7.             <div class="point-container">
  8.                 <div class="point-rating point-partial-placeholder">
  9.                     {% sw_icon 'star' style { 'color': 'light', 'size': size, 'pack': 'solid' } %}
  10.                 </div>
  11.                 <div class="point-rating point-partial" style="clip-path: inset(0 {{ (1 - left) * 100 }}% 0 0)">
  12.                     {% sw_icon 'star' style { 'color': 'review', 'size': size, 'pack': 'solid' } %}
  13.                 </div>
  14.             </div>
  15.         {% elseif type == 'blank' %}
  16.             <div class="point-container">
  17.                 <div class="point-rating point-blank">
  18.                     {% sw_icon 'star' style { 'size': size, 'pack': 'solid' } %}
  19.                 </div>
  20.             </div>
  21.         {% else %}
  22.             <div class="point-container">
  23.                 <div class="point-rating point-full">
  24.                     {% sw_icon 'star' style { 'color': 'review', 'size': size, 'pack': 'solid' } %}
  25.                 </div>
  26.             </div>
  27.         {% endif %}
  28.     </span>
  29. {% endblock %}