app/template/default/Block/category_nav_pc.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.     
  12.     {% if Category.publishCount > 0 %}
  13.     <a href="{{ url('product_list') }}?category_id={{ Category.id }}">
  14.         {{ Category.name }}
  15.     </a>    
  16.     {% endif %}
  17. {% endmacro %}
  18. {# @see https://github.com/bolt/bolt/pull/2388 #}
  19. {% from _self import tree %}
  20. <div class="grow__title">
  21.     <h3 class="ak-title b_slide play">ご利用月<img src="/html/user_data/assets/img/title_logo.jpg" alt="" style="margin: 10px auto 0 auto; display:block;" width="30"></h3>
  22.     <p class="ak-text_center ak-mb3 b_slide play">
  23.         ご利用の月を選択すると、ご利用可能な日にちが表示されます。<br>
  24. ※表示されている月以外のご予約はお問い合わせお願いいたします。<br>
  25. <br>
  26. 最低利用時間は60分となっておりますので60分2枚、90分3枚のご購入をお願い致します。<br>※30分のご利用は受けてません。
  27.     </p>
  28. </div>
  29. <div class="ec-categoryNaviRole">
  30.     <div class="ec-itemNav">
  31.         <ul class="ec-itemNav__nav">
  32.             {% for Category in Categories %}
  33.                 <li>
  34.                     {{ tree(Category) }}
  35.                 </li>
  36.             {% endfor %}
  37.         </ul>
  38.     </div>
  39. </div>