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