src/Eccube/Resource/template/default/default_frame.twig line 107

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