{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% block main %}
<div class="ec-searchnavRole">
<div class="ec-productRole">
<ol class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList">
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a itemprop="item" href="{{ url('homepage') }}">
<span itemprop="name">TOP</span>
</a>
<meta itemprop="position" content="1"/>
</li>
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a itemprop="item" href="{{ url('news_index') }}">
<span itemprop="name">お知らせ一覧</span>
</a>
<meta itemprop="position" content="2"/>
</li>
</ol>
</div>
{# <div class="ec-searchnavRole__infos">
<div class="ec-searchnavRole__counter">
{% if pagination.totalItemCount > 0 %}
{{ '<span class="ec-font-bold">%count%件</span><span>のニュースが見つかりました</span>'|trans({ '%count%': pagination.totalItemCount })|raw }}
{% else %}
<span>{{ 'まだニュースがありません'|trans }}</span>
{% endif %}
</div>
</div> #}
</div>
<div class="ec-role ec-newsRole">
{% if pagination.totalItemCount > 0 %}
{% for News in pagination %}
<div class="ec-newsRole__newsHeading ec-newsRole__newsListItem">
<div class="ec-newsRole__newsDate">
{{ News.publish_date|date("Y/m/d") }}
</div>
<div class="ec-newsRole__newsColumn">
{% if News.url %}
<a href="{{ News.url }}" {% if News.link_method == '1' %} target="_blank" {% endif %} class="ec-newsRole__newsTitle">
{% else %}
<a href="{{ url('news_detail', {'id': News.id}) }}" class="ec-newsRole__newsTitle">
{% endif %}
<h2 class="ec-newsRole__news-listTitle">{{ News.title }}</h2>
</a>
</div>
</div>
{% endfor %}
{% else %}
<div>{{ 'まだニュースはありません。'|trans }}</div>
{% endif %}
<div class="ec-pagerRole">
{% include "pager.twig" with {'pages': pagination.paginationData} %}
</div>
</div>
{% endblock %}