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), 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/style.css') }}">
  35.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  36.     {% block stylesheet %}{% endblock %}
  37.     <script>
  38.         $(function() {
  39.             $.ajaxSetup({
  40.                 'headers': {
  41.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  42.                 }
  43.             });
  44.         });
  45.     </script>
  46.     {# Layout: HEAD #}
  47.     {% if Layout.Head %}
  48.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  49.     {% endif %}
  50.     {# プラグイン用styleseetやmetatagなど #}
  51.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  52.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  53.     <!-- Google tag (gtag.js) -->
  54.     <script async src="https://www.googletagmanager.com/gtag/js?id=G-5JMVH53FE5"></script>
  55.     <script>
  56.         window.dataLayer = window.dataLayer || [];
  57.         function gtag(){dataLayer.push(arguments);}
  58.         gtag('js', new Date());
  59.         gtag('config', 'G-5JMVH53FE5');
  60.     </script>
  61.     <!-- Google tag (gtag.js) -->
  62.     <script async src="https://www.googletagmanager.com/gtag/js?id=G-E9VMRRGXWS"></script>
  63.     <script>
  64.     window.dataLayer = window.dataLayer || [];
  65.     function gtag(){dataLayer.push(arguments);}
  66.     gtag('js', new Date());
  67.     gtag('config', 'G-E9VMRRGXWS');
  68.     </script>
  69. </head>
  70. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  71. {# Layout: BODY_AFTER #}
  72. {% if Layout.BodyAfter %}
  73.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  74. {% endif %}
  75. {% if isMaintenance %}
  76.     <div class="ec-maintenanceAlert">
  77.         <div>
  78.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  79.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  80.         </div>
  81.     </div>
  82. {% endif %}
  83. <div class="ec-layoutRole">
  84.     <div class="header_bg"></div>
  85.     {# Layout: HEADER #}
  86.     {% if Layout.Header %}
  87.         <header class="ec-layoutRole__header">
  88.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  89.         </header>
  90.     {% endif %}
  91.     {# Layout: CONTENTS_TOP #}
  92.     {% if Layout.ContentsTop %}
  93.         <div class="ec-layoutRole__contentTop">
  94.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  95.         </div>
  96.     {% endif %}
  97.     <div class="ec-layoutRole__contents">
  98.         {# Layout: SIDE_LEFT #}
  99.         {% if Layout.SideLeft %}
  100.             <aside class="ec-layoutRole__left">
  101.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  102.             </aside>
  103.         {% endif %}
  104.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  105.         {% if Layout.ColumnNum == 2 %}
  106.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  107.         {% elseif Layout.ColumnNum == 3 %}
  108.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  109.         {% endif %}
  110.         <main class="{{ layoutRoleMain }}">
  111.             {# Layout: MAIN_TOP #}
  112.             {% if Layout.MainTop %}
  113.                 <div class="ec-layoutRole__mainTop">
  114.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  115.                 </div>
  116.             {% endif %}
  117.             {# MAIN AREA #}
  118.             {% block main %}{% endblock %}
  119.             {# Layout: MAIN_Bottom #}
  120.             {% if Layout.MainBottom %}
  121.                 <div class="ec-layoutRole__mainBottom">
  122.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  123.                 </div>
  124.             {% endif %}
  125.         </main>
  126.         {# Layout: SIDE_RIGHT #}
  127.         {% if Layout.SideRight %}
  128.             <aside class="ec-layoutRole__right">
  129.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  130.             </aside>
  131.         {% endif %}
  132.     </div>
  133.     {# Layout: CONTENTS_BOTTOM #}
  134.     {% if Layout.ContentsBottom %}
  135.         <div class="ec-layoutRole__contentBottom">
  136.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  137.         </div>
  138.     {% endif %}
  139.     <div class="footer_bg2"></div>
  140.     {# Layout: CONTENTS_FOOTER #}
  141.     {% if Layout.Footer %}
  142.         <footer class="ec-layoutRole__footer">
  143.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  144.         </footer>
  145.     {% endif %}
  146. </div><!-- ec-layoutRole -->
  147. <div class="ec-overlayRole"></div>
  148. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  149. <div class="ec-drawerRole">
  150.     {# Layout: DRAWER #}
  151.     {% if Layout.Drawer %}
  152.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  153.     {% endif %}
  154. </div>
  155. <div class="ec-blockTopBtn pagetop">
  156.     <div>▲</div>
  157.     <div>{{'TOP'|trans}}</div>
  158. </div>
  159. {% include('@common/lang.twig') %}
  160. <script src="{{ asset('assets/js/function.js') }}"></script>
  161. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  162. {% block javascript %}{% endblock %}
  163. {# Layout: CLOSE_BODY_BEFORE #}
  164. {% if Layout.CloseBodyBefore %}
  165.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  166. {% endif %}
  167. {# プラグイン用Snippet #}
  168. {% if plugin_snippets is defined %}
  169.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  170. {% endif %}
  171.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  172. </body>
  173. </html>