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?20250430') }}">
  57.         <link rel="stylesheet" href="{{ asset('assets/css/customize.css?20250430', 'user_data') }}">
  58.         {% if 
  59.             app.request.pathInfo == '/estimation' 
  60.         or 
  61.             app.request.pathInfo == '/estimation/complete' 
  62.         or 
  63.             app.request.pathInfo == '/amount_confirmation/' 
  64.         or 
  65.             app.request.pathInfo == '/amount_confirmation/complete' 
  66.         or 
  67.             app.request.pathInfo == '/contact' 
  68.         or 
  69.             app.request.pathInfo == '/contact/complete' 
  70.         %}
  71.         <link rel="stylesheet" href="{{ asset('assets/css/form-cstm.css?202507161900', 'user_data') }}">
  72.         {% endif %}
  73.         <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  74.         {% block stylesheet %}{% endblock %}
  75.         <script>
  76.             $(function () {
  77. $.ajaxSetup({
  78. 'headers': {
  79. 'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  80. }
  81. });
  82. });
  83.         </script>
  84.         {# Layout: HEAD #}
  85.         {% if Layout.Head %}
  86.             {{ include('block.twig', {'Blocks': Layout.Head}) }}
  87.         {% endif %}
  88.         {# プラグイン用styleseetやmetatagなど #}
  89.         {% if plugin_assets is defined %}
  90.             {{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}
  91.         {% endif %}
  92.     </head>
  93.     <body
  94.         id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  95.         {# Layout: BODY_AFTER #}
  96.         {% if Layout.BodyAfter %}
  97.             {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  98.         {% endif %}
  99.         {% if isMaintenance %}
  100.             <div class="ec-maintenanceAlert">
  101.                 <div>
  102.                     <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  103.                     {{ 'メンテナンスモードが有効になっています。'|trans }}
  104.                 </div>
  105.             </div>
  106.         {% endif %}
  107.         <div
  108.             class="ec-layoutRole">
  109.             {# Layout: HEADER #}
  110.             {% if Layout.Header %}
  111.                 <header class="ec-layoutRole__header">
  112.                     {{ include('block.twig', {'Blocks': Layout.Header}) }}
  113.                 </header>
  114.             {% endif %}
  115.             {# Layout: CONTENTS_TOP #}
  116.             {% if Layout.ContentsTop %}
  117.                 <div class="ec-layoutRole__contentTop">
  118.                     {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  119.                 </div>
  120.             {% endif %}
  121.             <div
  122.                 class="ec-layoutRole__contents">
  123.                 {# Layout: SIDE_LEFT #}
  124.                 {% if Layout.SideLeft %}
  125.                     <aside class="ec-layoutRole__left">
  126.                         {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  127.                     </aside>
  128.                 {% endif %}
  129.                 {% set layoutRoleMain = 'ec-layoutRole__main' %}
  130.                 {% if Layout.ColumnNum == 2 %}
  131.                     {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  132.                 {% elseif Layout.ColumnNum == 3 %}
  133.                     {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  134.                 {% endif %}
  135.                 <main
  136.                     class="{{ layoutRoleMain }}">
  137.                     {# Layout: MAIN_TOP #}
  138.                     {% if Layout.MainTop %}
  139.                         <div class="ec-layoutRole__mainTop">
  140.                             {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  141.                         </div>
  142.                     {% endif %}
  143.                     {# MAIN AREA #}
  144.                     {% block main %}{% endblock %}
  145.                     {# Layout: MAIN_Bottom #}
  146.                     {% if Layout.MainBottom %}
  147.                         <div class="ec-layoutRole__mainBottom">
  148.                             {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  149.                         </div>
  150.                     {% endif %}
  151.                 </main>
  152.                 {# Layout: SIDE_RIGHT #}
  153.                 {% if Layout.SideRight %}
  154.                     <aside class="ec-layoutRole__right">
  155.                         {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  156.                     </aside>
  157.                 {% endif %}
  158.             </div>
  159.             {# Layout: CONTENTS_BOTTOM #}
  160.             {% if Layout.ContentsBottom %}
  161.                 <div class="ec-layoutRole__contentBottom">
  162.                     {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  163.                 </div>
  164.             {% endif %}
  165.             {# Layout: CONTENTS_FOOTER #}
  166.             {% if Layout.Footer %}
  167.                 <footer class="ec-layoutRole__footer">
  168.                     {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  169.                 </footer>
  170.             {% endif %}
  171.         </div>
  172.         <!-- ec-layoutRole -->
  173.         <div class="ec-overlayRole"></div>
  174.         <div class="ec-drawerRoleClose">
  175.             <i class="fas fa-times"></i>
  176.         </div>
  177.         <div
  178.             class="ec-drawerRole">
  179.             {# Layout: DRAWER #}
  180.             {% if Layout.Drawer %}
  181.                 {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  182.             {% endif %}
  183.         </div>
  184.         <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  185.         {% include('@common/lang.twig') %}
  186.         <script src="{{ asset('assets/js/function.js?20250430') }}"></script>
  187.         <script src="{{ asset('assets/js/eccube.js?20241003') }}"></script>
  188.         {% block javascript %}{% endblock %}
  189.         {# Layout: CLOSE_BODY_BEFORE #}
  190.         {% if Layout.CloseBodyBefore %}
  191.             {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  192.         {% endif %}
  193.         {# プラグイン用Snippet #}
  194.         {% if plugin_snippets is defined %}
  195.             {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  196.         {% endif %}
  197.         <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  198.     </body>
  199. </html>