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