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. {% set EnUser = app.request.cookies.get('en_user') == 'Y' %}
  10. {% if EnUser == false %}
  11.     <div class="ec-header-navi-sp pc-none">
  12.         <div class="ec-header-navi-sp__logo">
  13.             {% if ChainStore == false %}
  14.                 <a href="{{ url('homepage') }}">
  15.                     <img src="{{ asset('assets/img/common/logo_sp.png') }}" width="80">
  16.                 </a>
  17.             {% else %}
  18.                 <a href="{{ url('mypage_menu') }}">
  19.                     <img src="{{ asset('assets/img/common/logo_sp.png') }}" width="80">
  20.                 </a>
  21.             {% endif %}
  22.         </div>
  23.         <div class="ec-header-navi-sp__login">
  24.             {% if is_granted('ROLE_USER') %}
  25.                 <a href="{{ url('logout') }}">
  26.                     <img src="{{ asset('assets/img/common/lock-alt-solid.svg') }}" width="25">
  27.                     <span>ログアウト</span>
  28.                 </a>
  29.             {% else %}
  30.                 <a href="{{ url('mypage_login') }}">
  31.                     <img src="{{ asset('assets/img/common/lock-alt-solid.svg') }}" width="25">
  32.                     <span>ログイン</span>
  33.                 </a>
  34.             {% endif %}
  35.         </div>
  36.         <div class="ec-header-navi-sp__cart">
  37.             <div class="ec-headerRole__cart">
  38.                 {{ include('Block/cart.twig') }}
  39.             </div>
  40.         </div>
  41.         <div class="ec-header-navi-sp__store">
  42.             {% if ChainStore == false %}
  43.                 <a href="{{ url('product_list') }}">
  44.                     <p><span class="small">ONLINE</span><span class="large">SHOP</span></p>
  45.                     <img src="{{ asset('assets/img/common/icon_online_store.png') }}" width="32">
  46.                 </a>
  47.             {% else %}
  48.                 <a href="{{ url('product_list') }}">
  49.                     <p class="chain-store-icon">商品<br>発注</p>
  50.                 </a>
  51.             {% endif %}
  52.         </div>
  53.         <div class="ec-header-navi-sp__btn">
  54.             {{ include('Block/nav_sp.twig') }}
  55.         </div>
  56.     </div>
  57.     <div class="ec-header-top sp-none">
  58.         {{ render(path('block_' ~ 'search_product')) }}
  59.         <div class="ec-header-top__login">
  60.             {{ include('Block/login.twig') }}
  61.         </div>
  62.     </div>
  63.     <div class="ec-header-bottom sp-none">
  64.         {% if ChainStore == false %}
  65.             <div class="ec-header-bottom__logo">
  66.                 <p class="ec-header-bottom__img">
  67.                     <h1>
  68.                         <a href="{{ url('homepage') }}">
  69.                             <img src="{{ asset('assets/img/common/logo_header.png') }}" alt="ダシーズファクトリー公式サイト オンラインショップ">
  70.                         </a>
  71.                     </h1>
  72.                 </p>
  73.             </div>
  74.             <div class="ec-header-bottom__center">
  75.                 <div class="ec-header-bottom__gnav">
  76.                     <ul class="p-global-navi">
  77.                         <li class="p-global-navi__item">
  78.                             <a href="/shop/news/">NEWS</a>
  79.                             <a href="/shop/news/" class="p-global-navi__jp">お知らせ</a>
  80.                         </li>
  81.                         <li class="p-global-navi__item has-child">
  82.                             <a href="/shop/story/">STORY</a>
  83.                             <a href="/shop/story/" class="p-global-navi__jp">製品の誕生物語</a>
  84.                             <ul class="p-global-navi-child">
  85.                             <li class="p-global-navi-child__item">
  86.                                 <a href="/shop/story/story-ice-cream">- ICE</a>
  87.                             </li>
  88.                             <li class="p-global-navi-child__item">
  89.                                 <a href="/shop/story/story-coffee">- COFFEE</a>
  90.                             </li>
  91.                             </ul>
  92.                         </li>
  93.                         <li class="p-global-navi__item has-child">
  94.                             <a href="/shop/concept/">CONCEPT</a>
  95.                             <a href="/shop/concept/" class="p-global-navi__jp">製品のこだわり</a>
  96.                             <ul class="p-global-navi-child">
  97.                             <li class="p-global-navi-child__item">
  98.                                 <a href="/shop/concept/concept-ice-cream/">- ICE</a>
  99.                             </li>
  100.                             <li class="p-global-navi-child__item">
  101.                                 <a href="/shop/concept/concept-coffee/">- COFFEE</a>
  102.                             </li>
  103.                             </ul>
  104.                         </li>
  105.                         <li class="p-global-navi__item">
  106.                             <a href="/shop/products-list/">PRODUCTS</a>
  107.                             <a href="/shop/products-list/" class="p-global-navi__jp">商品ラインアップ</a>
  108.                         </li>
  109.                         <li class="p-global-navi__item">
  110.                             <a href="{{ url('company') }}">ABOUT US</a>
  111.                             <a href="{{ url('company') }}" class="p-global-navi__jp">会社概要</a>
  112.                         </li>
  113.                         <li class="p-global-navi__item">
  114.                             <a href="/shop/stores/">STORES</a>
  115.                             <a href="/shop/stores/" class="p-global-navi__jp">実店舗のご紹介</a>
  116.                         </li>
  117.                         <li class="p-global-navi__item">
  118.                             <a href="/shop/entry/">販売店募集</a>
  119.                         </li>
  120.                     </ul>
  121.                 </div>
  122.             </div>
  123.         {% else %}
  124.             <div class="ec-header-bottom__logo">
  125.                 <p class="ec-header-bottom__img">
  126.                     <a href="{{ url('mypage_menu') }}">
  127.                     <img src="{{ asset('assets/img/common/logo_header.png') }}" alt="">
  128.                     </a>
  129.                 </p>
  130.             </div>
  131.             <div class="ec-header-bottom__center">
  132.                 <div class="ec-header-bottom-title">
  133.                     <h1>ダシーズ契約店専用サイト</h1>
  134.                 </div>
  135.             </div>
  136.         {% endif %}
  137.         <div class="ec-header-bottom__right">
  138.             <ul class="ec-header-bottom__store-link">
  139.                 <li class="ec-header-bottom__store-link-item">
  140.                     <a href="{{ url('cart') }}">
  141.                     <span class="ec-cartNavi-badge">{{ totalQuantity|number_format }}</span>
  142.                     <img src="{{ asset('assets/img/common/icon_store.png') }}" alt="" width="34">
  143.                     </a>
  144.                 </li>
  145.                 {% if ChainStore == false %}
  146.                     <li class="ec-header-bottom__store-link-item">
  147.                         <a href="{{ url('product_list') }}">
  148.                             <span>ONLINE SHOP</span>
  149.                         </a>
  150.                         <a href="/products/list/" class="store-link-jp">オンラインショップ</a>
  151.                     </li>
  152.                     <li class="ec-header-bottom__store-link-item">
  153.                         <a href="/shop/guide/">
  154.                             <span class="store-link-small">GUIDE</span>
  155.                         </a>
  156.                         <a href="/shop/guide/" class="store-link-jp">お買い物ガイド</a>
  157.                     </li>
  158.                 {% endif %}
  159.             </ul>
  160.         </div>
  161.     </div>
  162. {% else %}
  163.     <div class="ec-header-navi-sp pc-none">
  164.         <div class="ec-header-navi-sp__logo">
  165.             <a href="{{ url('product_list') }}">
  166.                 <img src="{{ asset('assets/img/common/logo_sp.png') }}" width="80">
  167.             </a>
  168.         </div>
  169.         {#
  170.         <div class="ec-header-navi-sp__login">
  171.             {% if is_granted('ROLE_USER') %}
  172.                 <a href="{{ url('logout') }}">
  173.                     <img src="{{ asset('assets/img/common/lock-alt-solid.svg') }}" width="25">
  174.                     <span>ログアウト</span>
  175.                 </a>
  176.             {% else %}
  177.                 <a href="{{ url('mypage_login') }}">
  178.                     <img src="{{ asset('assets/img/common/lock-alt-solid.svg') }}" width="25">
  179.                     <span>ログイン</span>
  180.                 </a>
  181.             {% endif %}
  182.         </div>
  183.         #}
  184.         <div class="ec-header-navi-sp__cart">
  185.             <div class="ec-headerRole__cart">
  186.                 {{ include('Block/cart.twig') }}
  187.             </div>
  188.         </div>
  189.         <div class="ec-header-navi-sp__store">
  190.             <a href="{{ url('product_list') }}">
  191.                 <p><span class="small">ONLINE</span><span class="large">SHOP</span></p>
  192.                 <img src="{{ asset('assets/img/common/icon_online_store.png') }}" width="32">
  193.             </a>
  194.         </div>
  195.         <div class="ec-header-navi-sp__btn">
  196.             {{ include('Block/nav_sp.twig') }}
  197.         </div>
  198.     </div>
  199.     <div class="ec-header-enuser sp-none">
  200.         <div class="ec-header-bottom__logo">
  201.             <p class="ec-header-bottom__img">
  202.                 <h1>
  203.                     <a href="{{ url('homepage') }}">
  204.                         <img src="{{ asset('assets/img/common/logo_header.png') }}" alt="ダシーズファクトリー公式サイト オンラインショップ">
  205.                     </a>
  206.                 </h1>
  207.             </p>
  208.         </div>
  209.         <div class="ec-header-bottom__right">
  210.             <ul class="ec-header-bottom__store-link">
  211.                 <li class="ec-header-bottom__store-link-item">
  212.                     <a href="{{ url('cart') }}">
  213.                     <span class="ec-cartNavi-badge">{{ totalQuantity|number_format }}</span>
  214.                     <img src="{{ asset('assets/img/common/icon_store.png') }}" alt="" width="34">
  215.                     </a>
  216.                 </li>
  217.                 {% if ChainStore == false %}
  218.                     <li class="ec-header-bottom__store-link-item">
  219.                         <a href="{{ url('product_list') }}">
  220.                             <span>ONLINE SHOP</span>
  221.                         </a>
  222.                     </li>
  223.                     <li class="ec-header-bottom__store-link-item">
  224.                         <a href="/shop/en/guide/">
  225.                             <span class="store-link-small">GUIDE</span>
  226.                         </a>
  227.                     </li>
  228.                 {% endif %}
  229.             </ul>
  230.         </div>
  231.     </div>
  232. {% endif %}
  233. {% if ChainStore %}
  234.     <div class="ec-header-bottom-list sp-none">
  235.         <ul class="ec-header-bottom-list__list">
  236.             <li class="ec-header-bottom-list__item">
  237.                 <a href="{{ url('mypage_menu') }}">トップ</a>
  238.             </li>
  239.             <li class="ec-header-bottom-list__item">
  240.                 <a href="{{ url('mypage_news') }}">新着情報</a>
  241.             </li>
  242.             <li class="ec-header-bottom-list__item">
  243.                 <a href="{{ url('product_list') }}">商品発注</a>
  244.             </li>
  245.             <li class="ec-header-bottom-list__item">
  246.                 <a href="{{ url('product_list') }}?category_id=8">販促品発注</a>
  247.             </li>
  248.             <li class="ec-header-bottom-list__item">
  249.                 <a href="/shop/manual/">マニュアル</a>
  250.             </li>
  251.             <li class="ec-header-bottom-list__item">
  252.                 <a href="/shop/notifi/">各種申請</a>
  253.             </li>
  254.             <li class="ec-header-bottom-list__item">
  255.                 <a href="/shop/promotion/">プロモーション</a>
  256.             </li>
  257.             <li class="ec-header-bottom-list__item ec-header-bottom-list__item--colored">
  258.                 <a href="{{ url('mypage') }}">マイページ</a>
  259.             </li>
  260.         </ul>
  261.     </div>
  262. {% endif %}