app/template/default/Block/category_nav_sp.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% set Categories = repository('Eccube\\Entity\\Category').getList() %}
  9. {% macro tree(Category) %}
  10.     {% from _self import tree %}
  11.     <a href="{{ url('product_list') }}?category_id={{ Category.id }}">
  12.         {{ Category.name }}
  13.     </a>
  14.     {% if Category.children|length > 0 %}
  15.         <ul>
  16.             {% for ChildCategory in Category.children %}
  17.                 <li>
  18.                     {{ tree(ChildCategory) }}
  19.                 </li>
  20.             {% endfor %}
  21.         </ul>
  22.     {% endif %}
  23. {% endmacro %}
  24. {# @see https://github.com/bolt/bolt/pull/2388 #}
  25. {% from _self import tree %}
  26. <div class="ec-headerCategoryArea">
  27.     <div class="ec-itemNav">
  28.         <ul class="ec-footerNavi gnavi__lists_sp">
  29.             {#<li class="ec-footerNavi__link">#}
  30.             {#    <a  href="{{ url('product_list') }}?category_id=25"><p>{{ '特集'|trans }}<span class=" footer_nav_ocacity ">Feature</span></p><span class="arrow-right sp"></span></a>#}
  31.             {#</li>#}
  32.             <li class="ec-footerNavi__link gnavi__list_sp">
  33.                 <a href="{{ url('homepage') }}#Category" class="footer_navi_category"><p>{{ 'カテゴリ'|trans }}<span class=" footer_nav_ocacity ">Category</span></p><span class="dli-plus sp"></span></a>
  34.                 <ul class="dropdown__lists_sp sp">
  35.                 <li class="dropdown__list_sp">
  36.                 <a href="{{ url('product_list') }}?category_id=1">
  37.                     ソファ<span class="arrow-right sp"></span></a>
  38.                 </li>
  39.                 <li class="dropdown__list_sp">
  40.                 <a href="{{ url('product_list') }}?category_id=2">
  41.                     ベッド<span class="arrow-right sp"></span></a>
  42.                 </li>
  43.                 <li class="dropdown__list_sp">
  44.                 <a href="{{ url('product_list') }}?category_id=5">
  45.                     テーブル<span class="arrow-right sp"></span></a>
  46.                 </li>
  47.                 <li class="dropdown__list_sp">
  48.                 <a href="{{ url('product_list') }}?category_id=7">
  49.                     チェア<span class="arrow-right sp"></span></a>
  50.                 </li>
  51.                 <li class="dropdown__list_sp">
  52.                 <a href="{{ url('product_list') }}?category_id=8">
  53.                     収納家具<span class="arrow-right sp"></span></a>
  54.                 </li>
  55.                 <li class="dropdown__list_sp">
  56.                 <a href="{{ url('product_list') }}?category_id=9">
  57.                     ラグ<span class="arrow-right sp"></span></a>
  58.                 </li>
  59.                 <li class="dropdown__list_sp">
  60.                 <a href="{{ url('product_list') }}?category_id=10">
  61.                     インテリア雑貨<span class="arrow-right sp"></span></a>
  62.                 </li>
  63.                 <li class="dropdown__list_sp">
  64.                 <a href="{{ url('product_list') }}?category_id=11">
  65.                     照明<span class="arrow-right sp"></span></a>
  66.                 </li>
  67.                 <li class="dropdown__list_sp">
  68.                 <a href="{{ url('product_list') }}?category_id=12">
  69.                     キッチン<span class="arrow-right sp"></span></a>
  70.                 </li>
  71.                 <li class="dropdown__list_sp">
  72.                 <a href="{{ url('product_list') }}?category_id=13">
  73.                     ガーデン・アウトドア<span class="arrow-right sp"></span></a>
  74.                 </li>
  75.                 <li class="dropdown__list_sp">
  76.                 <a href="{{ url('product_list') }}?category_id=14">
  77.                     ペット<span class="arrow-right sp"></span></a>
  78.                 </li>
  79.                 <li class="dropdown__list_sp">
  80.                 <a href="{{ url('product_list') }}?category_id=15">
  81.                     季節商品<span class="arrow-right sp"></span></a>
  82.                 </li>
  83.                 </ul>   
  84.             </li>
  85.             <li class="ec-footerNavi__link">
  86.                 <a href="{{ url('help_guide') }}"><p>{{ 'ご利用ガイド'|trans }}<span class=" footer_nav_ocacity">User Guide</span></p><span class="arrow-right sp"></span></a>
  87.             </li>
  88.             <li class="ec-footerNavi__link">
  89.                 <a href="{{ url('news_index') }}"><p>{{ 'お知らせ'|trans }}<span class=" footer_nav_ocacity">News</span></p><span class="arrow-right sp"></span></a>
  90.             </li>
  91.             <li class="ec-footerNavi__link">
  92.                 <a href="{{ url('entry') }}"><p>{{ '会員登録'|trans }}<span class=" footer_nav_ocacity">Member Registration</span></p><span class="arrow-right sp"></span></a></li>
  93.             <li class="ec-footerNavi__link">
  94.                 <a href="{{ url('mypage_login') }}"><p>{{ 'ログイン'|trans }}<span class=" footer_nav_ocacity">Login</span></p><span class="arrow-right sp"></span></a></li>
  95.             <li class="ec-footerNavi__link">
  96.                 <a href="{{ url('contact') }}"><p>{{ 'お問い合わせ'|trans }}<span class=" footer_nav_ocacity">Contact</span></p><span class="arrow-right sp"></span></a></li>
  97.         </ul>
  98.         <div class="ec-footer_sns sp">
  99.             <a href="">{{ 'Official SNS'|trans }}<img src="{{ asset('assets/img/instagram.png') }}"></a>
  100.         </div>
  101.     </div>
  102. </div>