app/template/kinkodo/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. <div class="top">
  9.     <div class="left">
  10.         
  11.         <p class="heading">名入れカレンダー印刷・オリジナルカレンダー製作</p>
  12.         <h1 class="logo opacity">
  13.         
  14.             <a href="/"><img src="{{ asset('assets/assets/images/h-logo.webp') }}" alt="{% if app.request.attributes.get('_route') == 'product_detail' and Product is defined %}{% if Product.code_min is not empty %}{{ Product.code_min }}{% endif %}{{ Product.name }} / {{ BaseInfo.shop_name }}{% elseif app.request.attributes.get('_route') == 'homepage' %}【公式】{{ BaseInfo.shop_name }}|名入れカカレンダー製作 10冊からの小ロットも対応レンダー印刷・オリジナル{% elseif subtitle is defined and subtitle is not empty %}{{ subtitle }}|{{ BaseInfo.shop_name }}{% elseif title is defined and title is not empty %}{{ title }}|{{ BaseInfo.shop_name }}{% else %}{{ BaseInfo.shop_name }}{% endif %}"></a>
  15.         </h1>
  16.     </div>
  17.     <div class="right">
  18.         <div class="head">
  19.             <ul>
  20.                 <li class="wallhanging">
  21.                     
  22.                         <span class="title">現在の混雑状況(壁掛け)</span>
  23.                         <span class="daybox">現在の納品日<span class="day">{{ include('Block/textnouhinkabekake.twig') }}</span>
  24.                         </span>
  25.             
  26.                 </li>
  27.                 <li class="tabletop">
  28.                 
  29.                         <span class="title">現在の混雑状況(卓上)</span>
  30.                         <span class="daybox">現在の納品日<span class="day">{{ include('Block/textnouhintakuzyou.twig') }}</span>
  31.                         </span>
  32.                     
  33.                 </li>
  34.                 <li class="fax">
  35.                     <a href="{{ asset('assets/assets/pdf/mitsumori.pdf') }}" target="_blank">FAX見積用紙</a>
  36.                     <a href="{{ asset('assets/assets/pdf/order.pdf') }}" target="_blank">FAX注文用紙</a>
  37.                 </li>
  38.             </ul>
  39.         </div>
  40.         <div class="bottom">
  41.             <ul>
  42. {% if is_granted('ROLE_USER') %}
  43. <li>
  44. <a class="" href="{{ url('mypage') }}">
  45.                
  46. <div class="icon"><img src="{{ asset('assets/assets/images/kaiin.webp') }}"></div><span>{{ 'マイページ'|trans }}</span>
  47.             </a>
  48.             </li>
  49.             <li>
  50. <a class="" href="{{ url('logout') }}">
  51.                 
  52.                 <div class="icon"><img src="{{ asset('assets/assets/images/login.webp') }}"></div><span>{{ 'ログアウト'|trans }}</span>
  53.             </a>
  54. </li>
  55. {% else %}
  56. <li>
  57. <a class="" href="{{ url('entry') }}">
  58.                 
  59.                 <div class="icon"><img src="{{ asset('assets/assets/images/kaiin.webp') }}"></div><span>{{ '新規会員登録'|trans }}</span>
  60.             </a>
  61.             </li>
  62.             <li>
  63. <a class="" href="{{ url('mypage_login') }}">
  64.                 <div class="icon"><img src="{{ asset('assets/assets/images/login.webp') }}"></div><span>{{ 'ログイン'|trans }}</span>
  65.             </a>
  66. </li>
  67. {% endif %}
  68.                 <li>
  69.                     <a href="{{ url('cart') }}">
  70.                         <div class="icon"><img src="{{ asset('assets/assets/images/cart.webp') }}"></div>カート</a>
  71.                 </li>
  72.             </ul>
  73.             <div class="btn data">
  74.                 <a href="/user_data/request">データ入稿はこちら</a>
  75.             </div>
  76.             {{ render(path('block_search_product')) }}
  77.             {# <form action="/" method="get">
  78.                 <input name="query" type="text" value="" placeholder="商品を探す">
  79.                 <input name="submit" type="submit" value="">
  80.             </form> #}
  81.             <div class="tel-contact">
  82.                 <div class="tel">
  83.                     <a href="tel:0532-52-5749">
  84.                         <span>TEL.</span>0532-52-5749</a>
  85.                 </div>
  86.                 <div class="btn">
  87.                     <a href="/contact?contacttype=お問い合わせ">お問い合わせ</a>
  88.                 </div>
  89.             </div>
  90.         </div>
  91.     </div>
  92. </div>
  93. <nav id="gnav">
  94.     <ul>
  95.         <li>
  96.             <a href="/products/list">商品一覧</a>
  97. {% set Categories = repository('Eccube\\Entity\\Category').getList() %}
  98. {% macro tree(Category) %}
  99.     {% from _self import tree %}
  100.     <a href="{{ url('product_list') }}?category_id={{ Category.id }}">
  101.         {{ Category.name }}
  102.     </a>
  103.     {% if Category.children|length > 0 %}
  104.         <ul class="productcategory_list_child">
  105.             {% for ChildCategory in Category.children %}
  106.                 <li>
  107.                     {{ tree(ChildCategory) }}
  108.                 </li>
  109.             {% endfor %}
  110.         </ul>
  111.     {% endif %}
  112. {% endmacro %}
  113. {# @see https://github.com/bolt/bolt/pull/2388 #}
  114. {% from _self import tree %}
  115.             {% for Category in Categories %}
  116.             {% if Category.id is same as(7) %}
  117.              <ul class=""> <li>
  118.                     <a href="{{ url('product_list') }}?category_id={{ Category.id }}">
  119.        壁掛けカレンダー
  120.     </a>
  121.     {% if Category.children|length > 0 %}
  122.         <ul class="productcategory_list_child">
  123.             {% for ChildCategory in Category.children %}
  124.                 <li>
  125.                     {{ tree(ChildCategory) }}
  126.                 </li>
  127.             {% endfor %}
  128.         </ul>
  129.          {% endif %}
  130.                 </li></ul>
  131.                 {% endif %}
  132.             {% endfor %}
  133.             {% for Category in Categories %}
  134.             {% if Category.id is same as(8) %}
  135.               <ul class=""><li>
  136.                     <a href="{{ url('product_list') }}?category_id={{ Category.id }}">
  137.         卓上カレンダー
  138.     </a>
  139.     {% if Category.children|length > 0 %}
  140.         <ul class="productcategory_list_child">
  141.             {% for ChildCategory in Category.children %}
  142.                 <li>
  143.                     {{ tree(ChildCategory) }}
  144.                 </li>
  145.             {% endfor %}
  146.         </ul>
  147.          {% endif %}
  148.                 </li></ul>
  149.                 {% endif %}
  150.             {% endfor %}
  151.             {% for Category in Categories %}
  152.             {% if Category.id is same as(9) %}
  153.                 <ul class=""><li>
  154.                    <a href="{{ url('product_list') }}?category_id={{ Category.id }}">
  155.         ダイアリー・手帳
  156.     </a>
  157.     {% if Category.children|length > 0 %}
  158.         <ul class="productcategory_list_child">
  159.             {% for ChildCategory in Category.children %}
  160.                 <li>
  161.                     {{ tree(ChildCategory) }}
  162.                 </li>
  163.             {% endfor %}
  164.         </ul>
  165.          {% endif %}
  166.                 </li></ul>
  167.                 {% endif %}
  168.             {% endfor %}
  169.         
  170. <ul class=""><li>
  171.   <a href="/products/list?category_id=62">贈答用ギフトボックス/付属品</a>
  172. </li></ul>
  173.        {#                 
  174. {% set Categories = repository('Eccube\\Entity\\Category').getList() %}
  175. {% macro tree(Category) %}
  176.     {% from _self import tree %}
  177.     <a href="{{ url('product_list') }}?category_id={{ Category.id }}">
  178.         {{ Category.name }}
  179.     </a>
  180.     {% if Category.children|length > 0 %}
  181.         <ul class="productcategory_list_child">
  182.             {% for ChildCategory in Category.children %}
  183.                 <li>
  184.                     {{ tree(ChildCategory) }}
  185.                 </li>
  186.             {% endfor %}
  187.         </ul>
  188.     {% endif %}
  189. {% endmacro %}
  190. {% from _self import tree %}
  191.         
  192.             {% for Category in Categories %}
  193.             {% if Category.id is same as(1) %}
  194.             {% else %}
  195.             <ul class="">
  196.                 <li class="productcategory_list{% if Category.children|length > 0 %} list_parent{% endif %}">
  197.                     {{ tree(Category) }}
  198.                 </li>
  199.             </ul>
  200.              {% endif %}
  201.             {% endfor %}
  202.          #}
  203.             {# <!-- <div class="nav"> --> #}
  204.             {# <ul>
  205.                 <li>
  206.                     <a href="">項目名が入ります</a>
  207.                     <ul>
  208.                         <li><a href="">項目名項目名項目名</a></li>
  209.                         <li><a href="">項目名項目名項目名</a></li>
  210.                         <li><a href="">項目名項目名項目名</a></li>
  211.                         <li><a href="">項目名項目名項目名</a></li>
  212.                     </ul>
  213.                 </li>
  214.             </ul>
  215.             <ul>
  216.                 <li>
  217.                     <a href="">項目名が入ります</a>
  218.                     <ul>
  219.                         <li><a href="">項目名項目名項目名</a></li>
  220.                         <li><a href="">項目名項目名項目名</a></li>
  221.                         <li><a href="">項目名項目名項目名</a></li>
  222.                         <li><a href="">項目名項目名項目名</a></li>
  223.                     </ul>
  224.                 </li>
  225.             </ul>
  226.             <ul>
  227.                 <li>
  228.                     <a href="">項目名が入ります</a>
  229.                     <ul>
  230.                         <li><a href="">項目名項目名項目名</a></li>
  231.                         <li><a href="">項目名項目名項目名</a></li>
  232.                         <li><a href="">項目名項目名項目名</a></li>
  233.                         <li><a href="">項目名項目名項目名</a></li>
  234.                     </ul>
  235.                 </li>
  236.             </ul> #}
  237.             {# <!-- </div> --> #}
  238.         </li>
  239.         
  240.         <li>
  241.             <a href="/blogs/list?blogs_category_id=3">ご利用ガイド</a>
  242.             
  243.             <ul class="guidesubmenu">
  244.                 <li>
  245.                     {# <a href="/blogs/list?blogs_category_id=3">ご利用ガイド</a> #}
  246.                     <ul>
  247.                         <li><a href="/blogs/detail/226">ご利用の流れについて</a></li>
  248.                         <li><a href="/blogs/detail/227">お見積/ご注文依頼後について</a></li>
  249.                         <li><a href="/blogs/detail/228">ホームページの表示価格について</a></li>
  250.                         <li><a href="/blogs/detail/229">名入れ印刷(社名印刷)について</a></li>
  251.                         <li><a href="/blogs/detail/231">納期について</a></li>
  252.                         <li><a href="/blogs/detail/232">サンプル(現品見本)ご希望の方へ</a></li>
  253.                         <li><a href="/blogs/detail/233">カレンダー虎の巻</a></li>
  254.                         <li><a href="/blogs/detail/234">お断りする場合</a></li>
  255.                     </ul>
  256.                 </li>
  257.             </ul>
  258.             
  259.         </li>
  260.         <li>
  261.             <a href="/blogs/detail/237">お客様の声</a>
  262.         </li>
  263.         <li>
  264.             <a href="/user_data/qanda">よくあるご質問</a>
  265.         </li>
  266.         <li>
  267.             <a href="/blogs/list?blogs_category_id=1">スタッフブログ</a>
  268.         </li>
  269.     </ul>
  270. </nav>