app/template/BlackCherry/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.     <meta charset="utf-8">
  12.     <meta name="viewport" content="width=device-width, initial-scale=1">
  13.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  14.     <meta name="google-site-verification" content="google-site-verification=QswkVBzgFNK_-PneV66LEJ7ThVu8mmiGyWDKkJj-ghA">
  15.     <!-- 重要な画像の事前読み込み(LCP改善) -->
  16.     {% if app.request.get('_route') == 'homepage' %}
  17.         <link rel="preload" as="image" href="{{ asset('assets/img/top/img_point.png') }}">
  18.         <link rel="preload" as="image" href="{{ asset('assets/img/top/img_bp_autumn.png') }}">
  19.         <!-- モバイル専用の最適化 -->
  20.         <meta name="format-detection" content="telephone=no">
  21.         <meta name="mobile-web-app-capable" content="yes">
  22.         <meta name="apple-mobile-web-app-capable" content="yes">
  23.         <meta name="apple-mobile-web-app-status-bar-style" content="default">
  24.     {% endif %}
  25.     <!-- Google tag (gtag.js) -->
  26.     <script async src="https://www.googletagmanager.com/gtag/js?id=G-GP71SN25SC"></script>
  27.     <script>
  28.     window.dataLayer = window.dataLayer || [];
  29.     function gtag(){dataLayer.push(arguments);}
  30.     gtag('js', new Date());
  31.     gtag('config', 'G-GP71SN25SC');
  32.     </script>
  33.     <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>
  34.     {% if Page.meta_tags is not empty %}
  35.         {{ include(template_from_string(Page.meta_tags), sandboxed = true) }}
  36.         {% if Page.description is not empty %}
  37.             <meta name="description" content="{{ Page.description }}">
  38.         {% endif %}
  39.     {% else %}
  40.         {{ include('meta.twig') }}
  41.     {% endif %}
  42.     {% if Page.author is not empty %}
  43.         <meta name="author" content="{{ Page.author }}">
  44.     {% endif %}
  45.     {% if Page.keyword is not empty %}
  46.         <meta name="keywords" content="{{ Page.keyword }}">
  47.     {% endif %}
  48.    {% block meta %}
  49.         {% if app.request.query.all|length > 0 %}
  50.             <meta name="robots" content="noindex,nofollow">
  51.         {% elseif Page.meta_robots is not empty %}
  52.             <meta name="robots" content="{{ Page.meta_robots }}">
  53.         {% endif %}
  54.     {% endblock %}
  55.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  56.     <!--
  57.     <link href="https://use.fontawesome.com/releases/v6.6.0/css/all.css" rel="stylesheet">
  58.     <link rel="stylesheet" href="{{ asset('assets/css/style.min.css') }}?v={{ date().timestamp }}">
  59.     <link rel="stylesheet" href="{{ asset('assets/css/add.min.css') }}?v={{ date().timestamp }}">
  60.     <link rel="stylesheet" href="{{ asset('assets/css/migrate.css') }}?v={{ date().timestamp }}">
  61.      -->
  62.     <link rel="stylesheet" href="{{ asset('assets/css/bundle.min.css') }}?v={{ date().timestamp }}">    
  63.     <link rel="stylesheet" href="{{ asset('assets/css/custom.css') }}?v={{ date().timestamp }}">
  64.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  65.     {% block stylesheet %}{% endblock %}
  66.     <script>
  67.         $(function() {
  68.             $.ajaxSetup({
  69.                 'headers': {
  70.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  71.                 }
  72.             });
  73.         });
  74.     </script>
  75.     {# Layout: HEAD #}
  76.     {% if Layout.Head %}
  77.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  78.     {% endif %}
  79.     {# プラグイン用styleseetやmetatagなど #}
  80.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  81.     <!-- <link rel="stylesheet" href="{{ asset('assets/css/customize.min.css', 'user_data') }}"> -->
  82. </head>
  83. {# 右クリック禁止 #}
  84. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}"  >
  85. {# Layout: BODY_AFTER #}
  86. {% if Layout.BodyAfter %}
  87.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  88. {% endif %}
  89. {% if isMaintenance %}
  90.     <div class="ec-maintenanceAlert">
  91.         <div>
  92.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  93.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  94.         </div>
  95.     </div>
  96. {% endif %}
  97. <div class="ec-layoutRole">
  98.     {# Layout: HEADER #}
  99.     {% if Layout.Header %}
  100.         <header>
  101.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  102.         </header>
  103.     {% endif %}
  104.     {# Layout: CONTENTS_TOP #}
  105.     {% if Layout.ContentsTop %}
  106.         <div class="ec-layoutRole__contentTop">
  107.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  108.         </div>
  109.     {% endif %}
  110.     <div class="ec-layoutRole__contents">
  111.         {# Layout: SIDE_LEFT #}
  112.         {% if Layout.SideLeft %}
  113.             <aside class="ec-layoutRole__left">
  114.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  115.             </aside>
  116.         {% endif %}
  117.        
  118.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  119.         {% if Layout.ColumnNum == 2 %}
  120.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  121.         {% elseif Layout.ColumnNum == 3 %}
  122.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  123.         {% endif %}
  124.         <main class="{{ layoutRoleMain }}">
  125.             {# Layout: MAIN_TOP #}
  126.             {% if Layout.MainTop %}
  127.                 <div class="ec-layoutRole__mainTop">
  128.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  129.                 </div>
  130.             {% endif %}
  131.             {# MAIN AREA #}
  132.             {% block main %}{% endblock %}
  133.             {# Layout: MAIN_Bottom #}
  134.             {% if Layout.MainBottom %}
  135.                 <div class="ec-layoutRole__mainBottom">
  136.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  137.                 </div>
  138.             {% endif %}
  139.         </main>
  140.         {# Layout: SIDE_RIGHT #}
  141.         {% if Layout.SideRight %}
  142.             <aside class="ec-layoutRole__right">
  143.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  144.             </aside>
  145.         {% endif %}
  146.     </div>
  147.     {# Layout: CONTENTS_BOTTOM #}
  148.     {% if Layout.ContentsBottom %}
  149.         <div class="ec-layoutRole__contentBottom">
  150.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  151.         </div>
  152.     {% endif %}
  153.     {# Layout: CONTENTS_FOOTER #}
  154.     {% if Layout.Footer %}
  155.         <footer class="ec-layoutRole__footer">
  156.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  157.         </footer>
  158.     {% endif %}
  159. </div><!-- ec-layoutRole -->
  160. <div class="ec-overlayRole"></div>
  161. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  162. <div class="ec-drawerRole">
  163.     {# Layout: DRAWER #}
  164.     {% if Layout.Drawer %}
  165.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  166.     {% endif %}
  167. </div>
  168. <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  169. {% include('@common/lang.twig') %}
  170. <script src="{{ asset('assets/js/function.js') }}"></script>
  171. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  172. {% block javascript %}{% endblock %}
  173. {# Layout: CLOSE_BODY_BEFORE #}
  174. {% if Layout.CloseBodyBefore %}
  175.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  176. {% endif %}
  177. {# プラグイン用Snippet #}
  178. {% if plugin_snippets is defined %}
  179.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  180. {% endif %}
  181.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  182. </body>
  183. </html>