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.     <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="{{ asset('assets/css/header.css') }}">
  36.     <link rel="stylesheet" href="{{ asset('assets/css/footer.css') }}">
  37.     <link rel="stylesheet" href="{{ asset('assets/css/base.css') }}">
  38.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  39.     {% block stylesheet %}{% endblock %}
  40.     <script>
  41.         $(function() {
  42.             $.ajaxSetup({
  43.                 'headers': {
  44.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  45.                 }
  46.             });
  47.         });
  48.     </script>
  49.     {# Layout: HEAD #}
  50.     {% if Layout.Head %}
  51.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  52.     {% endif %}
  53.     {# プラグイン用styleseetやmetatagなど #}
  54.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  55.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  56. </head>
  57. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  58. {# Layout: BODY_AFTER #}
  59. {% if Layout.BodyAfter %}
  60.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  61. {% endif %}
  62. {% if isMaintenance %}
  63.     <div class="ec-maintenanceAlert">
  64.         <div>
  65.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  66.             {{ 'front.under_maintenance'|trans }}
  67.         </div>
  68.     </div>
  69. {% endif %}
  70. <div class="ec-layoutRole">
  71.     {# Layout: HEADER #}
  72.     <header class="ec-layoutRole__header header-section-ui">
  73.         {{ include('Block/header.twig') }}
  74.     </header>
  75.     <main>
  76.         {# MAIN AREA #}
  77.         {% block main %}{% endblock %}
  78.     </main>
  79.     {# Layout: CONTENTS_BOTTOM #}
  80.     <div class="ec-layoutRole__contentBottom">
  81.         {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  82.     </div>
  83.     {# Layout: CONTENTS_FOOTER #}
  84.     <footer class="ec-layoutRole__footer">
  85.         {{ include('Block/footer.twig') }}
  86.     </footer>
  87. </div><!-- ec-layoutRole -->
  88. <div class="ec-overlayRole"></div>
  89. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  90. <div class="ec-drawerRole">
  91.     {# Layout: DRAWER #}
  92.     {% if Layout.Drawer %}
  93.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  94.     {% endif %}
  95. </div>
  96. {% include('@common/lang.twig') %}
  97. <script src="{{ asset('assets/js/function.js') }}"></script>
  98. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  99. <script src="{{ asset('assets/js/custom.js') }}"></script>
  100. {% block javascript %}{% endblock %}
  101. {# Layout: CLOSE_BODY_BEFORE #}
  102. {% if Layout.CloseBodyBefore %}
  103.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  104. {% endif %}
  105. {# プラグイン用Snippet #}
  106. {% if plugin_snippets is defined %}
  107.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  108. {% endif %}
  109.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  110. </body>
  111. </html>