app/template/default/default_frame.twig line 111

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>{{ 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), sandboxed = true) }}
  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.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  33.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  34.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  35.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  36.     {% block stylesheet %}{% endblock %}
  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.     <style>
  54.         #global-floating-button {
  55.             position: fixed;
  56.             bottom: 60px;
  57.             right: 20px;
  58.             z-index: 1000;
  59.             background-color: #C1E706;
  60.             color: #374700;
  61.             border: 3px solid #374700;
  62.             border-radius: 50%;
  63.             width: 80px;
  64.             height: 80px;
  65.             box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  66.             cursor: pointer;
  67.             font-size: 20px;
  68.             font-weight: bold;
  69.             display: flex;
  70.             align-items: center;
  71.             justify-content: center;
  72.             text-decoration: none;
  73.             padding: 0;
  74.             margin: 0;
  75.             line-height: 1.2;
  76.         }
  77.         @media only screen and (min-width: 768px) {
  78.             #global-floating-button {
  79.                 bottom: 110px;
  80.             }
  81.         }
  82.         #global-floating-button:hover {
  83.             color: #C1E706;
  84.             background-color: #374700;
  85.         }
  86.     </style>
  87. </head>
  88. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  89. {# Layout: BODY_AFTER #}
  90. {% if Layout.BodyAfter %}
  91.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  92. {% endif %}
  93. {% if isMaintenance %}
  94.     <div class="ec-maintenanceAlert">
  95.         <div>
  96.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  97.             {{ 'front.under_maintenance'|trans }}
  98.         </div>
  99.     </div>
  100. {% endif %}
  101. <div class="ec-layoutRole">
  102.     {# Layout: HEADER #}
  103.     {% if Layout.Header %}
  104.         <header class="ec-layoutRole__header">
  105.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  106.         </header>
  107.     {% endif %}
  108.     {# Layout: CONTENTS_TOP #}
  109.     {% if Layout.ContentsTop %}
  110.         <div class="ec-layoutRole__contentTop">
  111.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  112.         </div>
  113.     {% endif %}
  114.     <div class="ec-layoutRole__contents">
  115.         {# Layout: SIDE_LEFT #}
  116.         {% if Layout.SideLeft %}
  117.             <aside class="ec-layoutRole__left">
  118.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  119.             </aside>
  120.         {% endif %}
  121.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  122.         {% if Layout.ColumnNum == 2 %}
  123.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  124.         {% elseif Layout.ColumnNum == 3 %}
  125.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  126.         {% endif %}
  127.         <main class="{{ layoutRoleMain }}">
  128.             {# Layout: MAIN_TOP #}
  129.             {% if Layout.MainTop %}
  130.                 <div class="ec-layoutRole__mainTop">
  131.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  132.                 </div>
  133.             {% endif %}
  134.             {# MAIN AREA #}
  135.             {% block main %}{% endblock %}
  136.             {# Layout: MAIN_Bottom #}
  137.             {% if Layout.MainBottom %}
  138.                 <div class="ec-layoutRole__mainBottom">
  139.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  140.                 </div>
  141.             {% endif %}
  142.         </main>
  143.         {# Layout: SIDE_RIGHT #}
  144.         {% if Layout.SideRight %}
  145.             <aside class="ec-layoutRole__right">
  146.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  147.             </aside>
  148.         {% endif %}
  149.     </div>
  150.     {# Layout: CONTENTS_BOTTOM #}
  151.     {% if Layout.ContentsBottom %}
  152.         <div class="ec-layoutRole__contentBottom">
  153.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  154.         </div>
  155.     {% endif %}
  156.     {# Layout: CONTENTS_FOOTER #}
  157.     {% if Layout.Footer %}
  158.         <footer class="ec-layoutRole__footer">
  159.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  160.         </footer>
  161.     {% endif %}
  162. </div><!-- ec-layoutRole -->
  163. <div class="ec-overlayRole"></div>
  164. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  165. <div class="ec-drawerRole">
  166.     {# Layout: DRAWER #}
  167.     {% if Layout.Drawer %}
  168.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  169.     {% endif %}
  170. </div>
  171. <div class="ec-blockTopBtn pagetop">{{'common.pagetop'|trans}}</div>
  172. {% include('@common/lang.twig') %}
  173. <script src="{{ asset('assets/js/function.js') }}"></script>
  174. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  175. {% block javascript %}{% endblock %}
  176. {# Layout: CLOSE_BODY_BEFORE #}
  177. {% if Layout.CloseBodyBefore %}
  178.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  179. {% endif %}
  180. {# プラグイン用Snippet #}
  181. {% if plugin_snippets is defined %}
  182.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  183. {% endif %}
  184.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  185.     <a href="{{ url('request_materials') }}" class="floating-button" id="global-floating-button">資料<br>請求</a>
  186. </body>
  187. </html>