src/Eccube/Resource/template/default/Block/new_item.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. {% set Products = CustomizeNewProduct() %}
  9.     <div class="ec-role">
  10.         <div class="ec-newItemRole">
  11.             <div class="ec-newItemRole__list">
  12.                 <div class="ec-newItemRole__listItem">
  13.                     <div class="ec-newItemRole__listItemHeading ec-secHeading--tandem">
  14.                         <span class="ec-secHeading__en">{{ 'お礼の品ご紹介'|trans }}</span>
  15.                         <span class="ec-secHeading__line"></span>
  16.                         <span class="ec-secHeading__ja">{{ 'RETURN GIFT'|trans }}</span>
  17.                         <a class="ec-inlineBtn--top" href="{{ url('product_list') }}">{{ 'more'|trans }}</a>
  18.                     </div>
  19.                 </div>
  20.                 {% if Products|length > 0 %}
  21.                     {% for Product in Products %}
  22.                         <div class="ec-newItemRole__listItem">
  23.                             <a href="{{ url('product_detail', {'id': Product.id}) }}">
  24.                                 <img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}">
  25.                                 <p class="ec-newItemRole__listItemTitle">{{ Product.name }}</p>
  26.                                 <p class="ec-newItemRole__listItemPrice">
  27.                                     {% if Product.hasProductClass %}
  28.                                         {% if Product.getPrice02Min == Product.getPrice02Max %}
  29.                                             <span>寄付金額</span>{{ Product.getPrice02IncTaxMin|number_format }}円
  30.                                         {% else %}
  31.                                             <span>寄付金額</span>{{ Product.getPrice02IncTaxMin|number_format }} ~ {{ Product.getPrice02IncTaxMax|number_format }}円
  32.                                         {% endif %}
  33.                                     {% else %}
  34.                                         <span>寄付金額</span>{{ Product.getPrice02IncTaxMin|number_format }}円
  35.                                     {% endif %}
  36.                                 </p>
  37.                             </a>
  38.                         </div>
  39.                     {% endfor %}
  40.                 {% endif %}
  41.             </div>
  42.         </div>
  43.     </div>