app/template/bootcube2/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: http://ogp.me/ns# fb: http://ogp.me/ns/fb# product: http://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)) }}
  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.     {% if Page.meta_tags is not empty %}
  33.         {{ include(template_from_string(Page.meta_tags)) }}
  34.     {% endif %}
  35.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  36.     <!-- bootstrap4 -->
  37.     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">
  38.     <!-- fontawesome -->
  39.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  40.     <!-- feather icon -->
  41.     <script src="https://unpkg.com/feather-icons"></script>
  42.     <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
  43.     <!-- slick -->
  44.     <link rel="stylesheet" href="{{ asset('assets/slick/slick.css') }}">
  45.     <link rel="stylesheet" href="{{ asset('assets/slick/slick-theme.css') }}">
  46.     <!-- style -->
  47.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  48.     <link rel="stylesheet" href="{{ asset('assets/css/theme.css') }}">
  49.     {% block stylesheet %}{% endblock %}
  50.     <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
  51.     <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF" crossorigin="anonymous"></script>
  52.     <script>
  53.         $(function() {
  54.             $.ajaxSetup({
  55.                 'headers': {
  56.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  57.                 }
  58.             });
  59.         });
  60.     </script>
  61.     {# Layout: HEAD #}
  62.     {% if Layout.Head %}
  63.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  64.     {% endif %}
  65.     {# プラグイン用styleseetやmetatagなど #}
  66.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  67.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  68. </head>
  69. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  70. {# Layout: BODY_AFTER #}
  71. {% if Layout.BodyAfter %}
  72.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  73. {% endif %}
  74. {% if isMaintenance %}
  75.     <div class="ec-maintenanceAlert">
  76.         <div>
  77.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  78.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  79.         </div>
  80.     </div>
  81. {% endif %}
  82. <div class="ec-layoutRole">
  83.     {# Layout: HEADER #}
  84.     {% if Layout.Header %}
  85.         <div class="ec-layoutRole__header">
  86.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  87.         </div>
  88.     {% endif %}
  89.     {# Layout: CONTENTS_TOP #}
  90.     {% if Layout.ContentsTop %}
  91.         <div class="ec-layoutRole__contentTop">
  92.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  93.         </div>
  94.     {% endif %}
  95.     <div class="ec-layoutRole__contents">
  96.         <div class="container">
  97.             <div class="row">
  98.                 {# Layout: SIDE_LEFT #}
  99.                 {% if Layout.SideLeft %}
  100.                     <div class="ec-layoutRole__left col-12 col-lg-3 order-2 order-lg-1">
  101.                         {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  102.                     </div>
  103.                 {% endif %}
  104.                 {% set layoutRoleMain = 'col-12' %}
  105.                 {% if Layout.ColumnNum == 2 %}
  106.                     {% set layoutRoleMain = 'col-12 col-lg-9 order-1' %}
  107.                 {% elseif Layout.ColumnNum == 3 %}
  108.                     {% set layoutRoleMain = 'col-12 col-lg-6 order-2' %}
  109.                 {% endif %}
  110.                 {% set layoutRoleRight = 'col-xs-12 col-lg-3 order-2' %}
  111.                 {% if Layout.ColumnNum == 3 %}
  112.                     {% set layoutRoleRight = 'col-12 col-lg-3 order-3' %}
  113.                 {% endif %}
  114.                 <div class="{{ layoutRoleMain }}">
  115.                     {# Layout: MAIN_TOP #}
  116.                     {% if Layout.MainTop %}
  117.                         <div class="ec-layoutRole__mainTop">
  118.                             {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  119.                         </div>
  120.                     {% endif %}
  121.                     {# MAIN AREA #}
  122.                     {% block main %}{% endblock %}
  123.                     {# Layout: MAIN_Bottom #}
  124.                     {% if Layout.MainBottom %}
  125.                         <div class="ec-layoutRole__mainBottom">
  126.                             {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  127.                         </div>
  128.                     {% endif %}
  129.                 </div>
  130.                 {# Layout: SIDE_RIGHT #}
  131.                 {% if Layout.SideRight %}
  132.                     <div class="ec-layoutRole__right {{ layoutRoleRight }}">
  133.                         {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  134.                     </div>
  135.                 {% endif %}
  136.             </div>
  137.         </div>
  138.     </div>
  139.     {# Layout: CONTENTS_BOTTOM #}
  140.     {% if Layout.ContentsBottom %}
  141.         <div class="ec-layoutRole__contentBottom">
  142.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  143.         </div>
  144.     {% endif %}
  145.     {# Layout: CONTENTS_FOOTER #}
  146.     {% if Layout.Footer %}
  147.         <div class="ec-layoutRole__footer">
  148.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  149.         </div>
  150.     {% endif %}
  151. </div><!-- ec-layoutRole -->
  152. <div class="ec-overlayRole"></div>
  153. <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>
  154. <div class="ec-drawerRoleClose justify-content-center align-items-center"><i data-feather="x" width="18" height="18"></i></div>
  155. <div class="ec-drawerRole">
  156.     {# Layout: DRAWER #}
  157.     {% if Layout.Drawer %}
  158.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  159.     {% endif %}
  160. </div>
  161. <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  162. <script src="https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js"></script>
  163. {% include('@common/lang.twig') %}
  164. <script src="{{ asset('assets/js/function.js') }}"></script>
  165. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  166. <script>feather.replace({ 'stroke-width': 1, 'width': 20, 'height': 20 });</script>
  167. {% block javascript %}{% endblock %}
  168. {# Layout: CLOSE_BODY_BEFORE #}
  169. {% if Layout.CloseBodyBefore %}
  170.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  171. {% endif %}
  172. {# プラグイン用Snippet #}
  173. {% if plugin_snippets is defined %}
  174.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  175. {% endif %}
  176.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  177. </body>
  178. </html>