app/template/bravers/Block/header.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. <div class="ec-headerNaviTop">
  9.     <div class="ec-headerNaviTop__inner">
  10.         <div class="ec-headerNaviTop__left">
  11.             <p class="ec-headerNaviTop__left__text">5,400円以上<br class="sp-show">送料無料</p>
  12.             <p class="ec-headerNaviTop__left__text m-none">12時迄注文で<br class="sp-show">当日出荷</p>
  13.         </div>
  14.         <p class="ec-headerNaviTop__right">ブレイバースは<br class="m-show">美容師さん、理容師さんのための<br class="sp-show">会員制プロショップです</p>
  15.     </div>
  16. </div>
  17. <div class="ec-headerNaviRole">
  18.     <div class="ec-headerNaviRole__left">
  19.         <div class="ec-headerNaviRole__logo">
  20.             <a href="{{ url('homepage') }}">
  21.                 <img src="{{ asset('assets/img/common/logo-header.svg') }}" alt="株式会社bravers(ブレイバーズ)" width="150" height="150" loading="lazy">
  22.             </a>
  23.         </div>
  24.         {# <div class="ec-headerNaviRole__search">
  25.             {{ render(path('block_search_product')) }}
  26.         </div>
  27.         <div class="ec-headerRole__navSP">
  28.             {{ include('Block/nav_sp.twig') }}
  29.         </div> #}
  30.     </div>
  31.     <div class="ec-headerNaviRole__right">
  32.         <div class="ec-headerNaviRole__link bt">
  33.             <a href="{{ url('contact')}}" class="link">
  34.                 <img src="{{ asset('assets/img/common/hatena.svg') }}" alt="ヘルプ" width="22" height="22" loading="lazy">
  35.                 <span class="ec-headerNaviRole__link__linkText">{{ 'ヘルプ・お問い合わせ'|trans }}</span>
  36.             </a>
  37.         </div>
  38.         {% if is_granted('ROLE_USER') %}
  39.             <div class="ec-headerNaviRole__link moderate s-show">
  40.                 <button class="white-no-warp button">
  41.                     <img class="user-icon"class="user-icon" src="{{ asset('assets/img/common/user.svg') }}" alt="" width="12" height="18" loading="lazy">
  42.                     <p class="text">{{ '%last_name% %first_name%'|trans({ '%last_name%': app.user.name01, '%first_name%': app.user.name02 }) }}<span>{% if BaseInfo.option_point %}({{ 'ポイント%point%'|trans({ '%point%': app.user.point|number_format}) }}){% endif %}</span></p>
  43.                 </button>
  44.                 <div class="dropdown ec-headerNaviRole__link__dropdown">
  45.                     <a href="{{ url('mypage') }}">マイページ</a>
  46.                     <a href="{{ url('logout') }}">ログアウト</a>
  47.                 </div>
  48.             </div>
  49.         {% else %}
  50.             <div class="ec-headerNaviRole__link">
  51.                 <a class="link" href="{{ url('mypage_login') }}">
  52.                     <img src="{{ asset('assets/img/common/login.svg') }}" alt="" width="22" height="22" loading="lazy">
  53.                     <span class="ec-headerNaviRole__link__linkText">{{ 'ログイン'|trans }}</span>
  54.                 </a>
  55.             </div>
  56.         {% endif %}
  57.         {# <button class="hamburger-btn">
  58.             <span></span>
  59.             <span></span>
  60.             <span></span>
  61.         </button> #}
  62.         {{ include('Block/nav_sp.twig') }}
  63.         {# <div class="ec-headerNaviRole__nav">
  64.             {{ include('Block/login.twig') }}
  65.         </div>
  66.         <div class="ec-headerRole__cart">
  67.             {{ include('Block/cart.twig') }}
  68.         </div> #}
  69.     </div>
  70. </div>
  71. <div class="ec-headerMenu">
  72.     <div class="ec-headerMenu__inner">
  73.         <div class="ec-headerMenu__left">
  74.             <div class="ec-headerMenu__search">
  75.                 {{ render(path('block_search_product')) }}
  76.             </div>
  77.         </div>
  78.         <div class="ec-headerMenu__right">
  79.             <ul class="ec-headerMenu__list">
  80.                 <li class="ec-headerMenu__list__maker">
  81.                     <div class="moderate">
  82.                         <button id="dropdown__btn" class="dropdown__btn white-no-warp button">メーカー・カテゴリー</button>
  83.                         <div class="dropdown__body dropdown" data-tabs>
  84.                             <nav class="dropdown__body__left">
  85.                                 {% for Category in TopCategories %}
  86.                                     <button class="dropdown__body__left__btn {% if loop.index == 1 %}is-active{% endif %}" data-tab>
  87.                                         {{ Category.name }}
  88.                                     </button>
  89.                                 {% endfor %}
  90.                             </nav>
  91.                             <div class="dropdown__body__right">
  92.                                 {% for Category in TopCategories %}
  93.                                     {% if Category.children|length > 0 %}
  94.                                     <ul class="dropdown__list {% if loop.index == 1 %}is-show{% endif %}" data-tab-content>
  95.                                     {# ここにカテゴリーを置いて欲しいです。 #}
  96.                                         {% for ChildCategory in Category.children %}
  97.                                             <li class="dropdown__item">
  98.                                                 <a href="{{ url('product_list') }}?category_id={{ ChildCategory.id }}" class="dropdown__item-link {% if ChildCategory.children|length > 0 %}lowerLayer{% endif %}">
  99.                                                     {{ ChildCategory.name }}
  100.                                                 </a>
  101.                                                 {# ここは第三階層 #}
  102.                                                 {% if ChildCategory.children|length > 0 %}
  103.                                                     <ul class="dropdown__item__hover">
  104.                                                         {% for ChildCategory2 in ChildCategory.children %}
  105.                                                             <li class="dropdown__item__hover__item">
  106.                                                                 <a href="{{ url('product_list') }}?category_id={{ ChildCategory2.id }}" class="dropdown__item__hover__item__link">{{ChildCategory2.name}}</a>
  107.                                                             </li>
  108.                                                         {% endfor %}
  109.                                                     </ul>
  110.                                                 {% endif %}
  111.                                             </li>
  112.                                         {% endfor %}
  113.                                     </ul>
  114.                                     {% endif %}
  115.                                 {% endfor %}
  116.                             </div>
  117.                             
  118.                         </div>
  119.                     </div>
  120.                     <button class="sp-hamburger" aria-controls="hamburger_menu">メーカー・カテゴリー</button>
  121.                 </li>
  122.                 <li class="ec-headerMenu__list__item">
  123.                     <a href="{{ url('mypage_favorite') }}" class="link">
  124.                         <img src="{{ asset('assets/img/common/favorite.svg') }}" alt="お気に入り" width="24" height="24" loading="lazy">
  125.                         <span class="ec-headerNav__itemLink">{{ 'お気に入り'|trans }}</span>
  126.                     </a>
  127.                 </li>
  128.                 <li class="ec-headerMenu__list__item">
  129.                     <a href="{{ url('history_product_list') }}" class="link">
  130.                         <img src="{{ asset('assets/img/common/purchase.svg') }}" alt="お気に入り" width="24" height="24" loading="lazy">
  131.                         <span>購入履歴</span>
  132.                     </a>
  133.                 </li>
  134.                 <li class="ec-headerMenu__list__item ">
  135.                     {{ include('Block/cart.twig') }}
  136.                 </li>
  137.             </ul>
  138.         </div>
  139.     </div>
  140. </div>