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. <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>
  15.             {% if app.user != null %}
  16.                 {# ランクがセンリョク基本 #}
  17.                 {% if app.user.rank.getId == 3 %}
  18.                     センリョク
  19.                 {# ランクがセンリョク仕入れ強化 #}
  20.                 {% elseif app.user.rank.getId == 6 %}
  21.                     センリョク
  22.                 {# ランクが一人親方 #}
  23.                 {% elseif app.user.rank.getId == 5 %}
  24.                     一人親方労災保険組合 powered by センリョク
  25.                 {% endif %}
  26.             {% else %}
  27.                 {{ BaseInfo.shop_name }}
  28.             {% endif %}
  29.             {% if subtitle is defined and subtitle is not empty %}
  30.                 /
  31.                 {{ subtitle }}
  32.             {% elseif title is defined and title is not empty %}
  33.                 /
  34.                 {{ title }}
  35.             {% endif %}
  36.         </title>
  37.         {% if Page.meta_tags is not empty %}
  38.             {{ include(template_from_string(Page.meta_tags)) }}
  39.             {% if Page.description is not empty %}
  40.                 <meta name="description" content="{{ Page.description }}">
  41.             {% endif %}
  42.         {% else %}
  43.             {{ include('meta.twig') }}
  44.         {% endif %}
  45.         {% if Page.author is not empty %}
  46.             <meta name="author" content="{{ Page.author }}">
  47.         {% endif %}
  48.         {% if Page.keyword is not empty %}
  49.             <meta name="keywords" content="{{ Page.keyword }}">
  50.         {% endif %}
  51.         {% if Page.meta_robots is not empty %}
  52.             <meta name="robots" content="{{ Page.meta_robots }}">
  53.         {% endif %}
  54.         <link rel="icon" href="{{ asset('assets/img/common/favicon_mizu-tech.ico', 'user_data') }}">
  55.         <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  56.         <link rel="stylesheet" href="{{ asset('assets/css/style.css?20241001') }}">
  57.         <link rel="stylesheet" href="{{ asset('assets/css/form.css') }}">
  58.         <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  59.         {% block stylesheet %}{% endblock %}
  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 %}
  75.             {{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}
  76.         {% endif %}
  77.         <link rel="stylesheet" href="{{ asset('assets/css/customize.css?202410081230', 'user_data') }}">
  78.     </head>
  79.     <body
  80.         id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  81.         {# Layout: BODY_AFTER #}
  82.         {% if Layout.BodyAfter %}
  83.             {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  84.         {% endif %}
  85.         {% if isMaintenance %}
  86.             <div class="ec-maintenanceAlert">
  87.                 <div>
  88.                     <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  89.                     {{ 'メンテナンスモードが有効になっています。'|trans }}
  90.                 </div>
  91.             </div>
  92.         {% endif %}
  93.         <div
  94.             class="ec-layoutRole">
  95.             {# Layout: HEADER #}
  96.             {% if Layout.Header %}
  97.                 <header class="ec-layoutRole__header">
  98.                     {{ include('block.twig', {'Blocks': Layout.Header}) }}
  99.                 </header>
  100.             {% endif %}
  101.             {# Layout: CONTENTS_TOP #}
  102.             {% if Layout.ContentsTop %}
  103.                 <div class="ec-layoutRole__contentTop">
  104.                     {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  105.                 </div>
  106.             {% endif %}
  107.             <div
  108.                 class="ec-layoutRole__contents">
  109.                 {# Layout: SIDE_LEFT #}
  110.                 {% if Layout.SideLeft %}
  111.                     <aside class="ec-layoutRole__left">
  112.                         {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  113.                     </aside>
  114.                 {% endif %}
  115.                 {% set layoutRoleMain = 'ec-layoutRole__main' %}
  116.                 {% if Layout.ColumnNum == 2 %}
  117.                     {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  118.                 {% elseif Layout.ColumnNum == 3 %}
  119.                     {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  120.                 {% endif %}
  121.                 <main
  122.                     class="{{ layoutRoleMain }}">
  123.                     {# Layout: MAIN_TOP #}
  124.                     {% if Layout.MainTop %}
  125.                         <div class="ec-layoutRole__mainTop">
  126.                             {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  127.                         </div>
  128.                     {% endif %}
  129.                     {# MAIN AREA #}
  130.                     {% block main %}{% endblock %}
  131.                     {# Layout: MAIN_Bottom #}
  132.                     {% if Layout.MainBottom %}
  133.                         <div class="ec-layoutRole__mainBottom">
  134.                             {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  135.                         </div>
  136.                     {% endif %}
  137.                 </main>
  138.                 {# Layout: SIDE_RIGHT #}
  139.                 {% if Layout.SideRight %}
  140.                     <aside class="ec-layoutRole__right">
  141.                         {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  142.                     </aside>
  143.                 {% endif %}
  144.             </div>
  145.             {# Layout: CONTENTS_BOTTOM #}
  146.             {% if Layout.ContentsBottom %}
  147.                 <div class="ec-layoutRole__contentBottom">
  148.                     {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  149.                 </div>
  150.             {% endif %}
  151.             {# Layout: CONTENTS_FOOTER #}
  152.             {% if Layout.Footer %}
  153.                 <footer class="ec-layoutRole__footer">
  154.                     {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  155.                 </footer>
  156.             {% endif %}
  157.         </div>
  158.         <!-- ec-layoutRole -->
  159.         <div class="ec-overlayRole"></div>
  160.         <div class="ec-drawerRoleClose">
  161.             <i class="fas fa-times"></i>
  162.         </div>
  163.         <div
  164.             class="ec-drawerRole">
  165.             {# Layout: DRAWER #}
  166.             {% if Layout.Drawer %}
  167.                 {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  168.             {% endif %}
  169.         </div>
  170.         <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  171.         {% include('@common/lang.twig') %}
  172.         <script src="{{ asset('assets/js/function.js') }}"></script>
  173.         <script src="{{ asset('assets/js/eccube.js?20241003') }}"></script>
  174.         {% block javascript %}{% endblock %}
  175.         {# Layout: CLOSE_BODY_BEFORE #}
  176.         {% if Layout.CloseBodyBefore %}
  177.             {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  178.         {% endif %}
  179.         {# プラグイン用Snippet #}
  180.         {% if plugin_snippets is defined %}
  181.             {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  182.         {% endif %}
  183.         <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  184.     </body>
  185. </html>