vendor/shopware/storefront/Resources/views/storefront/component/review/review-item.html.twig line 1

Open in your IDE?
  1. {% block component_review_item %}
  2.     {% set reviewVerifcation = 0 %}
  3.     <div class="product-detail-review-item"
  4.          itemprop="review"
  5.          itemscope
  6.          itemtype="https://schema.org/Review">
  7.         {% block component_review_item_meta_published %}
  8.             <meta itemprop="datePublished" content="{{ review.createdAt|date }}">
  9.         {% endblock %}
  10.         {% block component_review_item_meta_title %}
  11.             <meta itemprop="name" content="{{ review.title }}">
  12.         {% endblock %}
  13.         {% block component_review_item_meta_author %}
  14.             <meta itemprop="author" content="hidden">
  15.         {% endblock %}
  16.         {% block component_review_item_info %}
  17.             <div class="row product-detail-review-item-info">
  18.                 {% block component_review_item_info_date %}
  19.                     <div class="col-12 product-detail-review-item-date">
  20.                         <p><small>{{ review.createdAt|date }}</small></p>
  21.                     </div>
  22.                 {% endblock %}
  23.                 {% block component_review_item_info_points %}
  24.                     <div class="col-md-auto product-detail-review-item-points">
  25.                         {% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
  26.                             points: review.points
  27.                         } %}
  28.                     </div>
  29.                 {% endblock %}
  30.                 {% block component_review_item_title %}
  31.                     <div class="col-md-auto product-detail-review-item-title">
  32.                         <p class="h5">
  33.                             {{ review.title }}
  34.                         </p>
  35.                     </div>
  36.                 {% endblock %}
  37.                 {% block component_review_item_info_verify %}
  38.                     <div class="col product-detail-review-item-verify">
  39.                         {% if reviewVerifcation == 1 %}
  40.                             <a data-toggle="tooltip"
  41.                                data-placement="bottom"
  42.                                title="{{ "detail.reviewVerifiedItemTooltip"|trans|striptags }}">
  43.                                 {% sw_icon 'checkmark-circle' style {
  44.                                     'color': 'primary',
  45.                                     'size': 'sm'
  46.                                 } %}
  47.                             </a>
  48.                         {% endif %}
  49.                     </div>
  50.                 {% endblock %}
  51.             </div>
  52.         {% endblock %}
  53.         {% block component_review_item_content %}
  54.             <p class="product-detail-review-item-content" itemprop="description">
  55.                 {{ review.content }}
  56.             </p>
  57.         {% endblock %}
  58.         {% block component_review_item_comment %}
  59.             {% if review.comment %}
  60.                 <div class="product-detail-review-item-comment">
  61.                     <blockquote class="blockquote">
  62.                         <footer class="blockquote-footer">
  63.                             {{ "detail.reviewCommentLabel"|trans|sw_sanitize }}{{ review.comment }}
  64.                         </footer>
  65.                     </blockquote>
  66.                 </div>
  67.             {% endif %}
  68.         {% endblock %}
  69.     </div>
  70. {% endblock %}