src/Eccube/Resource/template/default/default_frame.twig line 92

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.     <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. </head>
  54. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  55. {# Layout: BODY_AFTER #}
  56. {% if Layout.BodyAfter %}
  57.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  58. {% endif %}
  59. {% if isMaintenance %}
  60.     <div class="ec-maintenanceAlert">
  61.         <div>
  62.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  63.             {{ 'front.under_maintenance'|trans }}
  64.         </div>
  65.     </div>
  66. {% endif %}
  67. <div class="ec-layoutRole">
  68.     {# Layout: HEADER #}
  69.     {% if Layout.Header %}
  70.         <header class="ec-layoutRole__header">
  71.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  72.         </header>
  73.     {% endif %}
  74.     {# Layout: CONTENTS_TOP #}
  75.     {% if Layout.ContentsTop %}
  76.         <div class="ec-layoutRole__contentTop">
  77.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  78.         </div>
  79.     {% endif %}
  80.     <div class="bigbox">
  81.         <div class="ec-layoutRole__contents">
  82.             {# Layout: SIDE_LEFT #}
  83.             {% if Layout.SideLeft %}
  84.                 <aside class="ec-layoutRole__left">
  85.                     {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  86.                 </aside>
  87.             {% endif %}
  88.             {% set layoutRoleMain = 'ec-layoutRole__main' %}
  89.             {% if Layout.ColumnNum == 2 %}
  90.                 {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  91.             {% elseif Layout.ColumnNum == 3 %}
  92.                 {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  93.             {% endif %}
  94.             <main class="{{ layoutRoleMain }}">
  95.                 {# Layout: MAIN_TOP #}
  96.                 {% if Layout.MainTop %}
  97.                     <div class="ec-layoutRole__mainTop">
  98.                         {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  99.                     </div>
  100.                 {% endif %}
  101.                 {# MAIN AREA #}
  102.                 {% block main %}{% endblock %}
  103.                 {# Layout: MAIN_Bottom #}
  104.                 {% if Layout.MainBottom %}
  105.                     <div class="ec-layoutRole__mainBottom">
  106.                         {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  107.                     </div>
  108.                 {% endif %}
  109.             </main>
  110.             {# Layout: SIDE_RIGHT #}
  111.             {% if Layout.SideRight %}
  112.                 <aside class="ec-layoutRole__right">
  113.                     {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  114.                 </aside>
  115.             {% endif %}
  116.         </div>
  117.     </div>
  118.     {# Layout: CONTENTS_BOTTOM #}
  119.     {% if Layout.ContentsBottom %}
  120.         <div class="ec-layoutRole__contentBottom">
  121.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  122.         </div>
  123.     {% endif %}
  124.     {# Layout: CONTENTS_FOOTER #}
  125.     {% if Layout.Footer %}
  126.         <footer class="ec-layoutRole__footer">
  127.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  128.         </footer>
  129.     {% endif %}
  130. </div><!-- ec-layoutRole -->
  131. <div class="ec-overlayRole"></div>
  132. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  133. <div class="ec-drawerRole">
  134.     {# Layout: DRAWER #}
  135.     {% if Layout.Drawer %}
  136.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  137.     {% endif %}
  138. </div>
  139. <div class="ec-blockTopBtn pagetop">{{'common.pagetop'|trans}}</div>
  140. {% include('@common/lang.twig') %}
  141. <script src="{{ asset('assets/js/function.js') }}"></script>
  142. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  143. {% block javascript %}{% endblock %}
  144. {# Layout: CLOSE_BODY_BEFORE #}
  145. {% if Layout.CloseBodyBefore %}
  146.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  147. {% endif %}
  148. {# プラグイン用Snippet #}
  149. {% if plugin_snippets is defined %}
  150.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  151. {% endif %}
  152.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  153. </body>
  154. </html>