app/template/myTemplate/Block/header.twig line 17

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.     <section id="humburger-menu">
  9.         <div class="wrapper">
  10.             <div class="menu-container">
  11.                 <div class="menu-left">
  12.                     <div class="swiper swiper-humbuger-menu">
  13.                         <div class="swiper-wrapper">
  14.                             {% set Categories = repository('Eccube\\Entity\\Category').getList() %}
  15.                             {% for Category in Categories %}
  16.                                 {% set ChiledCategory = repository('Eccube\\Entity\\Category').find(Category.id) %}
  17.                                 {% set child_categories = ChiledCategory.getChildren %}
  18.                                 {% if child_categories %}
  19.                                     <div class="swiper-slide">
  20.                                         <div class="menu-change">
  21.                                             <h2><a href="/shop/products/list?category_id={{ Category.id }}">{{ Category.name }}</a></h2>
  22.                                         </div>
  23.                                         <ul class="menu-list">
  24.                                             {% for cate1 in child_categories %}
  25.                                                 {% set ChiledCategory2 = repository('Eccube\\Entity\\Category').find(cate1.id) %}
  26.                                                 {% set child_categories2 = ChiledCategory2.getChildren %}
  27.                                                 {% if child_categories2|length > 0 %}
  28.                                                     <li class="accordion-menu">
  29.                                                         <div class="main-menu">
  30.                                                             <p><a href="/shop/products/list?category_id={{ cate1.id }}">{{ cate1.name }}</a></p>
  31.                                                             <div class="arrow"></div>
  32.                                                         </div>
  33.                                                         <ul class="sub-menu">
  34.                                                             {% for cate2 in child_categories2 %}
  35.                                                                 <li class="menu"><a href="/shop/products/list?category_id={{ cate2.id }}">{{ cate2.name }}</a></li>
  36.                                                             {% endfor %}
  37.                                                         </ul>
  38.                                                     </li>
  39.                                                 {% else %}
  40.                                                     <li class="main-menu">
  41.                                                         <a href="/shop/products/list?category_id={{ cate1.id }}">{{ cate1.name }}</a>
  42.                                                     </li>
  43.                                                 {% endif %}
  44.                                             {% endfor %}
  45.                                         </ul>
  46.                                     </div>
  47.                                 {% else %}
  48.                                     <div class="swiper-slide">
  49.                                         <div class="menu-change">
  50.                                             <h2>1.<a href="/shop/products/list?category_id={{ Category.id }}">{{ Category.name }}</a></h2>
  51.                                         </div>
  52.                                     </div>
  53.                                 {% endif %}
  54.                             {% endfor %}
  55.                         </div>
  56.                         <div class="swiper-button-prev"></div>
  57.                         <div class="swiper-button-next"></div>
  58.                     </div>
  59.                 </div>
  60.                 <div class="menu-right">
  61.                     <div class="menu-right-container">
  62.                         <ul class="menu-right-list">
  63.                             <li>
  64.                                 <a href="/">HOME</a>
  65.                             </li>
  66.                             <li>
  67.                                 <a href="/privacy-policy">プライバシーポリシー</a>
  68.                             </li>
  69.                             <li>
  70.                                 <a href="/sale-policy">特定商取引に基づく表記</a>
  71.                             </li>
  72.                             <li>
  73.                                 <a href="/about-us">運営会社</a>
  74.                             </li>
  75.                             <li>
  76.                                 <a href="/news">新着情報</a>
  77.                             </li>
  78.                             <li>
  79.                                 <a href="/contact">お問い合せ</a>
  80.                             </li>
  81.                         </ul>
  82.                         <div class="company">
  83.                             <p class="name">RENEN JAPAN</p>
  84.                             <p class="address">〒066-0031 北海道恵庭市新町52-2</p>
  85.                             <div class="tel-message">
  86.                                 <span class="tel">Tel.</span>
  87.                                 <span class="tel-number">0123-23-1116</span>
  88.                             </div>
  89.                             <p class="time">AM9:00 ~ PM18:00</p>
  90.                         </div>
  91.                     </div>
  92.                 </div>
  93.             </div>
  94.         </div>
  95.     </section>
  96.     <!--
  97.     <section id="humburger-menu">
  98.         <div class="wrapper">
  99.             <div class="menu-container">
  100.                 <div class="menu-left">
  101.                     <div class="swiper swiper-humbuger-menu">
  102.                         <div class="swiper-wrapper">
  103.                             <div class="swiper-slide">
  104.                                 <div class="menu-change">
  105.                                     <h2><a href="/mx">MX</a></h2>
  106.                                 </div>
  107.                                 <ul class="menu-list">
  108.                                     <li class="accordion-menu">
  109.                                         <div class="main-menu">
  110.                                             <p>MOTO KITS</p>
  111.                                             <div class="arrow"></div>
  112.                                         </div>
  113.                                         <ul class="sub-menu">
  114.                                             <li class="menu">
  115.                                                 <a href="#">SLOPE RESET KITS</a>
  116.                                             </li>
  117.                                             <li class="menu">
  118.                                                 <a href="#">S323 RESET KITS</a>
  119.                                             </li>
  120.                                             <li class="menu">
  121.                                                 <a href="#">WHITE CAMO COLLECTION</a>
  122.                                             </li>
  123.                                             <li class="menu">
  124.                                                 <a href="#">GREEN CAMO COLLECTION</a>
  125.                                             </li>
  126.                                             <li class="menu">
  127.                                                 <a href="#">ZEBRA COLLECTION</a>
  128.                                             </li>
  129.                                             <li class="menu">
  130.                                                 <a href="#">BRAKE COLLECTION</a>
  131.                                             </li>
  132.                                         </ul>
  133.                                     </li>
  134.                                     <li class="accordion-menu">
  135.                                         <div class="main-menu">
  136.                                             <p>VENTED KITS</p>
  137.                                             <div class="arrow"></div>
  138.                                         </div>
  139.                                         <ul class="sub-menu">
  140.                                             <li class="menu">
  141.                                                 <a href="#">WHITE CAMO / VENTED</a>
  142.                                             </li>
  143.                                             <li class="menu">
  144.                                                 <a href="#">GREEN CAMO / VENTED</a>
  145.                                             </li>
  146.                                             <li class="menu">
  147.                                                 <a href="#">BLOCK / VIGOR VENTED KITS</a>
  148.                                             </li>
  149.                                             <li class="menu">
  150.                                                 <a href="#">SPECTRUM / VIGOR VENTED KITS</a>
  151.                                             </li>
  152.                                         </ul>
  153.                                     </li>
  154.                                     <li class="accordion-menu">
  155.                                         <div class="main-menu">
  156.                                             <p>MX RACEPANTS</p>
  157.                                             <div class="arrow"></div>
  158.                                         </div>
  159.                                         <ul class="sub-menu">
  160.                                             <li class="menu">XXXX</li>
  161.                                         </ul>
  162.                                     </li>
  163.                                     <li class="main-menu">
  164.                                         <a href="#">MX JERSEYS</a>
  165.                                     </li>
  166.                                     <li class="main-menu">
  167.                                         <a href="#">RENEN × ALPINESTARS </a>
  168.                                     </li>
  169.                                     <li class="main-menu">
  170.                                         <a href="#">RENEN × BELL HELMET</a>
  171.                                     </li>
  172.                                     <li class="main-menu">
  173.                                         <a href="#">RENEN × 100% GOGGLE</a>
  174.                                     </li>
  175.                                     <li class="main-menu">
  176.                                         <a href="#">RENEN × STAYCO</a>
  177.                                     </li>
  178.                                     <li class="main-menu">
  179.                                         <a href="#">GLOVE</a>
  180.                                     </li>
  181.                                     <li class="accordion-menu">
  182.                                         <div class="main-menu">
  183.                                             <p>YOUTH</p>
  184.                                             <div class="arrow"></div>
  185.                                         </div>
  186.                                         <ul class="sub-menu">
  187.                                             <li class="menu">YOUTH MX KITS</li>
  188.                                         </ul>
  189.                                     </li>
  190.                                 </ul>
  191.                             </div>
  192.                             <div class="swiper-slide">
  193.                                 <div class="menu-change">
  194.                                     <h2><a href="/mtb">MTB</a></h2>
  195.                                 </div>
  196.                                 <ul class="menu-list">
  197.                                     <li class="main-menu">
  198.                                         <a href="#">MTB KITS</a>
  199.                                     </li>
  200.                                     <li class="main-menu">
  201.                                         <a href="#">MTB JERSEYS</a>
  202.                                     </li>
  203.                                     <li class="main-menu">
  204.                                         <a href="#">MTB SHORTS</a>
  205.                                     </li>
  206.                                     <li class="main-menu">
  207.                                         <a href="#">MTB PANTS</a>
  208.                                     </li>
  209.                                     <li class="main-menu">
  210.                                         <a href="#">MTB GLOVES</a>
  211.                                     </li>
  212.                                     <li class="main-menu">
  213.                                         <a href="#">GLOVE</a>
  214.                                     </li>
  215.                                 </ul>
  216.                             </div>
  217.                             <div class="swiper-slide">
  218.                                 <div class="menu-change">
  219.                                     <h2><a href="/lifestyle">LIFESTYLE</a></h2>
  220.                                 </div>
  221.                                 <ul class="menu-list">
  222.                                     <li class="main-menu">
  223.                                         <a href="#">HOODIES</a>
  224.                                     </li>
  225.                                     <li class="main-menu">
  226.                                         <a href="#">HATS</a>
  227.                                     </li>
  228.                                 </ul>
  229.                             </div>
  230.                             <div class="swiper-slide">
  231.                                 <div class="menu-change">
  232.                                     <h2><a href="/sale">SALE</a></h2>
  233.                                 </div>
  234.                             </div>
  235.                         </div>
  236.                         <div class="swiper-button-prev"></div>
  237.                         <div class="swiper-button-next"></div>
  238.                     </div>
  239.                 </div>
  240.                 <div class="menu-right">
  241.                     <div class="menu-right-container">
  242.                         <ul class="menu-right-list">
  243.                             <li>
  244.                                 <a href="/">HOME</a>
  245.                             </li>
  246.                             <li>
  247.                                 <a href="/privacy-policy">プライバシーポリシー</a>
  248.                             </li>
  249.                             <li>
  250.                                 <a href="/sale-policy">特定商取引に基づく表記</a>
  251.                             </li>
  252.                             <li>
  253.                                 <a href="/about-us">運営会社</a>
  254.                             </li>
  255.                             <li>
  256.                                 <a href="/news">新着情報</a>
  257.                             </li>
  258.                             <li>
  259.                                 <a href="/contact">お問い合せ</a>
  260.                             </li>
  261.                         </ul>
  262.                         <div class="company">
  263.                             <p class="name">RENEN JAPAN</p>
  264.                             <p class="address">〒066-0031 北海道恵庭市新町52-2</p>
  265.                             <div class="tel-message">
  266.                                 <span class="tel">Tel.</span>
  267.                                 <span class="tel-number">0123-23-1116</span>
  268.                             </div>
  269.                             <p class="time">AM9:00 ~ PM18:00</p>
  270.                         </div>
  271.                     </div>
  272.                 </div>
  273.             </div>
  274.         </div>
  275.     </section>
  276.     -->
  277.     <header id="header" class="header">
  278.         <div class="header">
  279.             <div class="header-left">
  280.                 <h1>
  281.                     <a href="/">
  282.                         <img src="https://mx-build.jp/wp-content/themes/%E3%82%BF%E3%82%A4%E3%82%A8%E3%82%A4%E5%8C%97%E6%B5%B7%E9%81%93%E3%82%A8%E3%83%B3%E3%82%B7%E3%82%99%E3%83%8B%E3%82%A2%E3%82%A2%E3%83%AA%E3%83%B3%E3%82%AF%E3%82%99/img/%E3%82%AF%E3%82%99%E3%83%AB%E3%83%BC%E3%83%95%E3%82%9A%2021716.png" alt="top画像" class="logo">
  283.                         <img src="https://mx-build.jp/wp-content/themes/%E3%82%BF%E3%82%A4%E3%82%A8%E3%82%A4%E5%8C%97%E6%B5%B7%E9%81%93%E3%82%A8%E3%83%B3%E3%82%B7%E3%82%99%E3%83%8B%E3%82%A2%E3%82%A2%E3%83%AA%E3%83%B3%E3%82%AF%E3%82%99/img/%E3%82%AF%E3%82%99%E3%83%AB%E3%83%BC%E3%83%95%E3%82%9A%2021715.png" alt="top画像" class="logo-black">
  284.                         <!--<p class="japan">JAPAN</p>-->
  285.                     </a>
  286.                 </h1>
  287.             </div>
  288.             <div class="header-right">
  289.                 <ul class="icon-list">
  290.                     {{ include('Block/login.twig') }}
  291.                     <div class="menu-btn">
  292.                         <span></span>
  293.                         <span></span>
  294.                         <span></span>
  295.                     </div>
  296.                 </ul>
  297.             </div>
  298.         </div>
  299.     </header>