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

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 }}
  15.             {% if subtitle is defined and subtitle is not empty %}
  16.                 /
  17.                 {{ subtitle }}
  18.             {% elseif title is defined and title is not empty %}
  19.                 /
  20.                 {{ title }}
  21.             {% endif %}
  22.         </title>
  23.         {% if Page.meta_tags is not empty %}
  24.             {{ include(template_from_string(Page.meta_tags), sandboxed = true) }}
  25.             {% if Page.description is not empty %}
  26.                 <meta name="description" content="{{ Page.description }}">
  27.             {% endif %}
  28.         {% else %}
  29.             {{ include('meta.twig') }}
  30.         {% endif %}
  31.         {% if Page.author is not empty %}
  32.             <meta name="author" content="{{ Page.author }}">
  33.         {% endif %}
  34.         {% if Page.keyword is not empty %}
  35.             <meta name="keywords" content="{{ Page.keyword }}">
  36.         {% endif %}
  37.         {% if Page.meta_robots is not empty %}
  38.             <meta name="robots" content="{{ Page.meta_robots }}">
  39.         {% endif %}
  40.         <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  41.         <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  42.         <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  43.         <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  44.         <script src="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.4/js/lightbox.min.js" integrity="sha512-Ixzuzfxv1EqafeQlTCufWfaC6ful6WFqIz4G+dWvK0beHw0NVJwvCKSgafpy5gwNqKmgUfIBraVwkKI+Cz0SEQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  45.         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.4/css/lightbox.min.css" integrity="sha512-ZKX+BvQihRJPA8CROKBhDNvoc2aDMOdAlcm7TUQY+35XYtrd3yh95QOOhsPDQY9QnKE0Wqag9y38OIgEvb88cA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  46.         {% block stylesheet %}{% endblock %}
  47.         <script>
  48.             $(function () {
  49.                 $.ajaxSetup({
  50.                     'headers': {
  51.                         'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  52.                         }
  53.                     });
  54.             });
  55.         </script>
  56.         {# Layout: HEAD #}
  57.         {% if Layout.Head %}
  58.             {{ include('block.twig', {'Blocks': Layout.Head}) }}
  59.         {% endif %}
  60.         {# プラグイン用styleseetやmetatagなど #}
  61.         {% if plugin_assets is defined %}
  62.             {{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}
  63.         {% endif %}
  64.         <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  65.     </head>
  66.     <body
  67.         id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  68.         {# Layout: BODY_AFTER #}
  69.         {% if Layout.BodyAfter %}
  70.             {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  71.         {% endif %}
  72.         {% if isMaintenance %}
  73.             <div class="ec-maintenanceAlert">
  74.                 <div>
  75.                     <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  76.                     {{ 'front.under_maintenance'|trans }}
  77.                 </div>
  78.             </div>
  79.         {% endif %}
  80.         <div
  81.             class="ec-layoutRole">
  82.             {# Layout: HEADER #}
  83.             {% if Layout.Header %}
  84.                 <header class="ec-layoutRole__header">
  85.                     {{ include('block.twig', {'Blocks': Layout.Header}) }}
  86.                 </header>
  87.             {% endif %}
  88.             {# Layout: CONTENTS_TOP #}
  89.             {% if Layout.ContentsTop %}
  90.                 <div class="ec-layoutRole__contentTop">
  91.                     {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  92.                 </div>
  93.             {% endif %}
  94.             <div
  95.                 class="ec-layoutRole__contents">
  96.                 {# Layout: SIDE_LEFT #}
  97.                 {% if Layout.SideLeft %}
  98.                     <aside class="ec-layoutRole__left">
  99.                         {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  100.                     </aside>
  101.                 {% endif %}
  102.                 {% set layoutRoleMain = 'ec-layoutRole__main' %}
  103.                 {% if Layout.ColumnNum == 2 %}
  104.                     {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  105.                 {% elseif Layout.ColumnNum == 3 %}
  106.                     {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  107.                 {% endif %}
  108.                 <main
  109.                     class="{{ layoutRoleMain }}">
  110.                     {# Layout: MAIN_TOP #}
  111.                     {% if Layout.MainTop %}
  112.                         <div class="ec-layoutRole__mainTop">
  113.                             {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  114.                         </div>
  115.                     {% endif %}
  116.                     {# MAIN AREA #}
  117.                     {% block main %}{% endblock %}
  118.                     {# Layout: MAIN_Bottom #}
  119.                     {% if Layout.MainBottom %}
  120.                         <div class="ec-layoutRole__mainBottom">
  121.                             {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  122.                         </div>
  123.                     {% endif %}
  124.                 </main>
  125.                 {# Layout: SIDE_RIGHT #}
  126.                 {% if Layout.SideRight %}
  127.                     <aside class="ec-layoutRole__right">
  128.                         {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  129.                     </aside>
  130.                 {% endif %}
  131.             </div>
  132.             {# Layout: CONTENTS_BOTTOM #}
  133.             {% if Layout.ContentsBottom %}
  134.                 <div class="ec-layoutRole__contentBottom">
  135.                     {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  136.                 </div>
  137.             {% endif %}
  138.             {# Layout: CONTENTS_FOOTER #}
  139.             {% if Layout.Footer %}
  140.                 <footer class="ec-layoutRole__footer">
  141.                     {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  142.                 </footer>
  143.             {% endif %}
  144.         </div>
  145.         <!-- ec-layoutRole -->
  146.         {# <div class="ec-overlayRole"></div> #}
  147.         {# <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div> #}
  148.         {# <div class="ec-drawerRole"> #}
  149.         {# Layout: DRAWER #}
  150.         {# {% if Layout.Drawer %}
  151.                         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  152.                     {% endif %}
  153.                 </div> #}
  154.         {# <div class="ec-blockTopBtn pagetop">{{'common.pagetop'|trans}}</div> #}{% include('@common/lang.twig') %}<script src="{{ asset('assets/js/function.js') }}"> </script>
  155.         <script src="{{ asset('assets/js/eccube.js') }}"></script>
  156.         {% block javascript %}{% endblock %}
  157.         {# Layout: CLOSE_BODY_BEFORE #}
  158.         {% if Layout.CloseBodyBefore %}
  159.             {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  160.         {% endif %}
  161.         {# プラグイン用Snippet #}
  162.         {% if plugin_snippets is defined %}
  163.             {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  164.         {% endif %}
  165.         <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  166.     </body>
  167. </html>