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