app/template/default/default_frame.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. {#
  3. This file is part of EC-CUBE, Overwrite by INSPIRATION
  4. #}
  5. <html lang="{{ eccube_config.locale }}">
  6. <head>
  7.     <meta charset="UTF-8">
  8.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  10. {% if app.request.attributes.get('_route') == 'homepage' %}
  11.     <title>{{ BaseInfo.shop_name }}</title>
  12. {% else %}
  13.     <title>{% if subtitle is defined and subtitle is not empty %}{{ subtitle }} | {% elseif title is defined and title is not empty %}{{ title }} | {% endif %}ゴルフプリント</title>
  14. {% endif %}
  15.     {% if Page.meta_tags is not empty %}
  16.         {{ include(template_from_string(Page.meta_tags), sandboxed = true) }}
  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.     <!-- Common CSS -->
  34.     <link rel="stylesheet" href="{{ asset('assets/css/original.min.css') }}">
  35. {{ include('css.twig') }}
  36.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  37.     {% block stylesheet %}{% endblock %}
  38.     <style type="text/css">
  39.         .ec-debugModeAlert {
  40.             background: red;
  41.             height: 50px;
  42.             position: fixed;
  43.             top: 0;
  44.             width: 100%;
  45.             color: white;
  46.             z-index: 9999;
  47.             display: flex;
  48.             font-weight: bold;
  49.         }
  50.         .ec-debugModeAlert .ec-debugModeAlert__icon {
  51.             display: inline-block;
  52.             margin-right: 1rem;
  53.             width: 20px;
  54.             height: 20px;
  55.             color: #fff;
  56.             fill: #fff;
  57.             vertical-align: top;
  58.         }
  59.     </style>
  60.     <script>
  61.         $(function() {
  62.             $.ajaxSetup({
  63.                 'headers': {
  64.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  65.                 }
  66.             });
  67.         });
  68.     </script>
  69.     {# Layout: HEAD #}
  70.     {% if Layout.Head %}
  71.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  72.     {% endif %}
  73.     {# プラグイン用styleseetやmetatagなど #}
  74.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  75. </head>
  76. <body>
  77. {#
  78.     <!--▼googleAnalytics-->
  79.     <script>
  80.       (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  81.       (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  82.       m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  83.       })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  84.       ga('create', 'UA-46462729-1', 'golfprint.jp');
  85.       ga('send', 'pageview');
  86.     </script>
  87.     <!--▲googleAnalytics-->
  88. #}
  89. {# Layout: BODY_AFTER #}
  90. {% if Layout.BodyAfter %}
  91.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  92. {% endif %}
  93. {#
  94. {%  if isMaintenance is defined and isMaintenance and isDebugMode %}
  95.     <dev class="ec-twoModeAlert">
  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.         <div class="ec-debugModeAlert bg-danger">
  103.             <div>
  104.                 <div class="ec-debugModeAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  105.                 {{ 'デバッグモードが有効になっています。'|trans }}
  106.             </div>
  107.         </div>
  108.     </dev>
  109. {%  else %}
  110.     {% if isMaintenance %}
  111.         <div class="ec-maintenanceAlert">
  112.             <div>
  113.                 <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  114.                 {{ 'メンテナンスモードが有効になっています。'|trans }}
  115.             </div>
  116.         </div>
  117.     {% endif %}
  118.     {% if isDebugMode %}
  119.         <div class="ec-debugModeAlert bg-danger">
  120.             <div>
  121.                 <div class="ec-debugModeAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  122.                 {{ 'デバッグモードが有効になっています。'|trans }}
  123.             </div>
  124.         </div>
  125.     {% endif %}
  126. {% endif %}
  127. #}
  128.     {# Layout: HEADER #}
  129.     {% if Layout.Header %}
  130.         {{ include('block.twig', {'Blocks': Layout.Header}) }}
  131.     {% endif %}
  132.     {# Layout: CONTENTS_TOP #}
  133.     {% if Layout.ContentsTop %}
  134.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  135.     {% endif %}
  136.         {# Layout: SIDE_LEFT #}
  137.         {% if Layout.SideLeft %}
  138.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  139.         {% endif %}
  140.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  141.         {% if Layout.ColumnNum == 2 %}
  142.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  143.         {% elseif Layout.ColumnNum == 3 %}
  144.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  145.         {% endif %}
  146.             {# Layout: MAIN_TOP #}
  147.             {% if Layout.MainTop %}
  148.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  149.             {% endif %}
  150.             {# MAIN AREA #}
  151.             {% block main %}{% endblock %}
  152.             {# Layout: MAIN_Bottom #}
  153.             {% if Layout.MainBottom %}
  154.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  155.             {% endif %}
  156.         {# Layout: SIDE_RIGHT #}
  157.         {% if Layout.SideRight %}
  158.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  159.         {% endif %}
  160.     {# Layout: CONTENTS_BOTTOM #}
  161.     {% if Layout.ContentsBottom %}
  162.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  163.     {% endif %}
  164.     {# Layout: CONTENTS_FOOTER #}
  165.     {% if Layout.Footer %}
  166.         {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  167.     {% endif %}
  168.     {# Layout: DRAWER #}
  169.     {% if Layout.Drawer %}
  170. <div class="drawerRole">
  171.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  172. </div>
  173.     {% endif %}
  174. <!-- Common JS -->
  175. <script src="//cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
  176. <script src="{{ asset('assets/js/common.min.js') }}"></script>
  177. {% include('@common/lang.twig') %}
  178. <script src="{{ asset('assets/js/function.js') }}"></script>
  179. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  180. {{ include('javascript.twig') }}
  181. {% block javascript %}{% endblock %}
  182. {# Layout: CLOSE_BODY_BEFORE #}
  183. {% if Layout.CloseBodyBefore %}
  184.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  185. {% endif %}
  186. {# プラグイン用Snippet #}
  187. {% if plugin_snippets is defined %}
  188.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  189. {% endif %}
  190. </body>
  191. </html>