app/template/default/default_frame.twig line 80

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)) }}
  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="preconnect" href="https://fonts.googleapis.com">
  34.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  35.     <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&amp;display=swap" rel="stylesheet">
  36.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  37.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  38.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  39.     {% block stylesheet %}{% endblock %}
  40.     <script>
  41.         $(function() {
  42.             $.ajaxSetup({
  43.                 'headers': {
  44.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  45.                 }
  46.             });
  47.         });
  48.     </script>
  49.     {# Layout: HEAD #}
  50.     {% if Layout.Head %}
  51.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  52.     {% endif %}
  53.     {# プラグイン用styleseetやmetatagなど #}
  54.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  55.     <link rel="stylesheet" href="{{ asset('assets/css/plugins.min.css', 'user_data') }}">
  56.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  57. </head>
  58. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  59. {# Layout: BODY_AFTER #}
  60. {% if Layout.BodyAfter %}
  61.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  62. {% endif %}
  63. {% if isMaintenance %}
  64.     <div class="ec-maintenanceAlert">
  65.         <div>
  66.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  67.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  68.         </div>
  69.     </div>
  70. {% endif %}
  71. <div class="ec-layoutRole">
  72.     {# Layout: HEADER #}
  73.     {% if Layout.Header %}
  74.         <header class="ec-layoutRole__header">
  75.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  76.         </header>
  77.     {% endif %}
  78.     {# Layout: CONTENTS_TOP #}
  79.     {% if Layout.ContentsTop %}
  80.         <div class="ec-layoutRole__contentTop">
  81.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  82.         </div>
  83.     {% endif %}
  84.     <div class="ec-layoutRole__contents">
  85.         {# Layout: SIDE_LEFT #}
  86.         {% if Layout.SideLeft %}
  87.             <aside class="ec-layoutRole__left">
  88.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  89.             </aside>
  90.         {% endif %}
  91.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  92.         {% if Layout.ColumnNum == 2 %}
  93.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  94.         {% elseif Layout.ColumnNum == 3 %}
  95.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  96.         {% endif %}
  97.         <main class="{{ layoutRoleMain }}">
  98.             <p id="path" class="container">
  99.                 <a href="{{ url('homepage') }}">ホーム</a>&nbsp;&gt;&nbsp;
  100.                 {% if app.request.get('_route') != 'homepage' %}
  101.                     {% if subtitle is defined and subtitle is not empty %}{{ subtitle }}
  102.                         {% elseif title is defined and title is not empty %}{{ title }}
  103.                     {% endif %}
  104.                 {% endif %}
  105.             </p>
  106.             {# Layout: MAIN_TOP #}
  107.             {% if Layout.MainTop %}
  108.                 <div class="ec-layoutRole__mainTop">
  109.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  110.                 </div>
  111.             {% endif %}
  112.             {# MAIN AREA #}
  113.             {% block main %}{% endblock %}
  114.             {# Layout: MAIN_Bottom #}
  115.             {% if Layout.MainBottom %}
  116.                 <div class="ec-layoutRole__mainBottom">
  117.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  118.                 </div>
  119.             {% endif %}
  120.         </main>
  121.         {# Layout: SIDE_RIGHT #}
  122.         {% if Layout.SideRight %}
  123.             <aside class="ec-layoutRole__right">
  124.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  125.             </aside>
  126.         {% endif %}
  127.     </div>
  128.     {# Layout: CONTENTS_BOTTOM #}
  129.     {% if Layout.ContentsBottom %}
  130.         <div class="ec-layoutRole__contentBottom">
  131.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  132.         </div>
  133.     {% endif %}
  134.     {# Layout: CONTENTS_FOOTER #}
  135.     {% if Layout.Footer %}
  136.         <footer class="ec-layoutRole__footer">
  137.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  138.         </footer>
  139.     {% endif %}
  140. </div><!-- ec-layoutRole -->
  141. <div class="ec-overlayRole"></div>
  142. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  143. <div class="ec-drawerRole">
  144.     {# Layout: DRAWER #}
  145.     {% if Layout.Drawer %}
  146.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  147.     {% endif %}
  148. </div>
  149. <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  150. {% include('@common/lang.twig') %}
  151. <script src="{{ asset('assets/js/function.js') }}"></script>
  152. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  153. {% block javascript %}{% endblock %}
  154. {# Layout: CLOSE_BODY_BEFORE #}
  155. {% if Layout.CloseBodyBefore %}
  156.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  157. {% endif %}
  158. {# プラグイン用Snippet #}
  159. {% if plugin_snippets is defined %}
  160.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  161. {% endif %}
  162.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  163. </body>
  164. </html>