app/template/default/Block/header0.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. {% block stylesheet %}
  9.     <link rel="stylesheet" href="{{ asset('assets/css/main_module_commom.css', 'user_data') }}">
  10.     <link rel="stylesheet" href="{{ asset('assets/css/header_style.css', 'user_data') }}">
  11. {% endblock %}
  12. {% block javascript %}
  13.     <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  14.     <script src="{{ asset('assets/js/header.js', 'user_data') }}"></script>
  15. {% endblock  %}
  16. <div class="fixed-header">
  17.     <section>
  18.     <div id="site_header">
  19.         <div class="header_logo">
  20.             <a href="https://photo-pub.com">
  21.                 <img src="{{ asset('assets/img/common/header_logo_0.png', 'user_data') }}">
  22.             </a>
  23.         </div>
  24.         <div class="header_menus">
  25.             <div class="header_inner1">
  26.                 {{ render(path('block_search_product')) }}
  27.                 <div class="header_link1 pc">
  28.                     <ul class="link1">
  29.                         <li><a href="https://photo-pub.co.jp/news">NEWS</a></li>
  30.                         <li><a href="https://photo-pub.co.jp/company">会社概要</a></li>
  31.                         <li><a href="{{ url('contact') }}">お問い合わせ</a></li>
  32.                         <li><a href="{{ url('opinion') }}">意見箱</a></li>
  33.                     </ul>
  34.                 </div>
  35.                 <div class="header_link2">
  36.                     {{ include('Block/login.twig') }}
  37.                 </div>
  38.                 <div class="hamburger-menu sp">
  39.                     <button id="hamburger" class="hamburger">
  40.                         <span></span>
  41.                         <span></span>
  42.                         <span></span>
  43.                     </button>
  44.                     <nav id="menus" class="menus">
  45.                         <ul class="hamburger-tabs">
  46.                             <li class="menu-item">
  47.                                 <a href="https://photo-pub.com/">TOP</a>
  48.                             </li>
  49.                             <li class="menu-item">
  50.                                 <a href="{{ url('homepage') }}">フォトパブ堂書店</a>
  51.                                 <ul class="submenu">
  52.                                     <li><span></span><a href="{{ url('homepage') }}books">  フォトパブ堂書店TOP</a></li>
  53.                                     <li><span></span><a href="{{ url('homepage') }}products/list?category_id=1">  鉄道</a></li>
  54.                                     <li><span></span><a href="{{ url('homepage') }}products/list?category_id=2">  バス</a></li>
  55.                                     <li><span></span><a href="{{ url('homepage') }}products/list?category_id=5">  古地図・歴史散歩(地域)</a></li>
  56.                                     <li><span></span><a href="{{ url('homepage') }}products/list?category_id=7">  その他</a></li>
  57.                                 </ul>
  58.                             </li>
  59.                             <li class="menu-item">
  60.                                 <a href="https://jihi.photo-pub.co.jp/">自費出版サービス</a>
  61.                                 <ul class="submenu">
  62.                                     <li><span></span><a href="https://jihi.photo-pub.co.jp/">詳細情報</a></li>
  63.                                 </ul>
  64.                             </li>
  65.                             <li class="menu-item">
  66.                                 <a href="https://photo-pub.co.jp/event">イベント情報</a>
  67.                                 <ul class="submenu">
  68.                                     <li><span></span><a href="https://photo-pub.co.jp/event">イベント一覧</a></li>
  69.                                 </ul>
  70.                             </li>
  71.                             <li class="menu-item">
  72.                                 <a href="https://photo-pub.co.jp/recruit">各種募集</a>
  73.                                 <ul class="submenu">
  74.                                     <li><span></span><a href="https://photo-pub.co.jp/recruit">募集一覧</a></li>
  75.                                 </ul>
  76.                             </li>
  77.                         </ul>
  78.                         <ul class="hamburger-links">
  79.                             <li><a href="https://photo-pub.co.jp/news">NEWS</a></li>
  80.                             <li><a href="https://photo-pub.co.jp/company">会社概要</a></li>
  81.                             <li><a href="{{ url('contact') }}">お問い合わせ</a></li>
  82.                             <li><a href="{{ url('opinion') }}">意見箱</a></li>
  83.                             <li><a href="https://photo-pub.com/help/privacy">プライバシー<br class="br_linkbox">ポリシー</a></li>
  84.                             <li><a href="https://photo-pub.com/help/tradelaw">特定商取引法<br class="br_linkbox">に基づく表記</a></li>
  85.                         </ul>
  86.                         <ul class="hamburger-sns">
  87.                             <li><a><img src="{{ asset('assets/img/common/sns_ic_insta.png', 'user_data') }}" alt="insta"></a></li>
  88.                             <li><a href="https://www.youtube.com/@%E3%83%95%E3%82%A9%E3%83%88%E3%83%91%E3%83%96"><img src="{{ asset('assets/img/common/sns_ic_youtube.svg', 'user_data') }}" alt="youtube"></a></li>
  89.                             <li><a href="https://twitter.com/share?url=https://photo-pub.co.jp/&via=photopub402&hashtags=%E6%A0%AA%E5%BC%8F%E4%BC%9A%E7%A4%BE%E3%83%95%E3%82%A9%E3%83%88%E3%83%91%E3%83%96%E3%83%AA%E3%83%83%E3%82%B7%E3%83%B3%E3%82%B0&text=%E6%A0%AA%E5%BC%8F%E4%BC%9A%E7%A4%BE%E3%83%95%E3%82%A9%E3%83%88%E3%83%91%E3%83%96%E3%83%AA%E3%83%83%E3%82%B7%E3%83%B3%E3%82%B0"><img src="{{ asset('assets/img/common/sns_ic_x.svg', 'user_data') }}" alt="x"></a></li>
  90.                             <li><a href="http://www.facebook.com/share.php?u=https://photo-pub.co.jp/"><img src="{{ asset('assets/img/common/sns_ic_fb.svg', 'user_data') }}" alt="fb"></a></li>
  91.                         </ul>
  92.                     </nav>
  93.                 </div>
  94.             </div>
  95.             <div class="header_inner2 pc">
  96.                 <ul class="select_btns">
  97.                     <li class="btn"><a href="https://photo-pub.com/">TOP</a></li>
  98.                     <li class="btn"><a href="{{ url('homepage') }}books">フォトパブ堂書店</a></li>
  99.                     <li class="btn"><a href="http://jihi.photo-pub.co.jp/">自費出版サービス</a></li>
  100.                     <li class="btn"><a href="https://photo-pub.co.jp/event">イベント情報</a></li>
  101.                     <li class="btn"><a href="https://photo-pub.co.jp/recruit">各種募集</a></li>
  102.                 </ul>
  103.             </div>
  104.         </div>
  105.     </div>
  106.     {#<div class="tabs">#}
  107.     {#    <ul class="tabs_inner">#}
  108.     {#        {% set Categories = repository('Eccube\\Entity\\Category').getList() %}#}
  109.     {#        {% macro tree(Category) %}#}
  110.     {#            {% from _self import tree %}#}
  111.     {#            <a href="{{ url('product_list') }}?category_id={{ Category.id }}">#}
  112.     {#                {{ Category.name }}#}
  113.     {#            </a>#}
  114.     {#            {% if Category.children|length > 0 %}#}
  115.     {#                <ul>#}
  116.     {#                    {% for ChildCategory in Category.children %}#}
  117.     {#                        <li>#}
  118.     {#                            {{ tree(ChildCategory) }}#}
  119.     {#                        </li>#}
  120.     {#                    {% endfor %}#}
  121.     {#                </ul>#}
  122.     {#            {% endif %}#}
  123.     {#        {% endmacro %}#}
  124.     
  125.             {# @see https://github.com/bolt/bolt/pull/2388 #}
  126.     {#        {% from _self import tree %}#}
  127.             
  128.     {#        <div class="ec-categoryNaviRole">#}
  129.     {#            <div class="ec-itemNav">#}
  130.     {#                <ul class="ec-itemNav__nav">#}
  131.     {#                    {% for Category in Categories %}#}
  132.     {#                        <li>#}
  133.     {#                            {{ tree(Category) }}#}
  134.     {#                        </li>#}
  135.     {#                    {% endfor %}#}
  136.     {#                </ul>#}
  137.     {#            </div>#}
  138.     {#        </div>#}
  139.     {#    </ul>#}
  140.     {#</div>#}
  141.     <div class="sp-search-form">
  142.         <form action="{{ path('product_list') }}" class="search-form sp">
  143.             <input type="text" class="search-form-input" placeholder="キーワード(タイトル、著者など)を入力">
  144.             <button type="submit" class="search-form-submit" aria-label="検索"></button>
  145.         </form>
  146.     </div>
  147. </section>
  148. </div>
  149. <style>
  150.     .fixed-header {
  151.     position: fixed;
  152.     top: 0;
  153.     left: 0;
  154.     width: 100%;
  155.     z-index: 9999;
  156.     background-color: #fff; /* 背景が透けないように */
  157.     box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 任意:影で浮かせる */
  158. }
  159. body {
  160.     padding-top: 100px; /* ヘッダーの高さに合わせて調整(例:80px) */
  161. }
  162. @media screen and (max-width: 820px) {
  163.     body {
  164.         padding-top: 120px; /* ヘッダーの高さに合わせて調整(例:80px) */
  165.     }
  166. }
  167. </style>