{#
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.
#}
{% set Categories = repository('Eccube\\Entity\\Category').getList() %}
{% macro tree(Category) %}
{% from _self import tree %}
{% if Category.id == 7 %}
<a href="/store/yamashita" class="ym-category_y">
<span>{{ Category.name }}</span>
</a>
{% elseif Category.id == 8 %}
<a href="/store/maria" class="ym-category_m">
<span>{{ Category.name }}</span>
</a>
{% else %}
<a href="{{ url('product_list') }}?category_id={{ Category.id }}">
{{ Category.name }}
</a>
{% endif %}
{% if Category.children|length > 0 %}
<ul>
{% for ChildCategory in Category.children %}
<li>
{{ tree(ChildCategory) }}
</li>
{% 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><a href="{{ url('homepage') }}">{{ BaseInfo.shop_name }}</a></p>
</div>
<div class="ec-itemNav">
<ul class="ec-itemNav__nav">
{% for Category in Categories %}
<li class="ym-category_parent">
{{ tree(Category) }}
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="ym-drawerInfo">
<ul class="ym-drawerInfo_list">
<li class="ym-drawerInfo__link">
<a href="/guide">{{ 'ご利用ガイド'|trans }}</a>
</li>
<li class="ym-drawerInfo__link">
<a href="/guide#delivery">{{ '送料について(全国一律550円)'|trans }}</a>
</li>
<li class="ym-drawerInfo__link">
<a href="/store/faq">{{ 'よくある質問'|trans }}</a>
</li>
<li class="ym-drawerInfo__link">
<a href="{{ url('contact') }}">{{ 'お問い合わせ'|trans }}</a>
</li>
<li class="ym-drawerInfo__link">
<a href="{{ url('help_tradelaw') }}">{{ '特定商取引法に基づく表記'|trans }}</a>
</li>
<li class="ym-drawerInfo__link">
<a href="{{ url('help_privacy') }}">{{ '個人情報のお取扱いについて'|trans }}</a>
</li>
<li class="ym-drawerInfo__link">
<a href="{{ url('help_about') }}">{{ '会社概要'|trans }}</a>
</li>
</ul>
</div>