app/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. 修正年月日:2024/08/21 k.saito
  10. 修正内容:all.css のurlを修正(href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" -> href="{{ asset('assets/css/all.css') }}")
  11.   するため、カスタマイズ。
  12. #}
  13. <html lang="{{ eccube_config.locale }}">
  14. <head prefix="og: https://ogp.me/ns# fb: https://ogp.me/ns/fb# product: https://ogp.me/ns/product#">
  15.     <meta charset="utf-8">
  16.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  17.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  18.     <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>
  19.     {% if Page.meta_tags is not empty %}
  20.         {{ include(template_from_string(Page.meta_tags)) }}
  21.         {% if Page.description is not empty %}
  22.             <meta name="description" content="{{ Page.description }}">
  23.         {% endif %}
  24.     {% else %}
  25.         {{ include('meta.twig') }}
  26.     {% endif %}
  27.     {% if Page.author is not empty %}
  28.         <meta name="author" content="{{ Page.author }}">
  29.     {% endif %}
  30.     {% if Page.keyword is not empty %}
  31.         <meta name="keywords" content="{{ Page.keyword }}">
  32.     {% endif %}
  33.     {% if Page.meta_robots is not empty %}
  34.         <meta name="robots" content="{{ Page.meta_robots }}">
  35.     {% endif %}
  36.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  37. {#
  38.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  39. #}
  40.     <link rel="stylesheet" href="{{ asset('assets/css/all.css') }}">
  41.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  42.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  43.     {% block stylesheet %}{% endblock %}
  44.     <script>
  45.         $(function() {
  46.             $.ajaxSetup({
  47.                 'headers': {
  48.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  49.                 }
  50.             });
  51.         });
  52.     </script>
  53.     {# Layout: HEAD #}
  54.     {% if Layout.Head %}
  55.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  56.     {% endif %}
  57.     {# プラグイン用styleseetやmetatagなど #}
  58.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  59.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  60. </head>
  61. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  62. {# Layout: BODY_AFTER #}
  63. {% if Layout.BodyAfter %}
  64.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  65. {% endif %}
  66. {% if isMaintenance %}
  67.     <div class="ec-maintenanceAlert">
  68.         <div>
  69.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  70.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  71.         </div>
  72.     </div>
  73. {% endif %}
  74. <div class="ec-layoutRole">
  75.     {# Layout: HEADER #}
  76.     {% if Layout.Header %}
  77.         <header class="ec-layoutRole__header">
  78.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  79.         </header>
  80.     {% endif %}
  81.     {# Layout: CONTENTS_TOP #}
  82.     {% if Layout.ContentsTop %}
  83.         <div class="ec-layoutRole__contentTop">
  84.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  85.         </div>
  86.     {% endif %}
  87.     <div class="ec-layoutRole__contents">
  88.         {# Layout: SIDE_LEFT #}
  89.         {% if Layout.SideLeft %}
  90.             <aside class="ec-layoutRole__left">
  91.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  92.             </aside>
  93.         {% endif %}
  94.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  95.         {% if Layout.ColumnNum == 2 %}
  96.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  97.         {% elseif Layout.ColumnNum == 3 %}
  98.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  99.         {% endif %}
  100.         <main class="{{ layoutRoleMain }}">
  101.             {# Layout: MAIN_TOP #}
  102.             {% if Layout.MainTop %}
  103.                 <div class="ec-layoutRole__mainTop">
  104.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  105.                 </div>
  106.             {% endif %}
  107.             {# MAIN AREA #}
  108.             {% block main %}{% endblock %}
  109.             {# Layout: MAIN_Bottom #}
  110.             {% if Layout.MainBottom %}
  111.                 <div class="ec-layoutRole__mainBottom">
  112.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  113.                 </div>
  114.             {% endif %}
  115.         </main>
  116.         {# Layout: SIDE_RIGHT #}
  117.         {% if Layout.SideRight %}
  118.             <aside class="ec-layoutRole__right">
  119.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  120.             </aside>
  121.         {% endif %}
  122.     </div>
  123.     {# Layout: CONTENTS_BOTTOM #}
  124.     {% if Layout.ContentsBottom %}
  125.         <div class="ec-layoutRole__contentBottom">
  126.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  127.         </div>
  128.     {% endif %}
  129.     {# Layout: CONTENTS_FOOTER #}
  130.     {% if Layout.Footer %}
  131.         <footer class="ec-layoutRole__footer">
  132.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  133.         </footer>
  134.     {% endif %}
  135. </div><!-- ec-layoutRole -->
  136. <div class="ec-overlayRole"></div>
  137. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  138. <div class="ec-drawerRole">
  139.     {# Layout: DRAWER #}
  140.     {% if Layout.Drawer %}
  141.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  142.     {% endif %}
  143. </div>
  144. <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  145. {% include('@common/lang.twig') %}
  146. <script src="{{ asset('assets/js/function.js') }}"></script>
  147. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  148. {% block javascript %}{% endblock %}
  149. {# Layout: CLOSE_BODY_BEFORE #}
  150. {% if Layout.CloseBodyBefore %}
  151.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  152. {% endif %}
  153. {# プラグイン用Snippet #}
  154. {% if plugin_snippets is defined %}
  155.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  156. {% endif %}
  157.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  158. </body>
  159. </html>