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>{{ 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="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  34.     <script src="https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/js/splide.min.js"></script>
  35.     <link href="https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/css/splide.min.css" rel="stylesheet">
  36.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  37.     <link rel="stylesheet" href="{{ asset('assets/css/reset.css') }}">
  38.     <link rel="stylesheet" href="{{ asset('assets/css/theme.css') }}">
  39.     <script src="{{ asset('assets/js/theme.js') }}"></script>
  40.     {% if app.request.get('_route') == 'work' %}
  41.     <script src="{{ asset('assets/js/works.js') }}"></script>
  42.     {% endif %}
  43.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  44.     {% block stylesheet %}{% endblock %}
  45.     <script>
  46.         $(function() {
  47.             $.ajaxSetup({
  48.                 'headers': {
  49.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  50.                 }
  51.             });
  52.         });
  53.     </script>
  54.     <script>
  55.         (function(d) {
  56.           var config = {
  57.             kitId: 'wry4vmj',
  58.             scriptTimeout: 3000,
  59.             async: true
  60.           },
  61.           h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
  62.         })(document);
  63.     </script>
  64.     {# Layout: HEAD #}
  65.     {% if Layout.Head %}
  66.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  67.     {% endif %}
  68.     {# プラグイン用styleseetやmetatagなど #}
  69.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  70.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  71. </head>
  72. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  73. {# Layout: BODY_AFTER #}
  74. {% if Layout.BodyAfter %}
  75.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  76. {% endif %}
  77. {% if isMaintenance %}
  78.     <div class="ec-maintenanceAlert">
  79.         <div>
  80.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  81.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  82.         </div>
  83.     </div>
  84. {% endif %}
  85. <div class="ec-layoutRole">
  86.     {# Layout: HEADER #}
  87.     {% if Layout.Header %}
  88.         <header class="ec-layoutRole__header header">
  89.             {{ include('Block/header.twig', {'Blocks': Layout.Header}) }}
  90.         </header>
  91.     {% endif %}
  92.     {# Layout: CONTENTS_TOP #}
  93.     {% if Layout.ContentsTop %}
  94.         <div class="ec-layoutRole__contentTop">
  95.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  96.         </div>
  97.     {% endif %}
  98.     <div class="ec-layoutRole__contents">
  99.         {# Layout: SIDE_LEFT #}
  100.         {% if Layout.SideLeft %}
  101.             <aside class="ec-layoutRole__left">
  102.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  103.             </aside>
  104.         {% endif %}
  105.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  106.         {% if Layout.ColumnNum == 2 %}
  107.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  108.         {% elseif Layout.ColumnNum == 3 %}
  109.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  110.         {% endif %}
  111.         <main class="{{ layoutRoleMain }}">
  112.             {# Layout: MAIN_TOP #}
  113.             {% if Layout.MainTop %}
  114.                 <div class="ec-layoutRole__mainTop">
  115.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  116.                 </div>
  117.             {% endif %}
  118.             {# MAIN AREA #}
  119.             {% block main %}{% endblock %}
  120.             {# Layout: MAIN_Bottom #}
  121.             {% if Layout.MainBottom %}
  122.                 {# <div class="ec-layoutRole__mainBottom">
  123.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  124.                 </div> #}
  125.             {% endif %}
  126.         </main>
  127.         {# Layout: SIDE_RIGHT #}
  128.         {% if Layout.SideRight %}
  129.             <aside class="ec-layoutRole__right">
  130.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  131.             </aside>
  132.         {% endif %}
  133.     </div>
  134.     {# Layout: CONTENTS_BOTTOM #}
  135.     {% if Layout.ContentsBottom %}
  136.         <div class="ec-layoutRole__contentBottom">
  137.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  138.         </div>
  139.     {% endif %}
  140.     {# Layout: CONTENTS_FOOTER #}
  141.     {% if Layout.Footer %}
  142.         <footer class="ec-layoutRole__footer">
  143.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  144.         </footer>
  145.     {% endif %}
  146. </div><!-- ec-layoutRole -->
  147. <div class="ec-overlayRole"></div>
  148. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  149. <div class="ec-drawerRole">
  150.     {# Layout: DRAWER #}
  151.     {% if Layout.Drawer %}
  152.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  153.     {% endif %}
  154. </div>
  155. {# <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div> #}
  156. {% include('@common/lang.twig') %}
  157. <script src="{{ asset('assets/js/function.js') }}"></script>
  158. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  159. {% block javascript %}{% endblock %}
  160. {# Layout: CLOSE_BODY_BEFORE #}
  161. {% if Layout.CloseBodyBefore %}
  162.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  163. {% endif %}
  164. {# プラグイン用Snippet #}
  165. {% if plugin_snippets is defined %}
  166.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  167. {% endif %}
  168.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  169. </body>
  170. </html>