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

Open in your IDE?
  1. <!doctype html>
  2. <html lang="{{ eccube_config.locale }}">
  3.   <head prefix="og: https://ogp.me/ns# fb: https://ogp.me/ns/fb# product: https://ogp.me/ns/product#">
  4.     <meta charset="utf-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  7.     <title>
  8.         {{ BaseInfo.shop_name }}
  9.         {% if title is defined and title is not empty %}
  10.             {% if Page.author is not empty %}
  11.             / {{ Page.author }}
  12.             {% else %}
  13.             / {{ title }}
  14.             {% endif %}
  15.         {% endif %}
  16.         {% if subtitle is defined and subtitle is not empty %} / {{ subtitle }}
  17.         {% endif %}
  18.     </title>
  19.     {% if Page.meta_tags is not empty %}
  20.       {{ include(template_from_string(Page.meta_tags), sandboxed = true) }}
  21.       {% if Page.description is not empty %}
  22.         <meta name="description" content="{{ Page.description }}">
  23.       {% endif %}
  24.     {% else %}
  25.       {{ include('meta.twig') }}
  26.     {% endif %}
  27.     {% if Page.keyword is not empty %}
  28.       <meta name="keywords" content="{{ Page.keyword }}">
  29.     {% endif %}
  30.     {% if Page.meta_robots is not empty %}
  31.       <meta name="robots" content="{{ Page.meta_robots }}">
  32.     {% endif %}
  33.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  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.   {% block stylesheet %}{% endblock %}
  38.   <script>
  39.     $(function () {
  40.       $.ajaxSetup({
  41.         'headers': {
  42.           'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  43.         }
  44.       });
  45.     });
  46.   </script>
  47.   {# Layout: HEAD #}
  48.   {% if Layout.Head %}
  49.     {{ include('block.twig', {'Blocks': Layout.Head}) }}
  50.   {% endif %}
  51.   {# プラグイン用styleseetやmetatagなど #}
  52.   {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  53.   <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  54. </head>
  55. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  56.   {# Layout: BODY_AFTER #}
  57.   {% if Layout.BodyAfter %}
  58.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  59.   {% endif %}
  60.   {% if isMaintenance %}
  61.     <div class="ec-maintenanceAlert">
  62.       <div>
  63.         <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  64.           {{ 'メンテナンスモードが有効になっています。'|trans }}
  65.       </div>
  66.     </div>
  67.   {% endif %}
  68.   <div class="ec-layoutRole">
  69.     {# Layout: HEADER #}
  70.     {% if Layout.Header %}
  71.       <header class="ec-layoutRole__header">
  72.         {{ include('block.twig', {'Blocks': Layout.Header}) }}
  73.       </header>
  74.     {% endif %}
  75.     {# Layout: CONTENTS_TOP #}
  76.     {% if Layout.ContentsTop %}
  77.       <div class="ec-layoutRole__contentTop">
  78.         {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  79.       </div>
  80.     {% endif %}
  81.     <div class="ec-layoutRole__contents">
  82.       {# Layout: SIDE_LEFT #}
  83.       {% if Layout.SideLeft %}
  84.         <aside class="ec-layoutRole__left">
  85.           {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  86.         </aside>
  87.       {% endif %}
  88.       {% set layoutRoleMain = 'ec-layoutRole__main' %}
  89.       {% if Layout.ColumnNum == 2 %}
  90.         {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  91.       {% elseif Layout.ColumnNum == 3 %}
  92.         {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  93.       {% endif %}
  94.       <div id="wraps">
  95.         <main class="{{ layoutRoleMain }}">
  96.           <div id="main_middle">
  97.             {# Layout: MAIN_TOP #}
  98.             {% if Layout.MainTop %}
  99.               <div class="ec-layoutRole__mainTop">
  100.                 {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  101.               </div>
  102.             {% endif %}
  103.             {# MAIN AREA #}
  104.           {% block main %}{% endblock %}
  105.           {# Layout: MAIN_Bottom #}
  106.           {% if Layout.MainBottom %}
  107.             <div class="ec-layoutRole__mainBottom">
  108.               {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  109.             </div>
  110.           {% endif %}
  111.         </div>
  112.       </main>
  113.     </div>
  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. {% include('@common/lang.twig') %}
  143. <script src="{{ asset('assets/js/function.js') }}"></script>
  144. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  145. {% block javascript %}{% endblock %}
  146. {# Layout: CLOSE_BODY_BEFORE #}
  147. {% if Layout.CloseBodyBefore %}
  148.   {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  149. {% endif %}
  150. {# プラグイン用Snippet #}
  151. {% if plugin_snippets is defined %}
  152.   {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  153. {% endif %}
  154. <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  155. </body>
  156. </html>