app/template/default/default_frame.twig line 92

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.         {# 関連商品エリアがあれば広告をその下に挿入する #}
  46.         $(window).on('load',function (){
  47.             if($('#RelatedProduct-product_area')){
  48.                 $('#ad-travel').appendTo($('#RelatedProduct-product_area'));
  49.             }
  50.         });
  51.     </script>
  52.     {# Layout: HEAD #}
  53.     {% if Layout.Head %}
  54.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  55.     {% endif %}
  56.     {# プラグイン用styleseetやmetatagなど #}
  57.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  58.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  59.     <!-- Google tag (gtag.js) -->
  60.         <script async src="https://www.googletagmanager.com/gtag/js?id=G-5Z8YKPX6JC"></script>
  61.         <script>
  62.         window.dataLayer = window.dataLayer || [];
  63.         function gtag(){dataLayer.push(arguments);}
  64.         gtag('js', new Date());
  65.         gtag('config', 'G-5Z8YKPX6JC');
  66.         </script>
  67. </head>
  68. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  69. {# Layout: BODY_AFTER #}
  70. {% if Layout.BodyAfter %}
  71.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  72. {% endif %}
  73. {% if isMaintenance %}
  74.     <div class="ec-maintenanceAlert">
  75.         <div>
  76.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  77.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  78.         </div>
  79.     </div>
  80. {% endif %}
  81. <div class="ec-layoutRole">
  82.     {# Layout: HEADER #}
  83.     {% if Layout.Header %}
  84.         <header class="ec-layoutRole__header">
  85.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  86.         </header>
  87.     {% endif %}
  88.     {# Layout: CONTENTS_TOP #}
  89.     {% if Layout.ContentsTop %}
  90.         <div class="ec-layoutRole__contentTop">
  91.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  92.         </div>
  93.     {% endif %}
  94.     <div class="ec-layoutRole__contents">
  95.         {# Layout: SIDE_LEFT #}
  96.         {% if Layout.SideLeft %}
  97.             <aside class="ec-layoutRole__left">
  98.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  99.             </aside>
  100.         {% endif %}
  101.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  102.         {% if Layout.ColumnNum == 2 %}
  103.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  104.         {% elseif Layout.ColumnNum == 3 %}
  105.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  106.         {% endif %}
  107.         <main class="{{ layoutRoleMain }}">
  108.             {# Layout: MAIN_TOP #}
  109.             {% if Layout.MainTop %}
  110.                 <div class="ec-layoutRole__mainTop">
  111.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  112.                 </div>
  113.             {% endif %}
  114.             {# MAIN AREA #}
  115.             {% block main %}{% endblock %}
  116.             {# Layout: MAIN_Bottom #}
  117.             {% if Layout.MainBottom %}
  118.                 <div class="ec-layoutRole__mainBottom">
  119.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  120.                 </div>
  121.             {% endif %}
  122.         </main>
  123.         {# Layout: SIDE_RIGHT #}
  124.         {% if Layout.SideRight %}
  125.             <aside class="ec-layoutRole__right">
  126.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  127.             </aside>
  128.         {% endif %}
  129.     </div>
  130.     {# Layout: CONTENTS_BOTTOM #}
  131.     {% if Layout.ContentsBottom %}
  132.         <div class="ec-layoutRole__contentBottom">
  133.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  134.         </div>
  135.     {% endif %}
  136.     {# Layout: CONTENTS_FOOTER #}
  137.     {% if Layout.Footer %}
  138.         <footer class="ec-layoutRole__footer">
  139.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  140.         </footer>
  141.     {% endif %}
  142. </div><!-- ec-layoutRole -->
  143. <div class="ec-overlayRole"></div>
  144. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  145. <div class="ec-drawerRole">
  146.     {# Layout: DRAWER #}
  147.     {% if Layout.Drawer %}
  148.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  149.     {% endif %}
  150. </div>
  151. <div id="page_move">
  152.     <a id="page_top" href="#"></a>
  153.     <a id="page_bottom" href="#page_bottom"></a>
  154. </div>
  155. {#
  156. <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  157. #}
  158. {% include('@common/lang.twig') %}
  159. <script src="{{ asset('assets/js/function.js') }}"></script>
  160. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  161. {% block javascript %}{% endblock %}
  162. {# Layout: CLOSE_BODY_BEFORE #}
  163. {% if Layout.CloseBodyBefore %}
  164.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  165. {% endif %}
  166. {# プラグイン用Snippet #}
  167. {% if plugin_snippets is defined %}
  168.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  169. {% endif %}
  170.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  171. </body>
  172. </html>