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.     {{ include('headerCustomize.twig') }}
  13.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  14.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  15.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico') }}">
  16.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  17.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  18.     <link rel="stylesheet" href="{{ asset('assets/css/ec-base.css') }}">
  19.     <link rel="stylesheet" href="{{ asset('assets/css/ec-customize.css') }}">
  20.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  21.     {% block stylesheet %}{% endblock %}
  22.     <script>
  23.         $(function () {
  24.             $.ajaxSetup({
  25.                 'headers': {
  26.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  27.                 }
  28.             });
  29.         });
  30.     </script>
  31.     {# Layout: HEAD #}
  32.     {% if Layout.Head %}
  33.     {{ include('block.twig', {'Blocks': Layout.Head}) }}
  34.     {% endif %}
  35.     {# プラグイン用styleseetやmetatagなど #}
  36.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  37.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  38. </head>
  39. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  40.     {# Layout: BODY_AFTER #}
  41.     {% if Layout.BodyAfter %}
  42.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  43.     {% endif %}
  44.     {% if isMaintenance %}
  45.     <div class="ec-maintenanceAlert">
  46.         <div>
  47.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}" /></div>
  48.             {{ 'front.under_maintenance'|trans }}
  49.         </div>
  50.     </div>
  51.     {% endif %}
  52.     <div class="ec-layoutRole">
  53.         {# Layout: HEADER #}
  54.         {% if Layout.Header %}
  55.         <header class="ec-layoutRole__header">
  56.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  57.         </header>
  58.         {% endif %}
  59.         {# Layout: CONTENTS_TOP #}
  60.         {% if Layout.ContentsTop %}
  61.         <div class="ec-layoutRole__contentTop">
  62.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  63.         </div>
  64.         {% endif %}
  65.         <div class="ec-layoutRole__contents">
  66.             {# Layout: SIDE_LEFT #}
  67.             {% if Layout.SideLeft %}
  68.             <aside class="ec-layoutRole__left">
  69.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  70.             </aside>
  71.             {% endif %}
  72.             {% set layoutRoleMain = 'ec-layoutRole__main' %}
  73.             {% if Layout.ColumnNum == 2 %}
  74.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  75.             {% elseif Layout.ColumnNum == 3 %}
  76.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  77.             {% endif %}
  78.             <main class="{{ layoutRoleMain }}">
  79.                 {# Layout: MAIN_TOP #}
  80.                 {% if Layout.MainTop %}
  81.                 <div class="ec-layoutRole__mainTop">
  82.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  83.                 </div>
  84.                 {% endif %}
  85.                 {# MAIN AREA #}
  86.                 {% block main %}{% endblock %}
  87.                 {# Layout: MAIN_Bottom #}
  88.                 {% if Layout.MainBottom %}
  89.                 <div class="ec-layoutRole__mainBottom">
  90.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  91.                 </div>
  92.                 {% endif %}
  93.             </main>
  94.             {# Layout: SIDE_RIGHT #}
  95.             {% if Layout.SideRight %}
  96.             <aside class="ec-layoutRole__right">
  97.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  98.             </aside>
  99.             {% endif %}
  100.         </div>
  101.         {# Layout: CONTENTS_BOTTOM #}
  102.         {% if Layout.ContentsBottom %}
  103.         <div class="ec-layoutRole__contentBottom">
  104.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  105.         </div>
  106.         {% endif %}
  107.         {# Layout: CONTENTS_FOOTER #}
  108.         {% if Layout.Footer %}
  109.         <footer class="ec-layoutRole__footer">
  110.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  111.         </footer>
  112.         {% endif %}
  113.     </div><!-- ec-layoutRole -->
  114.     <div class="ec-overlayRole"></div>
  115.     <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  116.     <div class="ec-drawerRole">
  117.         {# Layout: DRAWER #}
  118.         {% if Layout.Drawer %}
  119.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  120.         {% endif %}
  121.     </div>
  122.     <div class="ec-blockTopBtn pagetop">{{'common.pagetop'|trans}}</div>
  123.     {% include('@common/lang.twig') %}
  124.     <script src="{{ asset('assets/js/function.js') }}"></script>
  125.     <script src="{{ asset('assets/js/eccube.js') }}"></script>
  126.     {% block javascript %}{% endblock %}
  127.     {# Layout: CLOSE_BODY_BEFORE #}
  128.     {% if Layout.CloseBodyBefore %}
  129.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  130.     {% endif %}
  131.     {# プラグイン用Snippet #}
  132.     {% if plugin_snippets is defined %}
  133.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  134.     {% endif %}
  135.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  136. </body>
  137. </html>