app/template/magamar/Block/category_nav_pc.twig line 1

Open in your IDE?
  1. {#
    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 %}
        <a href="{{ url('product_list') }}?category_id={{ Category.id }}">
            {{ Category.name }}
        </a>
    {% endmacro %}
    
    {# @see https://github.com/bolt/bolt/pull/2388 #}
    {% from _self import tree %}
    
    <div class="ec-categoryNaviRole">
        <div class="ec-categoryNaviHeader">
            <h2>カテゴリから探す</h2>
        </div>
        <div class="ec-itemNav">
            <ul class="ec-itemNav__nav">
                    <li>
                        <a href="{{ url('product_list') }}">すべて</a>
                        <i class="fa fa-angle-right"></i>
                    </li>
                {% for Category in Categories %}
                    <li>
                        {{ tree(Category) }}
                        <i class="fa fa-angle-right"></i>
                    </li>
                {% endfor %}
            </ul>
        </div>
    </div>