vendor/shopware/storefront/Resources/views/storefront/page/product-detail/review/review-item.html.twig line 1

Open in your IDE?
  1. {% block page_product_detail_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 page_product_detail_review_item_meta_published %}
  8.             <meta itemprop="datePublished" content="{{ review.createdAt|date }}">
  9.         {% endblock %}
  10.         {% block page_product_detail_review_item_meta_title %}
  11.             <meta itemprop="name" content="{{ review.title }}">
  12.         {% endblock %}
  13.         {% block page_product_detail_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 page_product_detail_review_item_info %}
  19.             <div class="row product-detail-review-item-info">
  20.                 {% block page_product_detail_review_item_info_alert %}
  21.                     {% if review.status == false %}
  22.                         <div class="col-12 product-detail-review-item-hint">
  23.                             {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  24.                                 type: "info",
  25.                                 content: "detail.reviewNotPublicYetAlert"|trans|sw_sanitize
  26.                                 } %}
  27.                         </div>
  28.                     {% endif %}
  29.                 {% endblock %}
  30.                 {% block page_product_detail_review_item_info_date %}
  31.                     <div class="col-12 product-detail-review-item-date">
  32.                         <p><small>{{ review.createdAt|date }}</small></p>
  33.                     </div>
  34.                 {% endblock %}
  35.                 {% block page_product_detail_review_item_info_points %}
  36.                     <div class="col-md-auto product-detail-review-item-points">
  37.                         {% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
  38.                             points: review.points
  39.                         } %}
  40.                     </div>
  41.                 {% endblock %}
  42.                 {% block page_product_detail_review_item_title %}
  43.                     <div class="col-md-auto product-detail-review-item-title">
  44.                         <p class="h5">
  45.                             {{ review.title }}
  46.                         </p>
  47.                     </div>
  48.                 {% endblock %}
  49.                 {% block page_product_detail_review_item_info_verify %}
  50.                     <div class="col product-detail-review-item-verify">
  51.                         {% if reviewVerifcation == 1 %}
  52.                             <a {{ dataBsToggleAttr }}="tooltip"
  53.                                data-placement="bottom"
  54.                                title="{{ "detail.reviewVerifiedItemTooltip"|trans|striptags }}">
  55.                                 {% sw_icon 'checkmark-circle' style {
  56.                                     'color': 'primary',
  57.                                     'size': 'sm'
  58.                                 } %}
  59.                             </a>
  60.                         {% endif %}
  61.                     </div>
  62.                 {% endblock %}
  63.             </div>
  64.         {% endblock %}
  65.         {% block page_product_detail_review_item_content %}
  66.             <p class="product-detail-review-item-content" itemprop="description">
  67.                 {{ review.content }}
  68.             </p>
  69.         {% endblock %}
  70.         {% block page_product_detail_review_item_comment %}
  71.             {% if review.comment %}
  72.                 <div class="product-detail-review-item-comment">
  73.                     <blockquote class="blockquote">
  74.                         <footer class="blockquote-footer">
  75.                             {{ "detail.reviewCommentLabel"|trans|sw_sanitize }}{{ review.comment }}
  76.                         </footer>
  77.                     </blockquote>
  78.                 </div>
  79.             {% endif %}
  80.         {% endblock %}
  81.     </div>
  82. {% endblock %}