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 Manager -->
  12.     <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  13.     new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  14.     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  15.     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  16.     })(window,document,'script','dataLayer','GTM-M8BCQQL4');</script>
  17.     <!-- End Google Tag Manager -->
  18.     <meta charset="utf-8">
  19.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  20.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  21.     
  22.     <title>
  23.     {% set route = app.request.get('_route') %}
  24.     {% if route == 'homepage' %}
  25.         中国茶農家の高品質なお茶を販売|茗茶香(MEICHAKO)|零氏株式会社
  26.     {% elseif route == 'product_detail' %}
  27.         {{ Product.name }}|中国茶農家の高品質なお茶を販売|茗茶香(MEICHAKO)|零氏株式会社
  28.     {% elseif route == 'product_list' %}
  29.         {% if Category %}
  30.             {{ Category.name }}一覧|中国茶農家の高品質なお茶を販売|茗茶香(MEICHAKO)|零氏株式会社
  31.         {% else %}
  32.             {{ title }}|中国茶農家の高品質なお茶を販売|茗茶香(MEICHAKO)|零氏株式会社
  33.         {% endif %}
  34.     {% else %}
  35.         {{ title }}|中国茶農家の高品質なお茶を販売|茗茶香(MEICHAKO)|零氏株式会社
  36.     {% endif %}
  37.     {# {{ BaseInfo.shop_name }}{% if subtitle is defined and subtitle is not empty %} / {{ subtitle }}{% elseif title is defined and title is not empty %} / {{ title }}{% endif %} #}
  38.     </title>
  39.     {% if Page.meta_tags is not empty %}
  40.         {{ include(template_from_string(Page.meta_tags), sandboxed = true) }}
  41.         {% if Page.description is not empty %}
  42.             <meta name="description" content="{{ Page.description }}">
  43.         {% endif %}
  44.     {% else %}
  45.         {{ include('meta.twig') }}
  46.     {% endif %}
  47.     {% if Page.author is not empty %}
  48.         <meta name="author" content="{{ Page.author }}">
  49.     {% endif %}
  50.     {% if Page.keyword is not empty %}
  51.         <meta name="keywords" content="{{ Page.keyword }}">
  52.     {% endif %}
  53.     {% if Page.meta_robots is not empty %}
  54.         <meta name="robots" content="{{ Page.meta_robots }}">
  55.     {% endif %}
  56.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  57.     <link rel="apple-touch-icon" href="{{ asset('assets/img/common/apple-touch-icon-180.png', 'user_data') }}" type="image/png" sizes="180x180">
  58.     <link rel="shortcut icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}" type="image/vnd.microsoft.icon">
  59.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  60.     <link rel="stylesheet" href="{{ asset('assets/css/reset.css', 'user_data') }}">
  61.     <link rel="stylesheet" href="{{ asset('assets/css/lib/splide-core.min.css', 'user_data') }}">
  62.     <link rel="stylesheet" href="{{ asset('assets/css/lib/swiper-bundle.min.css', 'user_data') }}">
  63.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  64.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  65.     
  66.     {% block stylesheet %}{% endblock %}
  67.     <script>
  68.         $(function() {
  69.             $.ajaxSetup({
  70.                 'headers': {
  71.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  72.                 }
  73.             });
  74.         });
  75.     </script>
  76.     <script src="{{ asset('assets/js/lib/splide.min.js', 'user_data') }}"></script>
  77.     <script src="{{ asset('assets/js/lib/swiper-bundle.min.js', 'user_data') }}"></script>
  78.     {# Layout: HEAD #}
  79.     {% if Layout.Head %}
  80.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  81.     {% endif %}
  82.     {# プラグイン用styleseetやmetatagなど #}
  83.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  84.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css?251223', 'user_data') }}">
  85. </head>
  86. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  87. <!-- Google Tag Manager (noscript) -->
  88. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M8BCQQL4"
  89. height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  90. <!-- End Google Tag Manager (noscript) -->
  91. {# Layout: BODY_AFTER #}
  92. {% if Layout.BodyAfter %}
  93.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  94. {% endif %}
  95. {% if isMaintenance %}
  96.     <div class="ec-maintenanceAlert">
  97.         <div>
  98.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  99.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  100.         </div>
  101.     </div>
  102. {% endif %}
  103. <div class="ec-layoutRole">
  104.     {# Layout: HEADER #}
  105.     {% if Layout.Header %}
  106.         <header class="header" id="header">
  107.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  108.         </header>
  109.     {% endif %}
  110.     {# Layout: CONTENTS_TOP #}
  111.     {% if Layout.ContentsTop %}
  112.         <div class="ec-layoutRole__contentTop">
  113.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  114.         </div>
  115.     {% endif %}
  116.     <div class="ec-layoutRole__contents">
  117.         {# Layout: SIDE_LEFT #}
  118.         {% if Layout.SideLeft %}
  119.             <aside class="ec-layoutRole__left">
  120.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  121.             </aside>
  122.         {% endif %}
  123.         {% set layoutRoleMain = 'main' %}
  124.         {% if Layout.ColumnNum == 2 %}
  125.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  126.         {% elseif Layout.ColumnNum == 3 %}
  127.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  128.         {% endif %}
  129.         <main class="{{ layoutRoleMain }}" id="{% block main_id %}main{% endblock %}">
  130.             {# Layout: MAIN_TOP #}
  131.             {% if Layout.MainTop %}
  132.                 <div class="ec-layoutRole__mainTop">
  133.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  134.                 </div>
  135.             {% endif %}
  136.             {# MAIN AREA #}
  137.             {% block main %}{% endblock %}
  138.             {# Layout: MAIN_Bottom #}
  139.             {% if Layout.MainBottom %}
  140.                 <div class="ec-layoutRole__mainBottom">
  141.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  142.                 </div>
  143.             {% endif %}
  144.         </main>
  145.         {# Layout: SIDE_RIGHT #}
  146.         {% if Layout.SideRight %}
  147.             <aside class="ec-layoutRole__right">
  148.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  149.             </aside>
  150.         {% endif %}
  151.     </div>
  152.     {# Layout: CONTENTS_BOTTOM #}
  153.     {% if Layout.ContentsBottom %}
  154.         <div class="ec-layoutRole__contentBottom">
  155.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  156.         </div>
  157.     {% endif %}
  158.     {# Layout: CONTENTS_FOOTER #}
  159.     {% if Layout.Footer %}
  160.         <footer class="footer">
  161.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  162.         </footer>
  163.     {% endif %}
  164. </div><!-- ec-layoutRole -->
  165. <div class="ec-overlayRole"></div>
  166. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  167. <div class="ec-drawerRole">
  168.     {# Layout: DRAWER #}
  169.     {% if Layout.Drawer %}
  170.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  171.     {% endif %}
  172. </div>
  173. <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  174. {% include('@common/lang.twig') %}
  175. <script src="{{ asset('assets/js/function.js') }}"></script>
  176. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  177. {% block javascript %}{% endblock %}
  178. {# Layout: CLOSE_BODY_BEFORE #}
  179. {% if Layout.CloseBodyBefore %}
  180.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  181. {% endif %}
  182. {# プラグイン用Snippet #}
  183. {% if plugin_snippets is defined %}
  184.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  185. {% endif %}
  186.     <script src="{{ asset('assets/js/customize.js?251222', 'user_data') }}"></script>
  187. </body>
  188. </html>