app/template/iwaokaexpress/default_frame.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. {#
  3. This file is part of EC-CUBE
  4. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  5. http://www.ec-cube.co.jp/
  6. For the full copyright and license information, please view the LICENSE
  7. file that was distributed with this source code.
  8. #}
  9. <html lang="{{ eccube_config.locale }}">
  10. <head prefix="og: https://ogp.me/ns# fb: https://ogp.me/ns/fb# product: https://ogp.me/ns/product#">
  11.     <meta charset="utf-8">
  12.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  13.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  14.     <title>{{ BaseInfo.shop_name }}{% if subtitle is defined and subtitle is not empty %} / {{ subtitle }}{% elseif title is defined and title is not empty %} / {{ title }}{% endif %}</title>
  15.     {% if Page.meta_tags is not empty %}
  16.         {{ include(template_from_string(Page.meta_tags), sandboxed = true) }}
  17.         {% if Page.description is not empty %}
  18.             <meta name="description" content="{{ Page.description }}">
  19.         {% endif %}
  20.     {% else %}
  21.         {{ include('meta.twig') }}
  22.     {% endif %}
  23.     {% if Page.author is not empty %}
  24.         <meta name="author" content="{{ Page.author }}">
  25.     {% endif %}
  26.     {% if Page.keyword is not empty %}
  27.         <meta name="keywords" content="{{ Page.keyword }}">
  28.     {% endif %}
  29.     {% if Page.meta_robots is not empty %}
  30.         <meta name="robots" content="{{ Page.meta_robots }}">
  31.     {% endif %}
  32.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  33.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  34.     <link rel="stylesheet" href="{{ asset('assets/css/variables.css') }}">
  35.     <link rel="stylesheet" href="{{ asset('assets/css/layout.css') }}">
  36.     <link rel="stylesheet" href="{{ asset('assets/css/components.css') }}">
  37.     <link rel="stylesheet" href="{{ asset('assets/css/base.css') }}">
  38.     <link rel="stylesheet" href="{{ asset('assets/css/product-list.css') }}">
  39.     <link rel="stylesheet" href="{{ asset('assets/css/my-order.css') }}">
  40.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  41.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  42.     {% block stylesheet %}{% endblock %}
  43.     <script>
  44.         $(function() {
  45.             $.ajaxSetup({
  46.                 'headers': {
  47.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  48.                 }
  49.             });
  50.         });
  51.     </script>
  52.     {# Layout: HEAD #}
  53.     {% if Layout.Head %}
  54.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  55.     {% endif %}
  56.     {# プラグイン用styleseetやmetatagなど #}
  57.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  58.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  59. </head>
  60. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  61. {# Layout: BODY_AFTER #}
  62. {% if Layout.BodyAfter %}
  63.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  64. {% endif %}
  65. {% if isMaintenance %}
  66.     <div class="ec-maintenanceAlert">
  67.         <div>
  68.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  69.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  70.         </div>
  71.     </div>
  72. {% endif %}
  73. <div class="ec-layoutRole">
  74.     {# Layout: HEADER #}
  75.     {% if Layout.Header %}
  76.         <header class="ec-layoutRole__header">
  77.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  78.         </header>
  79.     {% endif %}
  80.     {# Layout: CONTENTS_TOP #}
  81.     {% if Layout.ContentsTop %}
  82.         <div class="ec-layoutRole__contentTop">
  83.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  84.         </div>
  85.     {% endif %}
  86.     <!-- 2カラムレイアウト -->
  87.     <div class="btob-layout">
  88.         {# Layout: SIDE_LEFT #}
  89.         {% if Layout.SideLeft %}
  90.             {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  91.         {% endif %}
  92.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  93.         {% if Layout.ColumnNum == 2 %}
  94.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  95.         {% elseif Layout.ColumnNum == 3 %}
  96.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  97.         {% endif %}
  98.         <div class="btob-main-area">
  99.             {# Layout: MAIN_TOP #}
  100.             {% if Layout.MainTop %}
  101.                 <div class="ec-layoutRole__mainTop" style="background-color: #f5f5f5">
  102.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  103.                 </div>
  104.             {% endif %}
  105.             {# MAIN AREA #}
  106.             {% block main %}{% endblock %}
  107.             {# Layout: MAIN_Bottom #}
  108.             {% if Layout.MainBottom %}
  109.                 <div class="ec-layoutRole__mainBottom">
  110.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  111.                 </div>
  112.             {% endif %}
  113.         </div>
  114.         {# Layout: SIDE_RIGHT #}
  115.         {% if Layout.SideRight %}
  116.             <aside class="ec-layoutRole__right">
  117.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  118.             </aside>
  119.         {% endif %}
  120.     </div>
  121.     {# Layout: CONTENTS_BOTTOM #}
  122.     {% if Layout.ContentsBottom %}
  123.         <div class="ec-layoutRole__contentBottom">
  124.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  125.         </div>
  126.     {% endif %}
  127.     {# Layout: CONTENTS_FOOTER #}
  128.     {% if Layout.Footer %}
  129.         <footer class="ec-layoutRole__footer">
  130.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  131.         </footer>
  132.     {% endif %}
  133.     <div class="ec-overlayRole"></div>
  134. </div>
  135. {# モバイル用ドロワー(全ページで表示・動作) #}
  136. <div class="btob-drawer-overlay" id="drawerOverlay"></div>
  137. <aside class="btob-drawer" id="drawer">
  138.   <div class="btob-drawer__header">
  139.     <button type="button" class="btob-drawer__close" id="drawerClose" aria-label="閉じる">
  140.       <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
  141.         <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
  142.       </svg>
  143.     </button>
  144.   </div>
  145.   <div class="btob-drawer__search">
  146.     <form method="get" action="{{ url('product_list') }}" class="btob-drawer__search-form">
  147.       <div class="btob-drawer__keyword">
  148.         <input type="text" name="name" placeholder="キーワードを入力">
  149.         <button type="submit" aria-label="検索">
  150.           <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
  151.             <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
  152.           </svg>
  153.         </button>
  154.       </div>
  155.     </form>
  156.   </div>
  157.   <nav class="btob-drawer__nav">
  158.     <div class="btob-drawer__section">
  159.       <a href="{{ url('product_list') }}" class="btob-drawer__link">カテゴリ一覧</a>
  160.     </div>
  161.     <div class="btob-drawer__section btob-drawer__section--dark">
  162.       <a href="{{ url('cart') }}" class="btob-drawer__link btob-drawer__link--icon">
  163.         <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
  164.           <path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"/>
  165.         </svg>
  166.         カートを見る
  167.       </a>
  168.       <a href="{{ url('entry') }}" class="btob-drawer__link btob-drawer__link--icon">
  169.         <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
  170.           <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
  171.         </svg>
  172.         新規会員登録
  173.       </a>
  174.       <a href="{{ url('my_order_list_favorite') }}" class="btob-drawer__link btob-drawer__link--icon">
  175.         <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
  176.           <path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/>
  177.         </svg>
  178.         お気に入り
  179.       </a>
  180.       <a href="{{ url('mypage_login') }}" class="btob-drawer__link btob-drawer__link--icon">
  181.         <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
  182.           <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/>
  183.         </svg>
  184.         ログイン
  185.       </a>
  186.       <a href="{{ url('homepage') }}" class="btob-drawer__link btob-drawer__link--icon">
  187.         <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
  188.           <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
  189.         </svg>
  190.         ホームに戻る
  191.       </a>
  192.     </div>
  193.   </nav>
  194. </aside>
  195. <script>
  196. (function() {
  197.   var drawerToggle = document.getElementById('drawerToggle');
  198.   var drawer = document.getElementById('drawer');
  199.   var drawerOverlay = document.getElementById('drawerOverlay');
  200.   if (!drawerToggle || !drawer || !drawerOverlay) return;
  201.   function openDrawer() {
  202.     drawer.classList.add('is-open');
  203.     drawerOverlay.classList.add('is-visible');
  204.     drawerToggle.classList.add('is-open');
  205.     document.body.style.overflow = 'hidden';
  206.   }
  207.   function closeDrawer() {
  208.     drawer.classList.remove('is-open');
  209.     drawerOverlay.classList.remove('is-visible');
  210.     drawerToggle.classList.remove('is-open');
  211.     document.body.style.overflow = '';
  212.   }
  213.   drawerToggle.addEventListener('click', function() {
  214.     if (drawer.classList.contains('is-open')) closeDrawer();
  215.     else openDrawer();
  216.   });
  217.   drawerOverlay.addEventListener('click', closeDrawer);
  218.   document.getElementById('drawerClose').addEventListener('click', closeDrawer);
  219.   document.querySelectorAll('.btob-drawer__link').forEach(function(link) {
  220.     link.addEventListener('click', closeDrawer);
  221.   });
  222. })();
  223. </script>
  224. {% include('@common/lang.twig') %}
  225. <script src="{{ asset('assets/js/function.js') }}"></script>
  226. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  227. {% block javascript %}{% endblock %}
  228. {# Layout: CLOSE_BODY_BEFORE #}
  229. {% if Layout.CloseBodyBefore %}
  230.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  231. {% endif %}
  232. {# プラグイン用Snippet #}
  233. {% if plugin_snippets is defined %}
  234.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  235. {% endif %}
  236.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  237. </body>
  238. </html>