app/template/default/Block/menu_sp.twig line 1

Open in your IDE?
  1. <div class="ec-drawerRole">
  2.     {{ render(path('block_search_product')) }}
  3.     <div class="link-list">
  4.         <a href="https://lin.ee/5FbNJH7s" target="_blank" class="link line">
  5.             <img src="{{ asset('assets/img/common/logo-line.svg') }}" alt="">
  6.             <span>お友達追加</span>
  7.         </a>
  8.         {% if is_granted('ROLE_USER') %}
  9.             <a href="{{ url('mypage') }}" class="link">
  10.                 <img src="{{ asset('assets/img/common/ic-user.png') }}" alt="">
  11.                 <span>マイページ</span>
  12.             </a>
  13.             {# {% if BaseInfo.option_favorite_product %}
  14.                 <a href="{{ url('mypage_favorite') }}" class="link" style="display: flex;">
  15.                     <i class="ec-headerNav__itemIcon far fa-heart fa-fw" style="color: #fff;font-size: 2rem;"></i>
  16.                     <span>お気に入り</span>
  17.                 </a>
  18.             {% endif %} #}
  19.         {% else %}
  20.             <a href="{{ url('mypage_login') }}" class="link">
  21.                 <img src="{{ asset('assets/img/common/ic-user.svg') }}" alt="">
  22.                 <span>ログイン</span>
  23.             </a>
  24.         {% endif %}
  25.         <a href="{{ url('cart') }}" class="link">
  26.             <img src="{{ asset('assets/img/common/ic-cart.svg') }}" alt="">
  27.             <span>カートを見る</span>
  28.         </a>
  29.         <a href="{{ url('contact') }}" class="link">
  30.             <img src="{{ asset('assets/img/common/ic-mess.svg') }}" alt="">
  31.             <span>お問い合わせ</span>
  32.         </a>
  33.     </div>
  34.     <div class="list-nav">
  35.         <div class="group">
  36.             <a class="nav-btn">
  37.                 <span>商品を探す</span>
  38.             </a>
  39.             <div class="list-item">
  40.                 <a href="{{ url('product_list') }}?category_id=8">商品一覧トップ</a>
  41.                 <a href="{{ url('product_recommend') }}">おすすめ商品</a>
  42.                 <a href="{{ url('loan') }}">自社ローン対象商品</a>
  43.             </div>
  44.         </div>
  45.         <div class="group">
  46.             <a class="nav-btn">
  47.                 <span>工事のみのご依頼</span>
  48.             </a>
  49.             <div class="list-item">
  50.                 <a href="{{ url('construction_only') }}">工事のみのご依頼トップ</a>
  51.                 <a href="{{ url('new-replace') }}">新設・交換工事について</a>
  52.                 <a href="{{ url('electrical') }}">電気工事について</a>
  53.             </div>
  54.         </div>
  55.          <div class="group">
  56.             <a class="nav-btn">
  57.                 <span>エアココについて</span>
  58.             </a>
  59.             <div class="list-item">
  60.                 <a href="{{ url('user_data', {'route': 'strengths'}) }}">エアココの強み</a>
  61.                 <a href="{{ url('user_data', {'route': 'strengths'}) }}#voice">お客様の声</a>
  62.                 <a href="{{ url('faq') }}">よくある質問</a>
  63.                 <a href="{{ url('user_data', {'route': 'sdgs'}) }}">SDGs</a>
  64.             </div>
  65.         </div>
  66.         <div class="group">
  67.             <a href="{{ url('columns') }}">
  68.                 <span>お役立ち情報</span>
  69.             </a>
  70.         </div>
  71.         <script>
  72.             $(document).ready(function() {
  73.                 $(".nav-btn").click(function() {
  74.                     $(this).toggleClass("active");
  75.                     $(this).next(".list-item").toggleClass("active");
  76.                 });
  77.             });
  78.         </script>
  79.     </div>
  80. </div>