{#
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 javascript %}
{# <script type="text/javascript">
const sidebarSetting = () => {
const header = document.querySelector('header');
const headerHeight = header.clientHeight;
var sidebar = new StickySidebar('.sidebar-sticky', { // 追従させる要素
containerSelector: '.ec-layoutRole__contents', // 親要素
innerWrapperSelector: '.sidebar', // 追従させる要素のインナー要素
topSpacing: 0
});
}
window.addEventListener('resize', sidebarSetting);
window.addEventListener('load', sidebarSetting);
</script> #}
{% endblock %}
{% set Categories = repository('Eccube\\Entity\\Category').getList() %}
{% macro tree(Category) %}
{% from _self import tree %}
<a href="{{ url('product_list') }}?category_id={{ Category.id }}">
{{ Category.name }}
</a>
{% 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="sidebar">
<div class="sidebar_inner">
<p class="sidebar_lead">カテゴリから探す</p>
<ul class="">
{% for Category in Categories %}
<li>
{{ tree(Category) }}
</li>
{% endfor %}
</ul>
</div>
</div> #}
<div class="sidebar">
<div class="sidebar_inner">
<p class="sidebar_lead">カテゴリから探す</p>
<ul class="sidebar_list">
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">BP商材その他</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">BP商材その他</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">その他</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample01.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">電装その他</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">電装その他</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">電装その他</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample02.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">電装バルブ</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">電装バルブ</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">バルブ</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample03.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">電装ヒューズ</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">電装ヒューズ</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">ヒューズ</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample04.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">工具類その他</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">工具類その他</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">その他</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample05.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">整備商材その他</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">整備商材その他</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">その他</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample06.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">その他その他</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">その他その他</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">その他</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample01.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">その他部材</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">その他部材</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">部材</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample02.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">その他用品</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">その他用品</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">用品</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample03.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">タイヤ</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">タイヤ</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">夏タイヤ</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">スタッドレス</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">オールシーズン</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">スタッドレスホイルセット</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample04.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">タイヤ周辺機材</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">タイヤ周辺機材</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">貼り付けウエイト</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">袋ナット</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample05.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">電装品</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">電装品</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">ドラレコ</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">ETC</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample06.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">ワイパーブレード</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">ワイパーブレード</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">トーナメントワイパー</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">リヤ専用ワイパーブレード</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">デザインワイパーブレード</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">撥水フラットワイパーブレード</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">スノーワイパーブレード</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample01.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">ワイパー替えゴム</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">ワイパー替えゴム</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">TW替えゴム</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">TN替えゴム</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">デザイン替えゴム</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">AS替えゴム</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">MF替えゴム</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">MB替えゴム</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample02.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">エアコンケミカル</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">エアコンケミカル</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">ガス回収機</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">エアコン洗浄</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">車内洗浄</a>
</li>
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">その他</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample03.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">下廻りケミカル</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">下廻りケミカル</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">下廻り防錆剤</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample04.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">クーラントケミカル</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">クーラントケミカル</a>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample05.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">洗車ケミカル</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">洗車ケミカル</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">虫取り除去剤</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample06.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">シートクリーナー</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">シートクリーナー</a>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample01.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">フィルター</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">フィルター</a>
<ul class="sidebar_box_child">
<li class="sidebar_box_child_item">
<a href="" class="sidebar_box_link">エアコンフィルター</a>
</li>
</ul>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample02.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
<li class="sidebar_list_item">
<a href="" class="sidebar_list_target">その他</a>
<div class="sidebar_box">
<div class="sidebar_box_navi">
<a href="" class="sidebar_box_link">その他</a>
</div>
<picture class="sidebar_box_image">
<img src="{{ asset('assets/img/common/category/sample03.jpg', 'user_data') }}" alt="">
</picture>
</div>
</li>
</ul>
</div>
</div>