app/template/default/Product/list.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% set body_class = 'product_page' %}
  10. {# style #}
  11. {% block stylesheet %}
  12.     <link rel="stylesheet" href="{{ asset('assets/css/product-list.css') }}">
  13. {% endblock %}
  14. {% block javascript %}{% endblock %}
  15. {% block main %}
  16.     <body>
  17.         <div
  18.             class="contact_wrapper body-section-ui">
  19.             <!-- breadcrumb -->
  20.             <nav class="breadcrumb" aria-label="パンくずリスト">
  21.                 <a class="breadcrumb__item" href="{{ url('homepage') }}">ホーム</a>
  22.                 <img class="breadcrumb__separator" src="{{ asset('assets/img/default/icons/icon-breadcrumb-separator.svg') }}" alt="" width="12" height="12"/>
  23.                 <span class="breadcrumb__item breadcrumb__item--current">備長炭一覧</span>
  24.             </nav>
  25.             <div
  26.                 class="container-1200">
  27.                 <!-- content -->
  28.                 <div class="product-list-wrapper">
  29.                     <div class="product-list" id="product-list">
  30.                     {% for Product in pagination %}
  31.                         <a href="{{ url('product_detail', {'id': Product.id}) }}" class="product-card">
  32.                             <div class="product-card__link">
  33.                                 <div class="product-card__image">
  34.                                 <img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}" alt="{{ Product.name }}" />
  35.                                 </div>
  36.                                 <div class="product-card__info">
  37.                                 <div class="product-card__badge">{{ Product.name }}</div>
  38.                                 <div class="product-card__details">
  39.                                     <p class="product-card__price">
  40.                                     <span class="product-card__price-main">
  41.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  42.                                             {{ Product.getPrice02IncTaxMin|price }}
  43.                                         {% else %}
  44.                                             {{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}
  45.                                         {% endif %}
  46.                                     </span>
  47.                                     <span class="product-card__price-tax">(税抜 {{ Product.getPrice02Min|price }}円)</span>
  48.                                     </p>
  49.                                     <img class="product-card__arrow" src="{{ asset('assets/img/default/icons/icon-product-arrow.svg') }}" alt="" width="24" height="24" />
  50.                                 </div>
  51.                                 </div>
  52.                             </div>
  53.                         </a>
  54.                     {% endfor %}
  55.                     </div>
  56.                 <!-- pagination -->
  57.                 {% include "pager.twig" with {'pages': pagination.paginationData} %}
  58.                 </div>
  59.             </div>
  60.         </div>
  61.     </body>
  62. {% endblock %}