app/template/default/default_frame.twig line 137

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.     
  15.     {% if app.request.get('_route') == 'product_list' %}
  16.         {#
  17.             カテゴリリストの場合
  18.         #}
  19.         {#
  20.         <title>AAAB{{ 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>
  21.         #}
  22.         <title>{{ SeoMetaTitle ? SeoMetaTitle : 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>
  23.         {% if Page.author is not empty %}
  24.             <meta name="author" content="{{ Page.author }}">
  25.         {% endif %}
  26.           {% if Page.meta_robots is not empty %}
  27.             <meta name="robots" content="{{ Page.meta_robots }}">
  28.         {% endif %}
  29.         {#
  30.             カテゴリ用のMeta情報を追加
  31.         #}
  32.         {#
  33.         <meta name="description" content="テスト 業務用米 特価米 産直米を 全国の弁当 ラーメン店 中華料理店に 格安価格 送料無料 消費税込みで販売中">
  34.         <meta name="keywords" content="テスト コシヒカリ ひとめぼれ あきたこまち ミルキークイーン 精米 白米 Mマ 業務用米 業務米 格安 激安 業務用 産直 格安 送料無料">
  35.         #}
  36.         <meta name="description" content="{{ SeoMetaDescription ? SeoMetaDescription : 'テスト 業務用米 特価米 産直米を 全国の弁当 ラーメン店 中華料理店に 格安価格 送料無料 消費税込みで販売中' }}">
  37.         <meta name="keywords" content="{{ SeoMetaKeywords ? SeoMetaKeywords : 'テスト コシヒカリ ひとめぼれ あきたこまち ミルキークイーン 精米 白米 Mマ 業務用米 業務米 格安 激安 業務用 産直 格安 送料無料' }}">
  38.     {% else %}
  39.         <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>
  40.     
  41.         {% if Page.meta_tags is not empty %}
  42.         {{ include(template_from_string(Page.meta_tags)) }}
  43.         {% if Page.description is not empty %}
  44.             <meta name="description" content="{{ Page.description }}">
  45.         {% endif %}
  46.         {% else %}
  47.             {{ include('meta.twig') }}
  48.         {% endif %}
  49.         {% if Page.author is not empty %}
  50.             <meta name="author" content="{{ Page.author }}">
  51.         {% endif %}
  52.         {% if Page.keyword is not empty %}
  53.             <meta name="keywords" content="{{ Page.keyword }}">
  54.         {% endif %}
  55.         {% if Page.meta_robots is not empty %}
  56.             <meta name="robots" content="{{ Page.meta_robots }}">
  57.         {% endif %}
  58.         
  59.     {% endif %}
  60.         
  61.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  62.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  63.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  64.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  65.     {% block stylesheet %}{% endblock %}
  66.     <script>
  67.         $(function() {
  68.             $.ajaxSetup({
  69.                 'headers': {
  70.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  71.                 }
  72.             });
  73.         });
  74.     </script>
  75.     {# Layout: HEAD #}
  76.     {% if Layout.Head %}
  77.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  78.     {% endif %}
  79.     {# プラグイン用styleseetやmetatagなど #}
  80.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  81.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}">
  82. </head>
  83. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  84. {# Layout: BODY_AFTER #}
  85. {% if Layout.BodyAfter %}
  86.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  87. {% endif %}
  88. {% if isMaintenance %}
  89.     <div class="ec-maintenanceAlert">
  90.         <div>
  91.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  92.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  93.         </div>
  94.     </div>
  95. {% endif %}
  96. <div class="ec-layoutRole">
  97.     {# Layout: HEADER #}
  98.     {% if Layout.Header %}
  99.         <header class="ec-layoutRole__header">
  100.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  101.         </header>
  102.     {% endif %}
  103.     {# Layout: CONTENTS_TOP #}
  104.     {% if Layout.ContentsTop %}
  105.         <div class="ec-layoutRole__contentTop">
  106.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  107.         </div>
  108.     {% endif %}
  109.     <div class="ec-layoutRole__contents">
  110.         {# Layout: SIDE_LEFT #}
  111.         {% if Layout.SideLeft %}
  112.             <aside class="ec-layoutRole__left">
  113.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  114.             </aside>
  115.         {% endif %}
  116.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  117.         {% if Layout.ColumnNum == 2 %}
  118.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  119.         {% elseif Layout.ColumnNum == 3 %}
  120.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  121.         {% endif %}
  122.         <main class="{{ layoutRoleMain }}">
  123.             {# Layout: MAIN_TOP #}
  124.             {% if Layout.MainTop %}
  125.                 <div class="ec-layoutRole__mainTop">
  126.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  127.                 </div>
  128.             {% endif %}
  129.             {# MAIN AREA #}
  130.             {% block main %}{% endblock %}
  131.             {# Layout: MAIN_Bottom #}
  132.             {% if Layout.MainBottom %}
  133.                 <div class="ec-layoutRole__mainBottom">
  134.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  135.                 </div>
  136.             {% endif %}
  137.         </main>
  138.         {# Layout: SIDE_RIGHT #}
  139.         {% if Layout.SideRight %}
  140.             <aside class="ec-layoutRole__right">
  141.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  142.             </aside>
  143.         {% endif %}
  144.     </div>
  145.     {# Layout: CONTENTS_BOTTOM #}
  146.     {% if Layout.ContentsBottom %}
  147.         <div class="ec-layoutRole__contentBottom">
  148.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  149.         </div>
  150.     {% endif %}
  151.     {# Layout: CONTENTS_FOOTER #}
  152.     {% if Layout.Footer %}
  153.         <footer class="ec-layoutRole__footer">
  154.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  155.         </footer>
  156.     {% endif %}
  157. </div><!-- ec-layoutRole -->
  158. <div class="ec-overlayRole"></div>
  159. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  160. <div class="ec-drawerRole">
  161.     {# Layout: DRAWER #}
  162.     {% if Layout.Drawer %}
  163.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  164.     {% endif %}
  165. </div>
  166. <div class="ec-blockTopBtn pagetop">{{'ページトップへ'|trans}}</div>
  167. {% include('@common/lang.twig') %}
  168. <script src="{{ asset('assets/js/function.js') }}"></script>
  169. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  170. {% block javascript %}{% endblock %}
  171. {# Layout: CLOSE_BODY_BEFORE #}
  172. {% if Layout.CloseBodyBefore %}
  173.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  174. {% endif %}
  175. {# プラグイン用Snippet #}
  176. {% if plugin_snippets is defined %}
  177.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  178. {% endif %}
  179.     <script src="{{ asset('assets/js/customize.js', 'user_data') }}"></script>
  180. </body>
  181. </html>