app/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: https://ogp.me/ns# fb: https://ogp.me/ns/fb# product: https://ogp.me/ns/product#">
  11. <!-- Google tag (gtag.js) -->
  12. <script async src="https://www.googletagmanager.com/gtag/js?id=G-X5ERZWNN16"></script>
  13. <script>
  14. window.dataLayer = window.dataLayer || [];
  15. function gtag(){dataLayer.push(arguments);}
  16. gtag('js', new Date());
  17. gtag('config', 'G-X5ERZWNN16');
  18. </script>
  19.     <meta charset="utf-8">
  20.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  21.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  22.     {% if app.request.attributes.get('_route') == 'homepage' %}
  23.         <title>{{ BaseInfo.shop_name }}</title>
  24.     {% elseif app.request.attributes.get('_route') == 'product_detail' %}
  25.         <title>{% if subtitle is defined and subtitle is not empty %}{{ subtitle }} | {% endif %}商品リスト | {{ BaseInfo.shop_name }}</title>
  26.     {% elseif app.request.attributes.get('_route') == 'cm_blog_pro_page_detail' %}
  27.         <title>{% if subtitle is defined and subtitle is not empty %}{{ subtitle }} | {% endif %}トピックス | {{ BaseInfo.shop_name }}</title>
  28.     {% else %}
  29.         <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>
  30.     {% endif %}
  31.     {% if Page.meta_tags is not empty %}
  32.         {{ include(template_from_string(Page.meta_tags)) }}
  33.         {% if Page.description is not empty %}
  34.             <meta name="description" content="{{ Page.description }}">
  35.         {% endif %}
  36.     {% else %}
  37.         {{ include('meta.twig') }}
  38.     {% endif %}
  39.     {% if Page.author is not empty %}
  40.         <meta name="author" content="{{ Page.author }}">
  41.     {% endif %}
  42.     {% if Page.keyword is not empty %}
  43.         <meta name="keywords" content="{{ Page.keyword }}">
  44.     {% else %}
  45.         <meta name="keywords" content="無憂扇,むゆうせん,びわ,化粧品,オンラインショップ">
  46.     {% endif %}
  47.     {% if Page.meta_robots is not empty %}
  48.         <meta name="robots" content="{{ Page.meta_robots }}">
  49.     {% endif %}
  50.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  51.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  52.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  53.     <link rel="stylesheet" href="{{ asset('assets/css/original.css') }}">
  54.     {% block stylesheet %}{% endblock %}
  55.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  56.     <script>
  57.         $(function() {
  58.             $.ajaxSetup({
  59.                 'headers': {
  60.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  61.                 }
  62.             });
  63.         });
  64.     </script>
  65.     {# Layout: HEAD #}
  66.     {% if Layout.Head %}
  67.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  68.     {% endif %}
  69.     {# プラグイン用styleseetやmetatagなど #}
  70.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  71.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  72. </head>
  73. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  74. {# Layout: BODY_AFTER #}
  75. {% if Layout.BodyAfter %}
  76.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  77. {% endif %}
  78. {% if isMaintenance %}
  79.     <div class="ec-maintenanceAlert">
  80.         <div>
  81.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  82.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  83.         </div>
  84.     </div>
  85. {% endif %}
  86. {# Layout: HEADER #}
  87. {% if Layout.Header %}
  88.     {{ include('block.twig', {'Blocks': Layout.Header}) }}
  89. {% endif %}
  90. {# Layout: CONTENTS_TOP #}
  91. {% if Layout.ContentsTop %}
  92.     {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  93. {% endif %}
  94.     {# Layout: SIDE_LEFT #}
  95.     {% if Layout.SideLeft %}
  96.         {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  97.     {% endif %}
  98.     {% set layoutRoleMain = 'ec-layoutRole__main' %}
  99.     {% if Layout.ColumnNum == 2 %}
  100.         {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  101.     {% elseif Layout.ColumnNum == 3 %}
  102.         {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  103.     {% endif %}
  104.     <main class="{{ main_class|default('l-main') }}">
  105.         {# Layout: MAIN_TOP #}
  106.         {% if Layout.MainTop %}
  107.             {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  108.         {% endif %}
  109.         {# MAIN AREA #}
  110.         {% block main %}{% endblock %}
  111.         {# Layout: MAIN_Bottom #}
  112.         {% if Layout.MainBottom %}
  113.             {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  114.         {% endif %}
  115.     </main>
  116.     {# Layout: SIDE_RIGHT #}
  117.     {% if Layout.SideRight %}
  118.         {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  119.     {% endif %}
  120. {# Layout: CONTENTS_BOTTOM #}
  121. {% if Layout.ContentsBottom %}
  122.     {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  123. {% endif %}
  124. {# Layout: CONTENTS_FOOTER #}
  125. {% if Layout.Footer %}
  126.     {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  127. {% endif %}
  128. {# Layout: DRAWER #}
  129. {% if Layout.Drawer %}
  130.     {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  131. {% endif %}
  132. {% include('@common/lang.twig') %}
  133. <script src="{{ asset('assets/js/function.js') }}"></script>
  134. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  135. {% block javascript %}{% endblock %}
  136. {# Layout: CLOSE_BODY_BEFORE #}
  137. {% if Layout.CloseBodyBefore %}
  138.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  139. {% endif %}
  140. {# プラグイン用Snippet #}
  141. {% if plugin_snippets is defined %}
  142.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  143. {% endif %}
  144.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  145. </body>
  146. </html>