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 }}
  15.         {% if subtitle is defined and subtitle is not empty %} / {{ subtitle }}
  16.         {% elseif title is defined and title is not empty %} / {{ title }}
  17.         {% elseif Page.getName is not empty %} / {{ Page.getName }}
  18.         {% endif %}
  19.     </title>
  20.     {% if Page.meta_tags is not empty %}
  21.         {{ include(template_from_string(Page.meta_tags)) }}
  22.         {% if Page.description is not empty %}
  23.             <meta name="description" content="{{ Page.description }}">
  24.         {% endif %}
  25.     {% else %}
  26.         {{ include('meta.twig') }}
  27.     {% endif %}
  28.     {% if Page.author is not empty %}
  29.         <meta name="author" content="{{ Page.author }}">
  30.     {% endif %}
  31.     {% if Page.keyword is not empty %}
  32.         <meta name="keywords" content="{{ Page.keyword }}">
  33.     {% endif %}
  34.     {% if Page.meta_robots is not empty %}
  35.         <meta name="robots" content="{{ Page.meta_robots }}">
  36.     {% endif %}
  37.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  38.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  39.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  40.     <link rel="stylesheet" type="text/css" href="{{ asset('assets/css/all.css') }}">
  41.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  42.     {% block stylesheet %}{% endblock %}
  43.     <script>
  44.         $(function() {
  45.             $.ajaxSetup({
  46.                 'headers': {
  47.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  48.                 }
  49.             });
  50.         });
  51.     </script>
  52.     {# Layout: HEAD #}
  53.     {% if Layout.Head %}
  54.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  55.     {% endif %}
  56.     {# プラグイン用styleseetやmetatagなど #}
  57.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  58.     {# <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}"> #}
  59.     {# Google Tag Manager #}
  60.     {# 読み込みが別途Bodyタグの最後にある #}
  61.     {% set host = app.request.getSchemeAndHttpHost() %}
  62.     {% set route = app.request.get('_route') %}
  63.     {% if (host == 'https://www.willard.co.jp' or host == 'https://willard.co.jp') %}
  64.         <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  65.         new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  66.         j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  67.         'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  68.         })(window,document,'script','dataLayer','GTM-5NFRV6');</script>
  69.     {% endif %}
  70.     {# End Google Tag Manager #}
  71.     {# <meta charset="UTF-8">
  72.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  73.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  74.     <title>{{ title }}</title>
  75.     <meta name="description" content="{{ description }}">
  76.     <meta name="keywords" content="{{ keywords }}">
  77.     <meta
  78.     name="format-detection" content="telephone=no">
  79.     <!-- ogp -->
  80.     <meta property="og:url" content="{{ og_url }}">
  81.     {% if og_type %}
  82.       <meta property="og:type" content="{{ og_type }}">
  83.     {% else %}
  84.       <meta property="og:type" content="product">
  85.     {% endif %}
  86.     <meta property="og:title" content="{{ og_title }}">
  87.     <meta property="og:description" content="{{ og_description }}">
  88.     <meta property="og:site_name" content="{{ og_site_name }}">
  89.     <meta property="og:image" content="{{ og_image }}">
  90.     <meta
  91.     property="og:locale" content="ja_JP">
  92.     <!-- sns -->
  93.     <meta property="twitter:card" content="summary">
  94.     <meta property="twitter:site" content="">
  95.     <meta property="fb:app_id" content=""> #}
  96.     {# {% for css in css_list %} #}
  97.       {# <link rel="stylesheet" type="text/css" href="{{ css }}"> #}
  98.     {# {% endfor %} #}
  99. </head>
  100. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  101. {# Layout: BODY_AFTER #}
  102. {% if Layout.BodyAfter %}
  103.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  104. {% endif %}
  105. {% if isMaintenance %}
  106.     <div class="ec-maintenanceAlert">
  107.         <div>
  108.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  109.             {{ 'front.under_maintenance'|trans }}
  110.         </div>
  111.     </div>
  112. {% endif %}
  113. <div class="ec-layoutRole">
  114.     {# Layout: HEADER #}
  115.     {% if Layout.Header %}
  116.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  117.     {% endif %}
  118.     {# Layout: CONTENTS_TOP #}
  119.     {% if Layout.ContentsTop %}
  120.         <div class="ec-layoutRole__contentTop">
  121.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  122.         </div>
  123.     {% endif %}
  124.     <div class="ec-layoutRole__contents">
  125.         {# Layout: SIDE_LEFT #}
  126.         {% if Layout.SideLeft %}
  127.             <aside class="ec-layoutRole__left">
  128.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  129.             </aside>
  130.         {% endif %}
  131.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  132.         {% if Layout.ColumnNum == 2 %}
  133.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  134.         {% elseif Layout.ColumnNum == 3 %}
  135.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  136.         {% endif %}
  137.         <main class="{{ layoutRoleMain }}">
  138.             {# Layout: MAIN_TOP #}
  139.             {% if Layout.MainTop %}
  140.                 <div class="ec-layoutRole__mainTop">
  141.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  142.                 </div>
  143.             {% endif %}
  144.             {# MAIN AREA #}
  145.             {% block main %}{% endblock %}
  146.             {# Layout: MAIN_Bottom #}
  147.             {% if Layout.MainBottom %}
  148.                 <div class="ec-layoutRole__mainBottom">
  149.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  150.                 </div>
  151.             {% endif %}
  152.         </main>
  153.         {# Layout: SIDE_RIGHT #}
  154.         {% if Layout.SideRight %}
  155.             <aside class="ec-layoutRole__right">
  156.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  157.             </aside>
  158.         {% endif %}
  159.     </div>
  160.     {# Layout: CONTENTS_BOTTOM #}
  161.     {% if Layout.ContentsBottom %}
  162.         <div class="ec-layoutRole__contentBottom">
  163.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  164.         </div>
  165.     {% endif %}
  166.     {# Layout: CONTENTS_FOOTER #}
  167.     {% if Layout.Footer %}
  168.         <footer class="ec-layoutRole__footer">
  169.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  170.         </footer>
  171.     {% endif %}
  172. </div><!-- ec-layoutRole -->
  173. <div class="ec-overlayRole"></div>
  174. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  175. <div class="ec-drawerRole">
  176.     {# Layout: DRAWER #}
  177.     {% if Layout.Drawer %}
  178.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  179.     {% endif %}
  180. </div>
  181. <div class="ec-blockTopBtn pagetop">{{'common.pagetop'|trans}}</div>
  182. {% include('@common/lang.twig') %}
  183. <script src="{{ asset('assets/js/function.js') }}"></script>
  184. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  185. <script src="{{ asset('assets/js/header.js') }}"></script>
  186. {% block javascript %}{% endblock %}
  187. {# Layout: CLOSE_BODY_BEFORE #}
  188. {% if Layout.CloseBodyBefore %}
  189.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  190. {% endif %}
  191. {# プラグイン用Snippet #}
  192. {% if plugin_snippets is defined %}
  193.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  194. {% endif %}
  195.     {# <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script> #}
  196. <div class="container">
  197.             {% block header %}{% endblock %}
  198.       {# {% if breadcrumbs_list %} #}
  199.                 {# {% include "/common/html/breadcrumbs.twig" %} #}
  200.       {# {% endif %} #}
  201.       {# {% block main %}{% endblock %} #}
  202.       {% block footer %}{% endblock %}
  203.     </div>
  204.     {# {% if header %} #}
  205.       {# <script type="text/javascript" src="{{ header }}"></script> #}
  206.     {# {% else %} #}
  207.       {# <script type="text/javascript" src="/common/js/header.js"></script> #}
  208.     {# {% endif %} #}
  209.     {# {% for js in js_list %}
  210.       <script type="text/javascript" src="{{ js }}"></script>
  211.     {% endfor %} #}
  212.     {# {% if js %}
  213.       <script type="module" src="{{ js }}"></script>
  214.     {% endif %} #}
  215.     <script type="text/javascript">
  216.       if (location.pathname !== '/entry/' && location.pathname !== '/entry/confirmation/'){
  217.           delete localStorage.entryForm;
  218.       }
  219.       if (location.pathname !== '/mypage/member/' && location.pathname !== '/mypage/member/confirmation/') {
  220.           delete localStorage.editEntryForm;
  221.       }
  222.       if (location.pathname !== '/mypage/mail/' && location.pathname !== '/mypage/mail/confirmation/') {
  223.           delete localStorage.editMailEntryForm;
  224.       }
  225.     </script>
  226.     {# Google Tag Manager #}
  227.     {% if (host == 'https://www.willard.co.jp' or host == 'https://willard.co.jp') %}
  228.         <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5NFRV6"
  229.         height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  230.     {% endif %}
  231.     {# End Google Tag Manager #}
  232. </body>
  233. </html>