src/Eccube/Resource/template/default/hamburger.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 = [
  9.     {
  10.         'name':'CONCEPT',
  11.         'href':'/help/about',
  12.     },
  13.     {
  14.         'name':'LINE UP',
  15.         'href':'/products/list',
  16.     },
  17.     {
  18.         'name':'海洋散骨',
  19.         'href':'/sea_burial',
  20.     },
  21.     {
  22.         'name':'SPECIAL',
  23.         'href':'/special',
  24.     },
  25.     {
  26.         'name':'ニュース',
  27.         'href':'/news',
  28.     },
  29.     {
  30.         'name':'ご利用ガイド',
  31.         'href':'/guide',
  32.     },
  33.     {
  34.         'name':'お問い合わせ',
  35.         'href':'/contact/other',
  36.     }
  37. ] %}
  38. {% set guides = [
  39.     {
  40.         'name':'よくあるご質問',
  41.         'href':'/qa'
  42.     },
  43.     {
  44.         'name':'プライバシーポリシー',
  45.         'href':'/help/privacy'
  46.     },
  47.     {
  48.         'name':'会員規約',
  49.         'href':'/help/agreement'
  50.     },
  51.     {
  52.         'name':'特定商取引法に基づく表記',
  53.         'href':'/help/tradelaw'
  54.     },
  55.     {
  56.         'name':'サイトマップ',
  57.         'href':'/help/sitemap'
  58.     },
  59. ] %}
  60. {% block main %}
  61.     <div class="flex">
  62.         <div class="bg-black w-[21.8vw]"></div>
  63.         <div
  64.             class="bg-white w-full pb-[136px]">
  65.             {# 閉じる #}
  66.             <div class="h-16 items-center justify-end flex border-b border-sub-gray">
  67.                 <button class="relative js-hamburger-menu hover">
  68.                     <img src="{{asset('assets/icon/close.svg')}}" alt="閉じる" class="w-8 h-8 mr-6">
  69.                 </button>
  70.             </div>
  71.             {# ログインとカート #}
  72.             <div class="flex border-b border-sub-gray">
  73.                 <div class="w-1/2 border-r border-sub-gray py-9 items-center justify-center">
  74.                     <a href="{% if is_granted('ROLE_USER') %} /mypage {% else %} /mypage/login {% endif %}" class="flex flex-col justify-center items-center gap-2 hover">
  75.                         <img src="{{asset('assets/icon/person.svg')}}" alt="ログインのアイコン" class="w-8 h-8">
  76.                         {% if is_granted('ROLE_USER') %}
  77.                             <p class="whitespace-nowrap text-xs leading-[18px]">マイページ</p>
  78.                         {% else %}
  79.                             <p class="whitespace-nowrap text-xs leading-[18px]">ログイン</p>
  80.                         {% endif %}
  81.                     </a>
  82.                 </div>
  83.                 <div class="w-1/2 border-r border-sub-gray py-9 items-center justify-center">
  84.                     <a href="/cart" class="flex flex-col justify-center items-center gap-2 hover">
  85.                         <img src="{{asset('assets/icon/shopping_cart.svg')}}" alt="カートのアイコン" class="w-8 h-8">
  86.                         <p class="whitespace-nowrap text-xs leading-[18px]">カート</p>
  87.                     </a>
  88.                 </div>
  89.             </div>
  90.             {# カテゴリー #}
  91.             <ul class="leading-7 text-sm">
  92.                 {% for category in categories %}
  93.                     {# TODO:実装後リンク確認 #}
  94.                     <li class="py-5 px-8 border-b border-sub-gray">
  95.                         <a href={{category.href}} class="hover">{{category.name}}</a>
  96.                     </li>
  97.                 {% endfor %}
  98.                 <li class=" {% if is_granted('ROLE_USER') %} block  py-5 px-8 border-b border-sub-gray {% else %} hidden {% endif %}">
  99.                     <a href="/logout" class="hover flex gap-1 items-center"><img src="{{asset('assets/icon/logout_icon.svg')}}" alt="ログアウトアイコン" class="w-[14px] h-[14px]"><p>ログアウト</p>
  100.                     </a>
  101.                 </li>
  102.             </ul>
  103.             <div class="pl-8 pr-6 pt-11 text-xs whitespace-nowrap">
  104.                 <ul class="w-full flex flex-wrap gap-x-6 gap-y-4 pb-5">
  105.                     {% for guide in guides %}
  106.                         <li>
  107.                             <a href={{guide.href}} class="hover">{{guide.name}}</a>
  108.                         </li>
  109.                     {% endfor %}
  110.                     <div class="pb-10 flex gap-2 items-center">
  111.                         <a href="http://manaka-ltd.jp/profile/" class="flex gap-1 items-center hover">
  112.                             <p>会社概要</p>
  113.                             <img src="{{asset('assets/icon/link.svg')}}" alt="会社概要">
  114.                         </a>
  115.                     </div>
  116.                 </ul>
  117.                 <p class="text-[8px] font-notoserif">© Itsukushi. by 株式会社まなか All Rights Reserved.</p>
  118.             </div>
  119.         </div>
  120.     </div>
  121. {% endblock %}