app/template/default/Block/etuna_item_ranking.twig line 1

Open in your IDE?
  1. {#This file is part of EC-CUBE#}
  2. {#Copyright(c) Takashi Otaki All Rights Reserved.#}
  3. {#For the full copyright and license information, please view the LICENSE#}
  4. {#file that was distributed with this source code.#}
  5. {% if ItemRanking is not empty %}
  6. <div class="l-shopwrap">
  7.     <div class="p-contents">
  8.         <div class="flex p-contents_title">
  9.             <h2 class="p-mainitems-title u-mainitems-title">{{ Config.item_ranking_title }}</h2>
  10.             <p class="u-mainitems-title__en u-alignright baskerville">Sold Ranking</p>
  11.         </div>
  12.         
  13.         <div class="p-mainitems_wrap p-mainitems_wrap_ranking">
  14.             {% for item in ItemRanking %}
  15.             <div class="p-items p-items2">
  16.                 <a href="{{ url('product_detail', {'id': item.id}) }}">
  17.                     <div class="p-items-title">
  18.                         <p class="p-items-title__ja">{{ item.name }}</p>
  19.                         <p class="p-items-title__en">Kakiyama Select</p>
  20.                     </div>
  21.                     <div class="p-items__img">
  22.                         {% for image in item.ProductImage %}
  23.                         {% if loop.first %}
  24.                         <img src="{{ asset(image, 'save_image') }}" alt="{{ item.name }}">
  25.                         {% endif %}
  26.                         {% else %}
  27.                         <img src="{{ asset(''|no_image_product, 'save_image') }}" alt="{{ item.name }}">
  28.                         {% endfor %}
  29.                     </div>
  30.         
  31.                     {#{% if Config.item_ranking_disp_price == 1 %}#}
  32.                     {#<p class="price02_default">#}
  33.                     {#    {% if item.hasProductClass %}#}
  34.                     {#        {% if item.getPrice02Min == item.getPrice02Max %}#}
  35.                     {#            {{ item.getPrice02IncTaxMin|price }}#}
  36.                     {#        {% else %}#}
  37.                     {#            {{ item.getPrice02IncTaxMin|price }} ~ {{ item.getPrice02IncTaxMax|price }}#}
  38.                     {#        {% endif %}#}
  39.                     {#    {% else %}#}
  40.                     {#        {{ item.getPrice02IncTaxMin|price }}#}
  41.                     {#    {% endif %}#}
  42.                     {#</p>#}
  43.                     {#{% endif %}#}
  44.         
  45.                     {#{% if Config.item_ranking_disp_code == 1 %}#}
  46.                     {#<p>{{ item.code_min }}{% if item.code_min != item.code_max %} ~ {{ item.code_max }}{% endif %}</p>#}
  47.                     {#{% endif %}#}
  48.         
  49.                     {#{% if Config.item_ranking_disp_description_detail == 1 %}#}
  50.                     {#<p>{{ item.description_detail|raw|nl2br }}</p>#}
  51.                     {#{% endif %}#}
  52.                 </a>
  53.         
  54.                 {% if Config.item_ranking_disp_cat == 1 %}
  55.                 {% for ProductCategory in item.ProductCategories %}
  56.                 <p>
  57.                     {% for Category in ProductCategory.Category.path %}
  58.                     <a href="{{ url('product_list') }}?category_id={{ Category.id }}">{{ Category.name }}</a>
  59.                     {%- if loop.last == false %}<span>></span>{% endif -%}
  60.                     {% endfor %}
  61.                 </p>
  62.                 {% endfor %}
  63.                 {% endif %}
  64.             </div>
  65.             {% endfor %}
  66.         </div>
  67.     </div>
  68. </div>
  69. {% endif %}