app/template/lag/default_frame.twig line 103

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 http-equiv="X-UA-Compatible" content="IE=edge">
  13.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  14.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  15.     {% if app.request.attributes.get('_route') == 'homepage' %}
  16.         <title>{{ BaseInfo.shop_name }}</title>
  17.     {% else %}
  18.         <title>{% if subtitle is defined and subtitle is not empty %} {{ subtitle }}{% elseif title is defined and title is not empty %} {{ title }}{% endif %}|{{ BaseInfo.shop_name }}</title>
  19.     {% endif %}
  20.     {% if Page.meta_tags is not empty %}
  21.         {{ include(template_from_string(Page.meta_tags), sandboxed = true) }}
  22.         {% if Page.description is not empty %}
  23.             <meta name="description" content="{{ Page.description }}">
  24.         {% endif %}
  25.     {% else %}
  26.         {{ include('meta.twig') }}
  27.     {% endif %}
  28.     {% if Page.author is not empty %}
  29.         <meta name="author" content="{{ Page.author }}">
  30.     {% endif %}
  31.     {% if Page.keyword is not empty %}
  32.         <meta name="keywords" content="{{ Page.keyword }}">
  33.     {% endif %}
  34.     {% if Page.meta_robots is not empty %}
  35.         <meta name="robots" content="{{ Page.meta_robots }}">
  36.     {% endif %}
  37.     <meta name="msapplication-TileImage" content="{{ asset('assets/img/common/270x270.png', 'user_data') }}">
  38.     <meta name="thumbnail" content="{{ asset('assets/img/common/270x270.png', 'user_data') }}">
  39.     <link rel="shortcut icon" href="{{ asset('assets/img/common/32x32.png', 'user_data') }}" sizes="32x32">
  40.     <!--[if IE]>
  41.         <link rel="shortcut icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  42.     <![endif]-->
  43.     <link rel="apple-touch-icon" href="{{ asset('assets/img/common/apple-touch-icon.png', 'user_data') }}">
  44.     <link rel="icon" href="{{ asset('assets/img/common/192x192.png', 'user_data') }}" sizes="192x192">
  45.     <!--
  46.       <PageMap>
  47.         <DataObject type="thumbnail">
  48.           <Attribute name="src" value="{{ asset('assets/img/common/270x270.png', 'user_data') }}"/>
  49.           <Attribute name="width" value="270"/>
  50.           <Attribute name="height" value="270"/>
  51.         </DataObject>
  52.       </PageMap>
  53.     -->
  54.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  55.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  56.     {% block stylesheet %}{% endblock %}
  57.     <script>
  58.         $(function() {
  59.             $.ajaxSetup({
  60.                 'headers': {
  61.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  62.                 }
  63.             });
  64.         });
  65.     </script>
  66.     {# Layout: HEAD #}
  67.     {% if Layout.Head %}
  68.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  69.     {% endif %}
  70.     {# プラグイン用styleseetやmetatagなど #}
  71.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  72.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  73.     <script src="https://cdnjs.cloudflare.com/ajax/libs/object-fit-images/3.2.4/ofi.js"></script>
  74.     <script> objectFitImages(); </script>
  75. </head>
  76. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  77. {# Layout: BODY_AFTER #}
  78. {% if Layout.BodyAfter %}
  79.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  80. {% endif %}
  81. {% if isMaintenance %}
  82.     <div class="ec-maintenanceAlert">
  83.         <div>
  84.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  85.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  86.         </div>
  87.     </div>
  88. {% endif %}
  89. <div class="ec-layoutRole">
  90.     {# Layout: HEADER #}
  91.     {% if Layout.Header %}
  92.         <header class="ec-layoutRole__header">
  93.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  94.         </header>
  95.     {% endif %}
  96.     {# Layout: CONTENTS_TOP #}
  97.     {% if Layout.ContentsTop %}
  98.         <div class="ec-layoutRole__contentTop">
  99.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  100.         </div>
  101.     {% endif %}
  102.     <div class="ec-layoutRole__contents">
  103.         {# Layout: SIDE_LEFT #}
  104.         {% if Layout.SideLeft %}
  105.             <aside class="ec-layoutRole__left">
  106.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  107.             </aside>
  108.         {% endif %}
  109.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  110.         {% if Layout.ColumnNum == 2 %}
  111.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  112.         {% elseif Layout.ColumnNum == 3 %}
  113.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  114.         {% endif %}
  115.         <main class="{{ layoutRoleMain }}">
  116.             {# Layout: MAIN_TOP #}
  117.             {% if Layout.MainTop %}
  118.                 <div class="ec-layoutRole__mainTop">
  119.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  120.                 </div>
  121.             {% endif %}
  122.             {# MAIN AREA #}
  123.             {% block main %}{% endblock %}
  124.             {# Layout: MAIN_Bottom #}
  125.             {% if Layout.MainBottom %}
  126.                 <div class="ec-layoutRole__mainBottom">
  127.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  128.                 </div>
  129.             {% endif %}
  130.         </main>
  131.         {# Layout: SIDE_RIGHT #}
  132.         {% if Layout.SideRight %}
  133.             <aside class="ec-layoutRole__right">
  134.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  135.             </aside>
  136.         {% endif %}
  137.     </div>
  138.     {# Layout: CONTENTS_BOTTOM #}
  139.     {% if Layout.ContentsBottom %}
  140.         <div class="ec-layoutRole__contentBottom">
  141.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  142.         </div>
  143.     {% endif %}
  144.     {# Layout: CONTENTS_FOOTER #}
  145.     {% if Layout.Footer %}
  146.         <footer class="ec-layoutRole__footer">
  147.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  148.         </footer>
  149.     {% endif %}
  150. </div><!-- ec-layoutRole -->
  151. <div class="ec-overlayRole"></div>
  152.     {# <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div> #}
  153. <div class="ec-drawerRole">
  154.     {# Layout: DRAWER #}
  155.     {% if Layout.Drawer %}
  156.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  157.     {% endif %}
  158. </div>
  159. <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  160. {% include('@common/lang.twig') %}
  161. <script src="{{ asset('assets/js/function.js') }}"></script>
  162. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  163. {% block javascript %}{% endblock %}
  164. {# Layout: CLOSE_BODY_BEFORE #}
  165. {% if Layout.CloseBodyBefore %}
  166.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  167. {% endif %}
  168. {# プラグイン用Snippet #}
  169. {% if plugin_snippets is defined %}
  170.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  171. {% endif %}
  172.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  173. </body>
  174. </html>