app/template/default/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)) }}
  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.     <!-- Google Tag Manager -->
  34.     <script>
  35.         (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-TMGDD2NJ');
  36.     </script>
  37.     <!-- End Google Tag Manager -->
  38.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  39.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  40.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  41.     <script async src="https://connect.retailor.jp/connect/meganehompo/js/connect.js"></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.     {#  import google fonts  #}
  60.     <link rel="preconnect" href="https://fonts.googleapis.com">
  61.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  62.     <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;200;300;400;500;600;700&display=swap" rel="stylesheet">
  63. </head>
  64. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  65. <!-- Google Tag Manager (noscript) -->
  66. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TMGDD2NJ" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  67. <!-- End Google Tag Manager (noscript) -->
  68. {# Layout: BODY_AFTER #}
  69. {% if Layout.BodyAfter %}
  70.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  71. {% endif %}
  72. {% if isMaintenance %}
  73.     <div class="ec-maintenanceAlert">
  74.         <div>
  75.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  76.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  77.         </div>
  78.     </div>
  79. {% endif %}
  80. <div class="ec-layoutRole">
  81.     {# Layout: HEADER #}
  82.     {% if Layout.Header %}
  83.         <header class="ec-layoutRole__header">
  84.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  85.         </header>
  86.     {% endif %}
  87.     {# Layout: CONTENTS_TOP #}
  88.     {% if Layout.ContentsTop %}
  89.         <div class="ec-layoutRole__contentTop">
  90.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  91.         </div>
  92.     {% endif %}
  93.     <div class="ec-layoutRole__contents">
  94.         {# Layout: SIDE_LEFT #}
  95.         {% if Layout.SideLeft %}
  96.             <aside class="ec-layoutRole__left">
  97.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  98.             </aside>
  99.         {% endif %}
  100.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  101.         {% if Layout.ColumnNum == 2 %}
  102.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  103.         {% elseif Layout.ColumnNum == 3 %}
  104.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  105.         {% endif %}
  106.         <main class="{{ layoutRoleMain }}">
  107.             {# Layout: MAIN_TOP #}
  108.             {% if Layout.MainTop %}
  109.                 <div class="ec-layoutRole__mainTop">
  110.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  111.                 </div>
  112.             {% endif %}
  113.             {# MAIN AREA #}
  114.             {% block main %}{% endblock %}
  115.             {# Layout: MAIN_Bottom #}
  116.             {% if Layout.MainBottom %}
  117.                 <div class="ec-layoutRole__mainBottom">
  118.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  119.                 </div>
  120.             {% endif %}
  121.         </main>
  122.         {# Layout: SIDE_RIGHT #}
  123.         {% if Layout.SideRight %}
  124.             <aside class="ec-layoutRole__right">
  125.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  126.             </aside>
  127.         {% endif %}
  128.     </div>
  129.     {# Layout: CONTENTS_BOTTOM #}
  130.     {% if Layout.ContentsBottom %}
  131.         <div class="ec-layoutRole__contentBottom">
  132.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  133.         </div>
  134.     {% endif %}
  135.     {# Layout: CONTENTS_FOOTER #}
  136.     {% if Layout.Footer %}
  137.         <footer class="ec-layoutRole__footer">
  138.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  139.         </footer>
  140.     {% endif %}
  141. </div><!-- ec-layoutRole -->
  142. <div class="ec-overlayRole"></div>
  143. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  144. <div class="ec-drawerRole">
  145.     {# Layout: DRAWER #}
  146.     {% if Layout.Drawer %}
  147.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  148.     {% endif %}
  149. </div>
  150. {#<div class="ec-blockTop">#}
  151. {#    <div class="ec-blockTopBtn pagetop"><i class="fas fa-chevron-up"></i></div>#}
  152. {#</div>#}
  153. {% include('@common/lang.twig') %}
  154. <script src="{{ asset('assets/js/function.js') }}"></script>
  155. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  156. {% block javascript %}{% endblock %}
  157. {# Layout: CLOSE_BODY_BEFORE #}
  158. {% if Layout.CloseBodyBefore %}
  159.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  160. {% endif %}
  161. {# プラグイン用Snippet #}
  162. {% if plugin_snippets is defined %}
  163.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  164. {% endif %}
  165.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  166. </body>
  167. </html>