src/Eccube/Resource/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.     <!-- Google Tag Manager -->
  12.     <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  13.     new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  14.     j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  15.     'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  16.     })(window,document,'script','dataLayer','GTM-P7PB8D3S');</script>
  17.     <!-- End Google Tag Manager -->
  18.     <meta charset="utf-8">
  19.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  20.     <meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
  21.     <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>
  22.     {% if Page.meta_tags is not empty %}
  23.         {{ include(template_from_string(Page.meta_tags)) }}
  24.         {% if Page.description is not empty %}
  25.             <meta name="description" content="{{ Page.description }}">
  26.         {% endif %}
  27.     {% else %}
  28.         {{ include('meta.twig') }}
  29.     {% endif %}
  30.     {% if Page.author is not empty %}
  31.         <meta name="author" content="{{ Page.author }}">
  32.     {% endif %}
  33.     {% if Page.keyword is not empty %}
  34.         <meta name="keywords" content="{{ Page.keyword }}">
  35.     {% endif %}
  36.     {% if Page.meta_robots is not empty %}
  37.         <meta name="robots" content="{{ Page.meta_robots }}">
  38.     {% endif %}
  39.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  40.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  41.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  42.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  43.     {% block stylesheet %}{% endblock %}
  44.     <script>
  45.         $(function() {
  46.             $.ajaxSetup({
  47.                 'headers': {
  48.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  49.                 }
  50.             });
  51.         });
  52.     </script>
  53.     <!--
  54.     Personalization用Beaconタグ
  55.     -->
  56.     <script type="text/javascript" async src="//cdn.evgnet.com/beacon/directusinc/ps_test_06/scripts/evergage.min.js"></script>
  57.     <!--
  58.     //ここまで Personalization様Beaconタグ
  59.     -->
  60.     
  61.     {% if app.user %}
  62.     <script type="text/javascript">
  63.         // 変数前準備
  64.         const userId = '{{ app.user.id }}';
  65.         const lastName = '{{ app.user.name01 }}';
  66.         const firstName = '{{ app.user.name02 }}';
  67.         const emailAddress = '{{ app.user.email }}';
  68.         const phoneNumber = '{{ app.user.phone_number }}';
  69.         const birth = '{{ app.user.birth|date("Y-m-d H:i:s") }}';
  70.         const firstAddr = '{{ app.user.addr01 }}';
  71.         const lastAddr = '{{ app.user.addr02 }}';
  72.         console.log(window);
  73.         console.log('The user id is ' + '{{ app.user.id }}');
  74.         console.log('The user email is ' + '{{ app.user.email }}');
  75.         console.log('The user name is ' + '{{ app.user.name01 }} {{ app.user.name02 }}');
  76.         console.log('The user phone number is ' + phoneNumber);
  77.         console.log('The user birthday is ' + birth);
  78.         console.log('The user address is ' + firstAddr + lastAddr);
  79.     </script>
  80.     {% endif %}
  81.     {# Layout: HEAD #}
  82.     {% if Layout.Head %}
  83.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  84.     {% endif %}
  85.     {# プラグイン用styleseetやmetatagなど #}
  86.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  87.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  88. </head>
  89. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  90. <!-- Google Tag Manager (noscript) -->
  91. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P7PB8D3S"
  92. height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  93. <!-- End Google Tag Manager (noscript) -->
  94. {# Layout: BODY_AFTER #}
  95. {% if Layout.BodyAfter %}
  96.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  97. {% endif %}
  98. {% if isMaintenance %}
  99.     <div class="ec-maintenanceAlert">
  100.         <div>
  101.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  102.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  103.         </div>
  104.     </div>
  105. {% endif %}
  106. <div class="ec-layoutRole">
  107.     {# Layout: HEADER #}
  108.     {% if Layout.Header %}
  109.         <header class="ec-layoutRole__header">
  110.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  111.         </header>
  112.     {% endif %}
  113.     {# Layout: CONTENTS_TOP #}
  114.     {% if Layout.ContentsTop %}
  115.         <div class="ec-layoutRole__contentTop">
  116.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  117.         </div>
  118.     {% endif %}
  119.     <div class="ec-layoutRole__contents">
  120.         {# Layout: SIDE_LEFT #}
  121.         {% if Layout.SideLeft %}
  122.             <aside class="ec-layoutRole__left">
  123.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  124.             </aside>
  125.         {% endif %}
  126.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  127.         {% if Layout.ColumnNum == 2 %}
  128.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  129.         {% elseif Layout.ColumnNum == 3 %}
  130.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  131.         {% endif %}
  132.         <main class="{{ layoutRoleMain }}">
  133.             {# Layout: MAIN_TOP #}
  134.             {% if Layout.MainTop %}
  135.                 <div class="ec-layoutRole__mainTop">
  136.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  137.                 </div>
  138.             {% endif %}
  139.             {# MAIN AREA #}
  140.             {% block main %}{% endblock %}
  141.             {# Layout: MAIN_Bottom #}
  142.             {% if Layout.MainBottom %}
  143.                 <div class="ec-layoutRole__mainBottom">
  144.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  145.                 </div>
  146.             {% endif %}
  147.         </main>
  148.         {# Layout: SIDE_RIGHT #}
  149.         {% if Layout.SideRight %}
  150.             <aside class="ec-layoutRole__right">
  151.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  152.             </aside>
  153.         {% endif %}
  154.     </div>
  155.     {# Layout: CONTENTS_BOTTOM #}
  156.     {% if Layout.ContentsBottom %}
  157.         <div class="ec-layoutRole__contentBottom">
  158.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  159.         </div>
  160.     {% endif %}
  161.     {# Layout: CONTENTS_FOOTER #}
  162.     {% if Layout.Footer %}
  163.         <footer class="ec-layoutRole__footer">
  164.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  165.         </footer>
  166.     {% endif %}
  167. </div><!-- ec-layoutRole -->
  168. <div class="ec-overlayRole"></div>
  169. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  170. <div class="ec-drawerRole">
  171.     {# Layout: DRAWER #}
  172.     {% if Layout.Drawer %}
  173.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  174.     {% endif %}
  175. </div>
  176. <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  177. {% include('@common/lang.twig') %}
  178. <script src="{{ asset('assets/js/function.js') }}"></script>
  179. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  180. {% block javascript %}{% endblock %}
  181. {# Layout: CLOSE_BODY_BEFORE #}
  182. {% if Layout.CloseBodyBefore %}
  183.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  184. {% endif %}
  185. {# プラグイン用Snippet #}
  186. {% if plugin_snippets is defined %}
  187.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  188. {% endif %}
  189.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  190. </body>
  191. </html>