app/template/bravers/Block/review_block.twig line 1

Open in your IDE?
  1. {% if ProductReviews is defined %}
  2. <div class="topBlocks replyBlock">
  3.     <div class="titleBlock">
  4.         <div class="titleBlock__name">
  5.             <img class="titleBlock__name__icon" src="{{ asset('assets/img/top/review.svg') }}" alt="REVIEW" width="32" height="32" loading="lazy">
  6.             <h2 class="titleBlock__name__title">新着レビュー</h2>
  7.         </div>
  8.     </div>
  9.     <ul class="reply">
  10.         {% for ProductReview in ProductReviews %}
  11.             <li class="reply__list">
  12.                 <div class="reply__list__image">
  13.                     <div class="reply__list__image__block">
  14.                         <img src="{{ asset(ProductReview.Product.main_list_image|no_image_product, 'save_image') }}" alt="">
  15.                     </div>
  16.                 </div>
  17.                 <div class="reply__list__content">
  18.                     <p class="reply__list__date">
  19.                         {{ProductReview.create_date|date_day}}
  20.                     </p>
  21.                     <a class="reply__list__title" href="{{ url('product_detail', {'id': ProductReview.Product.id}) }}">
  22.                         {{ProductReview.Product.name}}
  23.                     </p>
  24.                     <p class="reply__list__detail">
  25.                         {{ ProductReview.comment|raw|nl2br }}
  26.                     </p>
  27.                 </div>
  28.             </li>
  29.         {% endfor %}
  30.     </ul>
  31.     <a href="{{ url('product_review') }}" class="more-btn reply__btn">
  32.         <span class="more-btn__text">詳しく見る</span>
  33.         <img class="arrow" src="{{ asset('assets/img/common/arrow-black.svg') }}" alt="詳しく見る" width="7.91" height="12.36" loading="lazy">
  34.     </a>
  35. </div>
  36. {% endif %}