{#
This file is part of EC-CUBE
Copyright(c) Takashi Otaki All Rights Reserved.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% if ItemRanking is not empty %}
<section class="ranking">
<div class="container">
{% if Config.item_ranking_title != "" %}
<h2 class="section-title">
<span class="_sub">
RANKING
</span>
<span class="_main">
{{ Config.item_ranking_title }}
</span>
</h2>
{% endif %}
<div class="ranking__content">
<div class="ranking__list">
{% for item in ItemRanking %}
<a class="ranking__item card-rank" href="{{ url('product_detail', {'id': item.id}) }}">
{% if Config.item_ranking_disp_title == 1 %}
<div class="card-rank__rank">
<span class="num">
{{ loop.index }}
</span>
位
</div>
{% endif %}
{% for image in item.ProductImage %}
{% if loop.first %}
<div class="card-rank__img">
<img src="{{ asset(image, 'save_image') }}">
</div>
{% endif %}
{% else %}
<div class="card-rank__img">
<img src="{{ asset(''|no_image_product, 'save_image') }}"/>
</div>
{%endfor%}
{% if Config.item_ranking_disp_title == 1 %}
<h3 class="card-rank__title">
{{ item.name }}
</h3>
{% endif %}
{% if item.author_name %}
<p class="card-rank__author">
著者:{{ item.author_name|raw|nl2br }}
</p>
{% endif %}
</a>
{% endfor %}
</div>
</div>
</div>
</section>
{% endif %}