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