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), sandboxed = true) }}
  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.         $(function(){
  48.             $.ajax({
  49.                 type: 'GET',
  50.                 url: 'https://{{ app.request.host }}/wp-json/wp/v2/blog_category?orderby=description&order=asc',
  51.                 dataType: 'json'
  52.             }).done(function(json){
  53.                 var html = '';
  54.                 //記事の件数分イテレートする
  55.                 $.each(json, function( i, row ) {
  56.                     // ブログのタイトル
  57.                     var name = row.name;
  58.                     // ブログのURL
  59.                     var link = row.link;
  60.                     html += '<li><a href="' + link + '">' + name + '</a></li>';
  61.                 });
  62.                 // 整形した記事の情報をページに追加する
  63.                 $('#header_nav_blog_list').append(html);
  64.                 $('#header_nav_blog_list_sp').append(html);
  65.             }).fail(function(json){
  66.                 // console.error('WordPressのブログ記事取得に失敗しました。')
  67.             });
  68.         });
  69.     </script>
  70.     {# Layout: HEAD #}
  71.     {% if Layout.Head %}
  72.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  73.     {% endif %}
  74.     {# プラグイン用styleseetやmetatagなど #}
  75.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  76.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  77. <!-- ▼ WP style -->
  78.     <link rel='stylesheet' id='dashicons-css'  href='{% if app.request.isSecure %}https://{% else %}http://{% endif %}{{ app.request.host }}/wp/wp-includes/css/dashicons.min.css?ver=6.0.1' media='all' />
  79.     <link rel='stylesheet' id='admin-bar-css'  href='{% if app.request.isSecure %}https://{% else %}http://{% endif %}{{ app.request.host }}/wp/wp-includes/css/admin-bar.min.css?ver=6.0.1' media='all' />
  80.     <link rel='stylesheet' id='wp-block-library-css'  href='{% if app.request.isSecure %}https://{% else %}http://{% endif %}{{ app.request.host }}/wp/wp-includes/css/dist/block-library/style.min.css?ver=6.0.1' media='all' />
  81.     <link rel='stylesheet' id='duplicate-post-css'  href='{% if app.request.isSecure %}https://{% else %}http://{% endif %}{{ app.request.host }}/wp/wp-content/plugins/duplicate-post/css/duplicate-post.css?ver=4.5' media='all' />
  82.     <link rel='stylesheet' id='twenty-twenty-one-style-css'  href='{% if app.request.isSecure %}https://{% else %}http://{% endif %}{{ app.request.host }}/wp/wp-content/themes/eyebell/style.css?ver=1.6' media='all' />
  83.     <link rel='stylesheet' id='twenty-twenty-one-print-style-css'  href='{% if app.request.isSecure %}https://{% else %}http://{% endif %}{{ app.request.host }}/wp/wp-content/themes/eyebell/assets/css/print.css?ver=1.6' media='print' />
  84.     <link rel="stylesheet" href="{% if app.request.isSecure %}https://{% else %}http://{% endif %}{{ app.request.host }}/wp/wp-content/themes/eyebell/assets/css/eyebell/style.css" type="text/css" />
  85.      <link rel="stylesheet" href="{% if app.request.isSecure %}https://{% else %}http://{% endif %}{{ app.request.host }}/wp/wp-content/themes/eyebell/assets/css/eyebell/reboot.css" type="text/css" />
  86.      <link rel="stylesheet" href="{% if app.request.isSecure %}https://{% else %}http://{% endif %}{{ app.request.host }}/wp/wp-content/themes/eyebell/assets/css/eyebell/custom_eyebell.css" type="text/css" />
  87.     <style type="text/css">
  88.         .ec-layoutRole__header {
  89.             position: relative;
  90.         }
  91.         .entry-content {
  92.             padding-top: 10px;
  93.         }
  94.         .ec-layoutRole .ec-layoutRole__contents {
  95.             max-width: none;
  96.         }
  97.     </style>
  98. <!-- ▲ WP style -->
  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.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  110.         </div>
  111.     </div>
  112. {% endif %}
  113. <div class="ec-layoutRole">
  114.     {# Layout: HEADER #}
  115.     {% if Layout.Header %}
  116.         <header class="ec-layoutRole__header">
  117.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  118.         </header>
  119.     {% endif %}
  120.     {# Layout: CONTENTS_TOP #}
  121.     {% if Layout.ContentsTop %}
  122.         <div class="ec-layoutRole__contentTop">
  123.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  124.         </div>
  125.     {% endif %}
  126.     <div class="ec-layoutRole__contents">
  127.         {# Layout: SIDE_LEFT #}
  128.         {% if Layout.SideLeft %}
  129.             <aside class="ec-layoutRole__left">
  130.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  131.             </aside>
  132.         {% endif %}
  133.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  134.         {% if Layout.ColumnNum == 2 %}
  135.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  136.         {% elseif Layout.ColumnNum == 3 %}
  137.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  138.         {% endif %}
  139.         <main class="{{ layoutRoleMain }}">
  140.             {# Layout: MAIN_TOP #}
  141.             {% if Layout.MainTop %}
  142.                 <div class="ec-layoutRole__mainTop">
  143.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  144.                 </div>
  145.             {% endif %}
  146.             {# MAIN AREA #}
  147.             {% block main %}{% endblock %}
  148.             {# Layout: MAIN_Bottom #}
  149.             {% if Layout.MainBottom %}
  150.                 <div class="ec-layoutRole__mainBottom">
  151.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  152.                 </div>
  153.             {% endif %}
  154.         </main>
  155.         {# Layout: SIDE_RIGHT #}
  156.         {% if Layout.SideRight %}
  157.             <aside class="ec-layoutRole__right">
  158.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  159.             </aside>
  160.         {% endif %}
  161.     </div>
  162.     {# Layout: CONTENTS_BOTTOM #}
  163.     {% if Layout.ContentsBottom %}
  164.         <div class="ec-layoutRole__contentBottom">
  165.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  166.         </div>
  167.     {% endif %}
  168. </div>
  169.     {# Layout: CONTENTS_FOOTER #}
  170.     {% if Layout.Footer %}
  171.         <footer class="ec-layoutRole__footer">
  172.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  173.         </footer>
  174.     {% endif %}
  175. </div><!-- ec-layoutRole -->
  176. <div class="ec-overlayRole"></div>
  177. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  178. <div class="ec-drawerRole">
  179.     {# Layout: DRAWER #}
  180.     {% if Layout.Drawer %}
  181.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  182.     {% endif %}
  183. </div>
  184. {#
  185. <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  186. #}
  187. {% include('@common/lang.twig') %}
  188. <script src="{{ asset('assets/js/function.js') }}"></script>
  189. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  190. {% block javascript %}{% endblock %}
  191. {# Layout: CLOSE_BODY_BEFORE #}
  192. {% if Layout.CloseBodyBefore %}
  193.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  194. {% endif %}
  195. {# プラグイン用Snippet #}
  196. {% if plugin_snippets is defined %}
  197.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  198. {% endif %}
  199.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  200. </body>
  201. </html>