{#
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.
#}
{% block stylesheet %}
<style>
li ul li ul li p {
padding-left: 1em;
}
</style>
{% endblock %}
{% set Categories = repository('Eccube\\Entity\\Category').getList() %}
{% macro tree(Category) %}
{% from _self import tree %}
{% if Category.children|length > 4 %}
<a href="javascript:void(0);" class="js-spNavBtn spNavBtn">
<p>{{ Category.name }}</p>
<i class="fas fa-plus openBtn"></i>
<i class="fas fa-minus closeBtn"></i>
</a>
{% else %}
<a href="{{ url('product_list') }}?category_id={{ Category.id }}">
<p>{{ Category.name }}</p>
</a>
{% endif %}
{% if Category.children|length > 0 %}
<ul>
<li>
<a href="{{ url('product_list') }}?category_id={{ Category.id }}">
このカテゴリすべて
</a>
</li>
{% for ChildCategory in Category.children %}
{% if ChildCategory.id is not same as(149) %}
<li>
{{ tree(ChildCategory) }}
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% endmacro %}
{# @see https://github.com/bolt/bolt/pull/2388 #}
{% from _self import tree %}
<div class="ec-headerCategoryArea">
{#<div class="ec-headerCategoryArea__heading">#}
{# <p>{{ 'カテゴリ一覧'|trans }}</p>#}
{#</div>#}
<div class="ec-itemNav">
<ul class="ec-itemNav__nav">
{% for Category in Categories %}
<li>
{{ tree(Category) }}
</li>
{% endfor %}
<li>
<a href="https://shichiyo.co.jp/contact/?source=1" class="fs14">お問い合わせ</a>
</li>
<li>
<a href="{{url('faq')}}" class="fs14">FAQ</a>
</li>
<li>
<a href="https://fix.customer-support.shop/" class="fs14">修理受付</a>
</li>
<li>
<a href="https://shichiyo.co.jp/newtransaction/" class="fs14">新規お取引</a>
</li>
</ul>
</div>
</div>