app/template/bravers/Block/drawer_hamburger.twig line 1

Open in your IDE?
  1. <div class="ec-drawer_hamburger">
  2.     {% if is_granted('ROLE_USER') %}
  3.       <a href="{{ url('mypage') }}" class="ec-drawer_hamburger__login">
  4.           <span class="">{{ 'マイページ'|trans }}</span>
  5.       </a>
  6.     {% else %}
  7.       <a href="{{ url('mypage_login') }}" class="ec-drawer_hamburger__login">
  8.           <span class="">{{ 'ログイン'|trans }}</span>
  9.       </a>
  10.     {% endif %}
  11.     <div class="ec-drawer_hamburger__links">
  12.       {% if is_granted('ROLE_USER') %}
  13.         <a class="ec-drawer_hamburger__links__item" href="{{ url('mypage') }}">
  14.             <div class="ec-drawer_hamburger__links__item__img">
  15.               <img src="{{ asset('assets/img/common/drawer/mypage.svg') }}" alt="マイページ" width="24" height="24" loading="lazy">
  16.             </div>
  17.             <span>{{ 'マイページ'|trans }}</span>
  18.         </a>
  19.         <a href="{{ url('history_product_list') }}" class="ec-drawer_hamburger__links__item">
  20.           <div class="ec-drawer_hamburger__links__item__img">
  21.             <img src="{{ asset('assets/img/common/drawer/purchase.svg') }}" alt="お気に入り" width="24" height="24" loading="lazy">
  22.           </div>
  23.           <span>購入履歴</span>
  24.         </a>
  25.         {% if BaseInfo.option_favorite_product %}
  26.           <a class="ec-drawer_hamburger__links__item" href="{{ url('mypage_favorite') }}">
  27.               <div class="ec-drawer_hamburger__links__item__img">
  28.                 <img src="{{ asset('assets/img/common/drawer/favorite.svg') }}" alt="お気に入り" width="24" height="24" loading="lazy">
  29.               </div>
  30.             <span>{{ 'お気に入り'|trans }}</span>
  31.           </a>
  32.         {% endif %}
  33.       {% else %}
  34.         <a class="ec-drawer_hamburger__links__item" href="{{ url('entry_contact') }}">
  35.             <div class="ec-drawer_hamburger__links__item__img">
  36.                 <img src="{{ asset('assets/img/common/drawer/login.svg') }}" alt="ログイン" width="24" height="24" loading="lazy">
  37.               </div>
  38.             <span>{{ '新規会員登録'|trans }}</span>
  39.         </a>
  40.         {% if BaseInfo.option_favorite_product %}
  41.           <a class="ec-drawer_hamburger__links__item" href="{{ url('mypage_favorite') }}">
  42.              <div class="ec-drawer_hamburger__links__item__img">
  43.                 <img src="{{ asset('assets/img/common/drawer/favorite.svg') }}" alt="お気に入り" width="24" height="24" loading="lazy">
  44.               </div>
  45.             <span>{{ 'お気に入り'|trans }}</span>
  46.           </a>
  47.         {% endif %}
  48.       {% endif %}
  49.       <a class="ec-drawer_hamburger__links__item" href="{{ url('cart') }}">
  50.             <div class="ec-drawer_hamburger__links__item__img">
  51.                 <img src="{{ asset('assets/img/common/drawer/cart.svg') }}" alt="カートみる" width="24" height="24" loading="lazy">
  52.               </div>
  53.             <span>{{ 'カートを見る'|trans }}</span>
  54.       </a>
  55.       <a class="ec-drawer_hamburger__links__item" href="{{ url('homepage') }}">
  56.         <div class="ec-drawer_hamburger__links__item__img">
  57.           <img src="{{ asset('assets/img/common/drawer/home.svg') }}" alt="ホーム" width="24" height="24" loading="lazy">
  58.         </div>
  59.         <span>{{ 'ホームに戻る'|trans }}</span>
  60.       </a>
  61.     </div>
  62.     {# <p class="ec-drawer_hamburger__title">商品カテゴリーから探す</p>
  63.     <button class="ec-drawer_hamburger__btn accordion-btn">メーカー<span>から探す</span><p class="arrow"></p></button>
  64.     <div class="accordion__content">
  65.     </div> #}
  66.     {{ include('Block/category_nav_sp.twig') }}
  67.     <div class="ec-drawer_hamburger__search">
  68.       {{ render(path('block_search_product')) }}
  69.     </div>
  70.     <p class="ec-drawer_hamburger__title">
  71.       <a href="{{ url('contact') }}" class="ec-drawer_hamburger__title__link">ヘルプ・お問い合わせ</a>
  72.     </p>
  73.   <div class="ec-drawer_hamburger__sns">
  74.     {{ include('Block/sns.twig') }}
  75.   </div>
  76. </div>