app/template/default/default_frame.twig line 82

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