app/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. <div class="ec-role">
  9.     <div class="ec-newItemRole">
  10.         <div class="ec-newItemRole__list">
  11.             <div class="ec-newItemRole__listItem">
  12.                 <div class="ec-newItemRole__listItemHeading ec-secHeading--tandem">
  13.                     <span class="ec-secHeading__en">{{ 'NEW ITEM'|trans }}</span>
  14.                     <span class="ec-secHeading__line"></span>
  15.                     <span class="ec-secHeading__ja">{{ '新着商品'|trans }}</span>
  16.                     <a class="ec-inlineBtn--top" href="{{ url('product_list') }}">{{ 'more'|trans }}</a>
  17.                 </div>
  18.             </div>
  19.             
  20.             {% for product in data %}
  21.                 <div class="ec-newItemRole__listItem">
  22.                 <a href="{{ url('product_detail', {'id': product.id}) }}">
  23.                     <img src="{{ asset(product.main_list_image|no_image_product, 'save_image') }}">
  24.                     <p class="ec-newItemRole__listItemTitle">{{ product.name }}</p>
  25.                     <p class="ec-newItemRole__listItemPrice">
  26.                         {% if product.hasproductClass %}
  27.                             {% if product.getPrice02Min == product.getPrice02Max %}
  28.                                 {{ product.getPrice02IncTaxMin|price }}
  29.                             {% else %}
  30.                                 {{ product.getPrice02IncTaxMin|price }} ~ {{ product.getPrice02IncTaxMax|price }}
  31.                             {% endif %}
  32.                         {% else %}
  33.                             {{ product.getPrice02IncTaxMin|price }}
  34.                         {% endif %}
  35.                     </p>
  36.                 </a>
  37.             </div>
  38.             {% endfor %}
  39.         </div>
  40.     </div>
  41. </div>