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.     <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.     <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.     <!--Personalization用Beaconタグ-->
  54.     <!-- <script type="text/javascript" async src="//cdn.evgnet.com/beacon/directusinc/ps_test_07/scripts/evergage.min.js"></script> -->
  55.     <!--
  56.      //ここまで Personalization様Beconタグ
  57.      -->
  58.     <script type="text/javascript" async src="https://cdn.c360a.salesforce.com/beacon/c360a/485f0338-dac7-4191-afe6-2b7e3728b663/scripts/c360a.min.js"></script>
  59.     {% if app.user %}
  60.     <script type="text/javascript">
  61.         const userId = '{{ app.user.id }}';
  62.         const lastName = '{{ app.user.name01 }}';
  63.         const firstName = '{{ app.user.name02 }}';
  64.         const emailAddress = '{{ app.user.email }}';
  65.         const phoneNumber = '{{ app.user.phone_number }}';
  66.         const birth = '{{ app.user.birth|date("Y-m-d H:i:s") }}';
  67.         const firstAddr = '{{ app.user.addr01 }}';
  68.         const lastAddr = '{{ app.user.addr02 }}';
  69.         console.log(window);
  70.         console.log('The user id is ' + '{{ app.user.id }}');
  71.         console.log('The user email is ' + '{{ app.user.email }}');
  72.         console.log('The user name is ' + '{{ app.user.name01 }} {{ app.user.name02 }}');
  73.         console.log('The user phone number is ' + phoneNumber);
  74.         console.log('The user birthday is ' + birth);
  75.         console.log('The user address is ' + firstAddr + lastAddr);
  76.     </script>
  77.     {% endif %}
  78. </head>
  79. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  80. {# Layout: BODY_AFTER #}
  81. {% if Layout.BodyAfter %}
  82.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  83. {% endif %}
  84. {% if isMaintenance %}
  85.     <div class="ec-maintenanceAlert">
  86.         <div>
  87.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  88.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  89.         </div>
  90.     </div>
  91. {% endif %}
  92. <div class="ec-layoutRole">
  93.     {# Layout: HEADER #}
  94.     {% if Layout.Header %}
  95.         <header class="ec-layoutRole__header">
  96.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  97.         </header>
  98.     {% endif %}
  99.     {# Layout: CONTENTS_TOP #}
  100.     {% if Layout.ContentsTop %}
  101.         <div class="ec-layoutRole__contentTop">
  102.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  103.         </div>
  104.     {% endif %}
  105.     <div class="ec-layoutRole__contents">
  106.         {# Layout: SIDE_LEFT #}
  107.         {% if Layout.SideLeft %}
  108.             <aside class="ec-layoutRole__left">
  109.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  110.             </aside>
  111.         {% endif %}
  112.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  113.         {% if Layout.ColumnNum == 2 %}
  114.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  115.         {% elseif Layout.ColumnNum == 3 %}
  116.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  117.         {% endif %}
  118.         <main class="{{ layoutRoleMain }}">
  119.             {# Layout: MAIN_TOP #}
  120.             {% if Layout.MainTop %}
  121.                 <div class="ec-layoutRole__mainTop">
  122.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  123.                 </div>
  124.             {% endif %}
  125.             {# MAIN AREA #}
  126.             {% block main %}{% endblock %}
  127.             {# Layout: MAIN_Bottom #}
  128.             {% if Layout.MainBottom %}
  129.                 <div class="ec-layoutRole__mainBottom">
  130.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  131.                 </div>
  132.             {% endif %}
  133.         </main>
  134.         {# Layout: SIDE_RIGHT #}
  135.         {% if Layout.SideRight %}
  136.             <aside class="ec-layoutRole__right">
  137.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  138.             </aside>
  139.         {% endif %}
  140.     </div>
  141.     {# Layout: CONTENTS_BOTTOM #}
  142.     {% if Layout.ContentsBottom %}
  143.         <div class="ec-layoutRole__contentBottom">
  144.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  145.         </div>
  146.     {% endif %}
  147.     {# Layout: CONTENTS_FOOTER #}
  148.     {% if Layout.Footer %}
  149.         <footer class="ec-layoutRole__footer">
  150.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  151.         </footer>
  152.     {% endif %}
  153. </div><!-- ec-layoutRole -->
  154. <div class="ec-overlayRole"></div>
  155. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  156. <div class="ec-drawerRole">
  157.     {# Layout: DRAWER #}
  158.     {% if Layout.Drawer %}
  159.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  160.     {% endif %}
  161. </div>
  162. <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  163. {% include('@common/lang.twig') %}
  164. <script src="{{ asset('assets/js/function.js') }}"></script>
  165. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  166. {% block javascript %}{% endblock %}
  167. {# Layout: CLOSE_BODY_BEFORE #}
  168. {% if Layout.CloseBodyBefore %}
  169.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  170. {% endif %}
  171. {# プラグイン用Snippet #}
  172. {% if plugin_snippets is defined %}
  173.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  174. {% endif %}
  175.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  176. </body>
  177. </html>