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.     
  15.     {% if app.request.get('_route') == 'homepage' %}
  16.     <title>{{ BaseInfo.shop_name }}</title>
  17.     {% else %}
  18.     <title>{% if subtitle is defined and subtitle is not empty %}{{ subtitle }} | {% elseif title is defined and title is not empty %}{{ title }} | {% endif %}{{ BaseInfo.shop_name }}</title>
  19.     {% endif %}
  20.     
  21.     {% if Page.meta_tags is not empty %}
  22.         {{ include(template_from_string(Page.meta_tags)) }}
  23.         {% if Page.description is not empty %}
  24.             <meta name="description" content="{{ Page.description }}">
  25.         {% endif %}
  26.     {% else %}
  27.         {{ include('meta.twig') }}
  28.     {% endif %}
  29.     {% if Page.author is not empty %}
  30.         <meta name="author" content="{{ Page.author }}">
  31.     {% endif %}
  32.     {% if Page.keyword is not empty %}
  33.         <meta name="keywords" content="{{ Page.keyword }}">
  34.     {% endif %}
  35.     {% if Page.meta_robots is not empty %}
  36.         <meta name="robots" content="{{ Page.meta_robots }}">
  37.     {% endif %}
  38.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  39.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  40.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}?01">
  41.     
  42.     <link rel="preconnect" href="https://fonts.googleapis.com">
  43.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  44.     <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap" rel="stylesheet">
  45.     
  46.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  47.     {% block stylesheet %}{% endblock %}
  48.     <script>
  49.         $(function() {
  50.             $.ajaxSetup({
  51.                 'headers': {
  52.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  53.                 }
  54.             });
  55.         });
  56.     </script>
  57.     {# Layout: HEAD #}
  58.     {% if Layout.Head %}
  59.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  60.     {% endif %}
  61.     {# プラグイン用styleseetやmetatagなど #}
  62.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  63.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  64.     
  65.     
  66.     <!-- Google tag (gtag.js) -->
  67.     <script async src="https://www.googletagmanager.com/gtag/js?id=G-FRF617XBZW"></script>
  68.     <script>
  69.       window.dataLayer = window.dataLayer || [];
  70.       function gtag(){dataLayer.push(arguments);}
  71.       gtag('js', new Date());
  72.       gtag('config', 'G-FRF617XBZW');
  73.     </script>
  74.     
  75. </head>
  76. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  77. {# Layout: BODY_AFTER #}
  78. {% if Layout.BodyAfter %}
  79.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  80. {% endif %}
  81. {% if isMaintenance %}
  82.     <div class="ec-maintenanceAlert">
  83.         <div>
  84.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  85.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  86.         </div>
  87.     </div>
  88. {% endif %}
  89. <div class="ec-layoutRole">
  90.     {# Layout: HEADER #}
  91.     {% if Layout.Header %}
  92.         <header class="ec-layoutRole__header">
  93.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  94.         </header>
  95.     {% endif %}
  96.     {# Layout: CONTENTS_TOP #}
  97.     {% if Layout.ContentsTop %}
  98.         <div class="ec-layoutRole__contentTop">
  99.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  100.         </div>
  101.     {% endif %}
  102.     <div class="ec-layoutRole__contents">
  103.         {# Layout: SIDE_LEFT #}
  104.         {% if Layout.SideLeft %}
  105.             <aside class="ec-layoutRole__left">
  106.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  107.             </aside>
  108.         {% endif %}
  109.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  110.         {% if Layout.ColumnNum == 2 %}
  111.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  112.         {% elseif Layout.ColumnNum == 3 %}
  113.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  114.         {% endif %}
  115.         <main class="{{ layoutRoleMain }}">
  116.             {# Layout: MAIN_TOP #}
  117.             {% if Layout.MainTop %}
  118.                 <div class="ec-layoutRole__mainTop">
  119.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  120.                 </div>
  121.             {% endif %}
  122.             {# MAIN AREA #}
  123.             {% block main %}{% endblock %}
  124.             {# Layout: MAIN_Bottom #}
  125.             {% if Layout.MainBottom %}
  126.                 <div class="ec-layoutRole__mainBottom">
  127.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  128.                 </div>
  129.             {% endif %}
  130.         </main>
  131.         {# Layout: SIDE_RIGHT #}
  132.         {% if Layout.SideRight %}
  133.             <aside class="ec-layoutRole__right">
  134.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  135.             </aside>
  136.         {% endif %}
  137.     </div>
  138.     {# Layout: CONTENTS_BOTTOM #}
  139.     {% if Layout.ContentsBottom %}
  140.         <div class="ec-layoutRole__contentBottom">
  141.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  142.         </div>
  143.     {% endif %}
  144.     {# Layout: CONTENTS_FOOTER #}
  145.     {% if Layout.Footer %}
  146.         <footer class="ec-layoutRole__footer">
  147.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  148.         </footer>
  149.     {% endif %}
  150. </div><!-- ec-layoutRole -->
  151. <div class="ec-overlayRole"></div>
  152. <div class="ec-drawerRoleClose"></div>
  153. <div class="ec-drawerRole">
  154.     {# Layout: DRAWER #}
  155.     {% if Layout.Drawer %}
  156.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  157.     {% endif %}
  158. </div>
  159. <div class="ec-blockTopBtn pagetop">{{'▲'|trans}}</div>
  160. {% include('@common/lang.twig') %}
  161. <script src="{{ asset('assets/js/function.js') }}"></script>
  162. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  163. {% block javascript %}{% endblock %}
  164. {# Layout: CLOSE_BODY_BEFORE #}
  165. {% if Layout.CloseBodyBefore %}
  166.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  167. {% endif %}
  168. {# プラグイン用Snippet #}
  169. {% if plugin_snippets is defined %}
  170.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  171. {% endif %}
  172.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  173. </body>
  174. </html>