src/Eccube/Resource/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: 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.author is not empty %}
  16.         <meta name="author" content="{{ Page.author }}">
  17.     {% endif %}
  18.     {% if Page.description is not empty %}
  19.         <meta name="description" content="{{ Page.description }}">
  20.     {% endif %}
  21.     {% if Page.keyword is not empty %}
  22.         <meta name="keywords" content="{{ Page.keyword }}">
  23.     {% endif %}
  24.     {% if Page.meta_robots is not empty %}
  25.         <meta name="robots" content="{{ Page.meta_robots }}">
  26.     {% endif %}
  27.     {% if Page.meta_tags is not empty %}
  28.         {{ include(template_from_string(Page.meta_tags)) }}
  29.     {% endif %}
  30.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  31.     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  32.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  33.     <link rel="stylesheet" href="//cdn.jsdelivr.net/jquery.slick/1.6.0/slick.css">
  34.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  35.     {% block stylesheet %}{% endblock %}
  36.     <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
  37.     <script>
  38.         $(function() {
  39.             $.ajaxSetup({
  40.                 'headers': {
  41.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  42.                 }
  43.             });
  44.         });
  45.     </script>
  46.     {# Layout: HEAD #}
  47.     {% if Layout.Head %}
  48.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  49.     {% endif %}
  50.     {# プラグイン用styleseetやmetatagなど #}
  51.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  52.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  53. </head>
  54. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  55. {# Layout: BODY_AFTER #}
  56. {% if Layout.BodyAfter %}
  57.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  58. {% endif %}
  59. <div class="ec-layoutRole">
  60.     {# Layout: HEADER #}
  61.     {% if Layout.Header %}
  62.         <div class="ec-layoutRole__header">
  63.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  64.         </div>
  65.     {% endif %}
  66.     {# Layout: CONTENTS_TOP #}
  67.     {% if Layout.ContentsTop %}
  68.         <div class="ec-layoutRole__contentTop">
  69.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  70.         </div>
  71.     {% endif %}
  72.     <div class="ec-layoutRole__contents">
  73.         {# Layout: SIDE_LEFT #}
  74.         {% if Layout.SideLeft %}
  75.             <div class="ec-layoutRole__left">
  76.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  77.             </div>
  78.         {% endif %}
  79.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  80.         {% if Layout.ColumnNum == 2 %}
  81.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  82.         {% elseif Layout.ColumnNum == 3 %}
  83.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  84.         {% endif %}
  85.         <div class="{{ layoutRoleMain }}">
  86.             {# Layout: MAIN_TOP #}
  87.             {% if Layout.MainTop %}
  88.                 <div class="ec-layoutRole__mainTop">
  89.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  90.                 </div>
  91.             {% endif %}
  92.             {# MAIN AREA #}
  93.             {% block main %}{% endblock %}
  94.             {# Layout: MAIN_Bottom #}
  95.             {% if Layout.MainBottom %}
  96.                 <div class="ec-layoutRole__mainBottom">
  97.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  98.                 </div>
  99.             {% endif %}
  100.         </div>
  101.         {# Layout: SIDE_RIGHT #}
  102.         {% if Layout.SideRight %}
  103.             <div class="ec-layoutRole__right">
  104.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  105.             </div>
  106.         {% endif %}
  107.     </div>
  108.     {# Layout: CONTENTS_BOTTOM #}
  109.     {% if Layout.ContentsBottom %}
  110.         <div class="ec-layoutRole__contentBottom">
  111.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  112.         </div>
  113.     {% endif %}
  114.     {# Layout: CONTENTS_FOOTER #}
  115.     {% if Layout.Footer %}
  116.         <div class="ec-layoutRole__footer">
  117.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  118.         </div>
  119.     {% endif %}
  120. </div><!-- ec-layoutRole -->
  121. <div class="ec-overlayRole"></div>
  122. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  123. <div class="ec-drawerRole">
  124.     {# Layout: DRAWER #}
  125.     {% if Layout.Drawer %}
  126.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  127.     {% endif %}
  128. </div>
  129. <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  130. <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
  131. <script src="https://cdn.jsdelivr.net/jquery.slick/1.6.0/slick.min.js"></script>
  132. {% include('@common/lang.twig') %}
  133. <script src="{{ asset('assets/js/function.js') }}"></script>
  134. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  135. {% block javascript %}{% endblock %}
  136. {# Layout: CLOSE_BODY_BEFORE #}
  137. {% if Layout.CloseBodyBefore %}
  138.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  139. {% endif %}
  140. {# プラグイン用Snippet #}
  141. {% if plugin_snippets is defined %}
  142.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  143. {% endif %}
  144.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  145. </body>
  146. </html>