src/Eccube/Resource/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: http://ogp.me/ns# fb: http://ogp.me/ns/fb# product: http://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.     {% if Page.meta_tags is not empty %}
  33.         {{ include(template_from_string(Page.meta_tags)) }}
  34.     {% endif %}
  35.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  36.     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  37.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  38.     <link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css">
  39.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  40.     {% block stylesheet %}{% endblock %}
  41.     <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
  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.         <div class="ec-layoutRole__header">
  76.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  77.         </div>
  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.             <div class="ec-layoutRole__left">
  89.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  90.             </div>
  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.         <div 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.         </div>
  114.         {# Layout: SIDE_RIGHT #}
  115.         {% if Layout.SideRight %}
  116.             <div class="ec-layoutRole__right">
  117.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  118.             </div>
  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.         <div class="ec-layoutRole__footer">
  130.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  131.         </div>
  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. <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
  144. <script src="https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js"></script>
  145. {% include('@common/lang.twig') %}
  146. <script src="{{ asset('assets/js/function.js') }}"></script>
  147. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  148. {% block javascript %}{% endblock %}
  149. {# Layout: CLOSE_BODY_BEFORE #}
  150. {% if Layout.CloseBodyBefore %}
  151.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  152. {% endif %}
  153. {# プラグイン用Snippet #}
  154. {% if plugin_snippets is defined %}
  155.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  156. {% endif %}
  157.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  158. </body>
  159. </html>