app/template/default/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. {% set totalQuantity = get_carts_total_quantity() %}
  9. <div class="">
  10.     <div class="header">
  11.     <div class="header__inner">
  12.         <div class="header__title">木こりがいない時代だからこそ、テクノロジーで森を守る。植林が未来の町を守り、地域を豊かにする。</div>
  13.         <button class="header__action" onclick="window.location.href='{{ url('help_about') }}'" aria-label="運営について">
  14.             <span class="header__action-text">運営について</span>
  15.             <img class="header__action-icon" src="{{ asset('assets/img/default/icons/icon-header-action.svg') }}" alt="" width="24" height="24" />
  16.         </button>
  17.     </div>
  18.     </div>
  19.     <!-- menu -->
  20.     <div class="header__menu header__menu-only">
  21.     <div class="header__menu-inner">
  22.         <div class="header__brand">
  23.             <a href="{{ url('homepage') }}">
  24.                 <img class="header__brand-logo" src="{{ asset('assets/img/default/icons/logo.svg') }}" alt="WoodTech" width="209" height="32" />
  25.             </a>
  26.             <span class="header__brand-caption">炭から始まる明るい未来</span>
  27.             <div class="header__brand-caption-line">
  28.             </div>
  29.         </div>
  30.         <div class="header__utility">
  31.         <nav class="header__nav" aria-label="グローバルナビ">
  32.             <ul class="header__nav-list">
  33.             <li class="header__nav-item"><a class="header__nav-link {% if app.request.uri == url('homepage') %}is-active{% endif %}" href="{{ url('homepage') }}">トップ</a></li>
  34.             <li class="header__nav-item"><a class="header__nav-link {% if app.request.uri == url('product_list') %}is-active{% endif %}" href="{{ url('product_list') }}">備長炭一覧</a></li>
  35.             <li class="header__nav-item"><a class="header__nav-link {% if app.request.uri == url('news_list') %}is-active{% endif %}" href="{{ url('news_list') }}">お知らせ</a></li>
  36.             <li class="header__nav-item"><a class="header__nav-link {% if app.request.uri == url('contact') %}is-active{% endif %}" href="{{ url('contact') }}">お問い合わせ</a></li>
  37.             </ul>
  38.         </nav>
  39.         <a class="header__utility-item" href="{{ url('mypage') }}">
  40.             <img class="header__utility-icon" src="{{ asset('assets/img/default/icons/icon-user.svg') }}" alt="" width="32" height="32" />
  41.             <span class="header__utility-label">マイページ</span>
  42.         </a>
  43.         <span class="header__utility-sep" aria-hidden="true"></span>
  44.         <a class="header__utility-item relative" href="{{ url('cart') }}">
  45.             <div class="cart-badge">
  46.                 <span class="cart-badge-text">{{ totalQuantity }}</span>
  47.             </div>
  48.             <img class="header__utility-icon" src="{{ asset('assets/img/default/icons/icon-cart.svg') }}" alt="" width="32" height="32" />
  49.             <span class="header__utility-label">カート</span>
  50.         </a>
  51.         <a class="header__utility-item header__utility-item-menu" href="#" onclick="javascript:void(0);" id="mobile-menu-button">
  52.             <img class="header__utility-icon header__utility-icon-menu" src="{{ asset('assets/img/default/icons/icon-menu.svg') }}" alt="" width="32" height="32" />
  53.             <svg class="header__utility-icon header__utility-icon-close" width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" style="display: none;">
  54.             <path d="M8 8L24 24M24 8L8 24" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round"/>
  55.             </svg>
  56.             <span class="header__utility-label text-white">メニュー</span>
  57.         </a>
  58.         </div>
  59.     </div>
  60.     </div>
  61.     <!-- menu mobile only -->
  62.     <div class="mobile-only-1200">
  63.     <div class="header__menu-mobile" id="mobile-menu">
  64.         <div class="header__menu-mobile-inner">
  65.         <div class="header__menu-mobile-nav">
  66.             <a class="header__menu-mobile-item" href="{{ url('homepage') }}">
  67.             <span class="header__menu-mobile-text">ホーム</span>
  68.             <img class="header__menu-mobile-arrow" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  69.             </a>
  70.             <a class="header__menu-mobile-item" href="{{ url('product_list') }}">
  71.             <span class="header__menu-mobile-text">備長炭一覧</span>
  72.             <img class="header__menu-mobile-arrow" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  73.             </a>
  74.             <a class="header__menu-mobile-item" href="{{ url('news_list') }}">
  75.             <span class="header__menu-mobile-text">お知らせ</span>
  76.             <img class="header__menu-mobile-arrow" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  77.             </a>
  78.             <a class="header__menu-mobile-item" href="{{ url('contact') }}">
  79.             <span class="header__menu-mobile-text">お問い合わせ</span>
  80.             <img class="header__menu-mobile-arrow" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  81.             </a>
  82.             <a class="header__menu-mobile-item" href="{{ url('help_faq') }}">
  83.             <span class="header__menu-mobile-text">よくある質問</span>
  84.             <img class="header__menu-mobile-arrow" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  85.             </a>
  86.             <a class="header__menu-mobile-item" href="{{ url('help_guide') }}">
  87.             <span class="header__menu-mobile-text">ご利用ガイド</span>
  88.             <img class="header__menu-mobile-arrow" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  89.             </a>
  90.             {% if is_granted('ROLE_USER') %}
  91.                 <a class="header__menu-mobile-item" href="{{ url('mypage') }}">
  92.                 <span class="header__menu-mobile-text">ご注文履歴</span>
  93.                 <img class="header__menu-mobile-arrow" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  94.                 </a>
  95.                 <a class="header__menu-mobile-item" href="{{ url('logout') }}">
  96.                 <span class="header__menu-mobile-text">ログアウト</span>
  97.                 <img class="header__menu-mobile-arrow" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  98.                 </a>
  99.             {% else %}
  100.                 <a class="header__menu-mobile-item" href="{{ url('entry') }}">
  101.                 <span class="header__menu-mobile-text">会員登録</span>
  102.                 <img class="header__menu-mobile-arrow" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  103.                 </a>
  104.                 <a class="header__menu-mobile-item" href="{{ url('mypage_login') }}">
  105.                 <span class="header__menu-mobile-text">ログイン</span>
  106.                 <img class="header__menu-mobile-arrow" src="{{ asset('assets/img/default/icons/icon-arrow-nav.svg') }}" alt="" width="24" height="24" />
  107.                 </a>
  108.             {% endif %}
  109.         </div>
  110.         <div class="header__menu-mobile-legal">
  111.             <a class="header__menu-mobile-legal-item" href="{{ url('help_about') }}">
  112.             <img class="header__menu-mobile-legal-icon" src="{{ asset('assets/img/default/icons/icon-arrow-legal.svg') }}" alt="" width="12" height="12" />
  113.             <span class="header__menu-mobile-legal-text">利用規約</span>
  114.             </a>
  115.             <a class="header__menu-mobile-legal-item" href="{{ url('help_privacy') }}">
  116.             <img class="header__menu-mobile-legal-icon" src="{{ asset('assets/img/default/icons/icon-arrow-legal.svg') }}" alt="" width="12" height="12" />
  117.             <span class="header__menu-mobile-legal-text">プライバシーポリシー</span>
  118.             </a>
  119.             <a class="header__menu-mobile-legal-item" href="{{ url('help_tradelaw') }}">
  120.             <img class="header__menu-mobile-legal-icon" src="{{ asset('assets/img/default/icons/icon-arrow-legal.svg') }}" alt="" width="12" height="12" />
  121.             <span class="header__menu-mobile-legal-text">特定商取引法に基づく表記</span>
  122.             </a>
  123.         </div>
  124.         </div>
  125.     </div>
  126.     </div>
  127.     <!-- button floating -->
  128.     <div class="button-floating button-floating-desktop">
  129.     <a class="button-floating__item button-floating__item--reorder" href="{{ url('product_list') }}">
  130.         <img class="button-floating__icon" src="{{ asset('assets/img/default/icons/icon-box-filled.svg') }}" alt="" width="32" height="32" />
  131.         <span class="button-floating__text">らくらく再注文</span>
  132.     </a>
  133.     <a class="button-floating__item button-floating__item--contact" href="{{ url('contact') }}">
  134.         <img class="button-floating__icon" src="{{ asset('assets/img/default/icons/icon-mail-outline.svg') }}" alt="" width="32" height="32" />
  135.         <span class="button-floating__text">お問い合わせ</span>
  136.     </a>
  137.     </div>
  138.     <div class="button-floating-mobile">
  139.     <a class="button-floating-mobile__reorder" href="{{ url('product_list') }}">
  140.         <img class="button-floating-mobile__icon" src="{{ asset('assets/img/default/icons/icon-box-filled.svg') }}" alt="" width="24" height="24" />
  141.         <span class="button-floating-mobile__text">らくらく再注文</span>
  142.     </a>
  143.     <a class="button-floating-mobile__contact" href="{{ url('contact') }}" aria-label="お問い合わせ">
  144.         <img class="button-floating-mobile__icon" src="{{ asset('assets/img/default/icons/icon-mail-outline.svg') }}" alt="" width="24" height="24" />
  145.     </a>
  146.     </div>
  147. </div>