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.     <link rel="stylesheet" href="{{ asset('assets/css/cocofuru.css') }}">
  41.     {% block stylesheet %}{% endblock %}
  42.     {% if BaseInfo.google_tracking_id is not null %}
  43.     <!-- Google tag (gtag.js) -->
  44.     <script async src="https://www.googletagmanager.com/gtag/js?id=G-6SKJ5SBVH7"></script>
  45.     <script>
  46.     window.dataLayer = window.dataLayer || [];
  47.     function gtag(){dataLayer.push(arguments);}
  48.     gtag('js', new Date());
  49.     gtag('config', '{{ BaseInfo.google_tracking_id }}');
  50.     </script>
  51.     {% block tracking_script %}{% endblock %}
  52.     {% endif %}
  53.     <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
  54.     <script>
  55.         $(function() {
  56.             $.ajaxSetup({
  57.                 'headers': {
  58.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  59.                 }
  60.             });
  61.         });
  62.     </script>
  63.     {# Layout: HEAD #}
  64.     {% if Layout.Head %}
  65.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  66.     {% endif %}
  67.     {# プラグイン用styleseetやmetatagなど #}
  68.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  69.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  70. </head>
  71. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  72. {# Layout: BODY_AFTER #}
  73. {% if Layout.BodyAfter %}
  74.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  75. {% endif %}
  76. {% if isMaintenance %}
  77.     <div class="ec-maintenanceAlert">
  78.         <div>
  79.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  80.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  81.         </div>
  82.     </div>
  83. {% endif %}
  84. <div class="ec-layoutRole">
  85.     {# Layout: HEADER #}
  86.     {% if Layout.Header %}
  87.         <div class="ec-layoutRole__header">
  88.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  89.         </div>
  90.     {% endif %}
  91.     {# Layout: CONTENTS_TOP #}
  92.     {% if Layout.ContentsTop %}
  93.         <div class="ec-layoutRole__contentTop">
  94.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  95.         </div>
  96.     {% endif %}
  97.     <div class="ec-layoutRole__contents">
  98.         {# Layout: SIDE_LEFT #}
  99.         {% if Layout.SideLeft %}
  100.             <div class="ec-layoutRole__left">
  101.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  102.             </div>
  103.         {% endif %}
  104.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  105.         {% if Layout.ColumnNum == 2 %}
  106.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  107.         {% elseif Layout.ColumnNum == 3 %}
  108.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  109.         {% endif %}
  110.         <div class="{{ layoutRoleMain }}">
  111.             {# Layout: MAIN_TOP #}
  112.             {% if Layout.MainTop %}
  113.                 <div class="ec-layoutRole__mainTop">
  114.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  115.                 </div>
  116.             {% endif %}
  117.             {# MAIN AREA #}
  118.             {% block main %}{% endblock %}
  119.             {# Layout: MAIN_Bottom #}
  120.             {% if Layout.MainBottom %}
  121.                 <div class="ec-layoutRole__mainBottom">
  122.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  123.                 </div>
  124.             {% endif %}
  125.         </div>
  126.         {# Layout: SIDE_RIGHT #}
  127.         {% if Layout.SideRight %}
  128.             <div class="ec-layoutRole__right">
  129.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  130.             </div>
  131.         {% endif %}
  132.     </div>
  133.     {# Layout: CONTENTS_BOTTOM #}
  134.     {% if Layout.ContentsBottom %}
  135.         <div class="ec-layoutRole__contentBottom">
  136.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  137.         </div>
  138.     {% endif %}
  139.     {# Layout: CONTENTS_FOOTER #}
  140.     {% if Layout.Footer %}
  141.         <div class="ec-layoutRole__footer">
  142.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  143.         </div>
  144.     {% endif %}
  145. </div><!-- 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">{{'ページトップへ'|trans}}</div>
  155. <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
  156. <script src="https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js"></script>
  157. {% include('@common/lang.twig') %}
  158. <script src="{{ asset('assets/js/function.js') }}"></script>
  159. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  160. {% block javascript %}{% endblock %}
  161. {# Layout: CLOSE_BODY_BEFORE #}
  162. {% if Layout.CloseBodyBefore %}
  163.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  164. {% endif %}
  165. {# プラグイン用Snippet #}
  166. {% if plugin_snippets is defined %}
  167.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  168. {% endif %}
  169.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  170. </body>
  171. </html>