app/template/bootcube/default_frame.twig line 106

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), 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.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.5.2/css/all.css" integrity="sha384-PPIZEGYM1v8zp5Py7UjFb79S58UeqCL9pYVnVPURKEqvioPROaVAJKKLzvH2rDnI" crossorigin="anonymous">
  34.     <!-- feather icon -->
  35.     <script src="https://unpkg.com/feather-icons"></script>
  36.     <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
  37.     <!-- style -->
  38.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  39.     <link rel="stylesheet" href="{{ asset('assets/css/theme.css') }}">
  40.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  41.     {% block stylesheet %}{% endblock %}
  42.     <script>
  43.         $(function() {
  44.             $.ajaxSetup({
  45.                 'headers': {
  46.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  47.                 }
  48.             });
  49.         });
  50.     </script>
  51.     {# Layout: HEAD #}
  52.     {% if Layout.Head %}
  53.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  54.     {% endif %}
  55.     {# プラグイン用styleseetやmetatagなど #}
  56.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  57.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  58. </head>
  59. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  60. {# Layout: BODY_AFTER #}
  61. {% if Layout.BodyAfter %}
  62.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  63. {% endif %}
  64. {%  if isMaintenance is defined and isMaintenance and isDebugMode %}
  65.     <dev class="ec-twoModeAlert">
  66.         <div class="ec-maintenanceAlert">
  67.             <div>
  68.                 <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  69.                 {{ 'メンテナンスモードが有効になっています。'|trans }}
  70.             </div>
  71.         </div>
  72.         <div class="ec-debugModeAlert bg-danger">
  73.             <div>
  74.                 <div class="ec-debugModeAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  75.                 {{ 'デバッグモードが有効になっています。'|trans }}
  76.             </div>
  77.         </div>
  78.     </dev>
  79. {%  else %}
  80.     {% if isMaintenance %}
  81.         <div class="ec-maintenanceAlert">
  82.             <div>
  83.                 <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  84.                 {{ 'メンテナンスモードが有効になっています。'|trans }}
  85.             </div>
  86.         </div>
  87.     {% endif %}
  88. {#    {% if isDebugMode %}
  89.         <div class="ec-debugModeAlert bg-danger">
  90.             <div>
  91.                 <div class="ec-debugModeAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  92.                 {{ 'デバッグモードが有効になっています。'|trans }}
  93.             </div>
  94.        </div>
  95.     {% endif %}#}
  96. {% endif %}
  97. <div class="ec-layoutRole">
  98.     {# Layout: HEADER #}
  99.     {% if Layout.Header %}
  100.         <header class="ec-layoutRole__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.         <div class="container">
  112.             <div class="row">
  113.                 {# Layout: SIDE_LEFT #}
  114.                 {% if Layout.SideLeft %}
  115.                     <div class="ec-layoutRole__left col-12 col-lg-3 order-2 order-lg-1">
  116.                         {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  117.                     </div>
  118.                 {% endif %}
  119.                 {% set layoutRoleMain = 'col-12' %}
  120.                 {% if Layout.ColumnNum == 2 %}
  121.                     {% set layoutRoleMain = 'col-12 col-lg-9 order-1' %}
  122.                 {% elseif Layout.ColumnNum == 3 %}
  123.                     {% set layoutRoleMain = 'col-12 col-lg-6 order-2' %}
  124.                 {% endif %}
  125.                 {% set layoutRoleRight = 'col-xs-12 col-lg-3 order-2' %}
  126.                 {% if Layout.ColumnNum == 3 %}
  127.                     {% set layoutRoleRight = 'col-12 col-lg-3 order-3' %}
  128.                 {% endif %}
  129.                 <div class="{{ layoutRoleMain }}">
  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.                 </div>
  145.                 {# Layout: SIDE_RIGHT #}
  146.                 {% if Layout.SideRight %}
  147.                     <div class="ec-layoutRole__right {{ layoutRoleRight }}">
  148.                         {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  149.                     </div>
  150.                 {% endif %}
  151.             </div>
  152.         </div>
  153.     </div>
  154.     {# Layout: CONTENTS_BOTTOM #}
  155.     {% if Layout.ContentsBottom %}
  156.         <div class="ec-layoutRole__contentBottom">
  157.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  158.         </div>
  159.     {% endif %}
  160.     {# Layout: CONTENTS_FOOTER #}
  161.     {% if Layout.Footer %}
  162.         <footer class="ec-layoutRole__footer">
  163.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  164.         </footer>
  165.     {% endif %}
  166. </div><!-- ec-layoutRole -->
  167. <div class="ec-overlayRole"></div>
  168. <div class="ec-headerNavSP d-flex d-lg-none justify-content-center align-items-center"><i data-feather="menu" width="18" height="18"></i></div>
  169. <div class="ec-drawerRoleClose justify-content-center align-items-center"><i data-feather="x" width="18" height="18"></i></div>
  170. <div class="ec-drawerRole">
  171.     {# Layout: DRAWER #}
  172.     {% if Layout.Drawer %}
  173.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  174.     {% endif %}
  175. </div>
  176. <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  177. {% include('@common/lang.twig') %}
  178. <script src="{{ asset('assets/js/function.js') }}"></script>
  179. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  180. <script>feather.replace({ 'stroke-width': 1, 'width': 20, 'height': 20 });</script>
  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.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  191. </body>
  192. </html>