app/template/akracing/Block/category_nav_sp.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.
    #}
    <div class="ec-headerCategoryArea">
        <div class="ec-itemNav">
            <ul class="ec-itemNav__nav">
                        <li class="home"><a href="{{ url('homepage') }}">ホーム<i class="fas fa-chevron-right"></i></a></li>
                        <li><a href="{{ url('homepage') }}news/">ニュース<i class="fas fa-chevron-right"></i></a></li>
                        <li><a href="{{ url('homepage') }}products/list">ラインナップ<i class="fas fa-chevron-right"></i></a></li>
                        <li><a href="{{ url('homepage') }}case">導入事例<i class="fas fa-chevron-right"></i></a></li>
                        <li><a href="https://my.ebook5.net/akracing/akracing/" target="_blank">製品カタログ<i class="fas fa-chevron-right"></i></a></li>
                        <li><a href="{{ url('homepage') }}gallery">ムービー<i class="fas fa-chevron-right"></i></a></li>
                        <li><a href="{{ url('homepage') }}support">サポート<i class="fas fa-chevron-right"></i></a></li>
                        <li><a href="{{ url('homepage') }}shop">販売店<i class="fas fa-chevron-right"></i></a></li>
                        {# <li><a href="{{ url('homepage') }}contact">CONTACT<i class="fas fa-chevron-right"></i></a></li> #}
                        {# 20230705@hanari 直販リンク追加 #}
                        <li class="navi-amazon"><a href="https://www.amazon.co.jp/akracing/" target="_blank">Amazonで購入<i class="fas fa-chevron-right"></i></a></li>
            </ul>
        </div><!-- .ec-itemNav -->
    </div>
    
    {#
    {% 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="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 %}
            </ul>
        </div>
    </div>
    #}