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