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# website: https://ogp.me/ns/website# article: https://ogp.me/ns/article# 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.     <meta name="format-detection" content="telephone=no, email=no, address=no">
  15.     {# ページtitleを設定する #}
  16.     {% if Page is defined and Page.url == "blogs42_detail" %}
  17.         {# ブログ詳細 #}
  18.         <title>{% if Blogs is defined and Blogs is not empty %} {{ Blogs.title }}|{% endif %} {{ BaseInfo.shop_name }}</title>
  19.         <meta property="og:title" content="{% if Blogs is defined and Blogs is not empty %} {{ Blogs.title }}|{% endif %} {{ BaseInfo.shop_name }}">
  20.     {% elseif Page is defined and Page.url == "blogs42_list" %}
  21.         {# ブログ一覧 #}
  22.         <title>導入事例記事一覧|{{ BaseInfo.shop_name }}</title>
  23.         <meta property="og:title" content="導入事例記事一覧|{{ BaseInfo.shop_name }}">
  24.     {% elseif Page is defined and Page.url == "homepage" %}
  25.         {# TOPページ #}
  26.         <title>{{ BaseInfo.shop_name }}</title>
  27.         <meta property="og:title" content="{{ BaseInfo.shop_name }}">
  28.     {% elseif subtitle is defined and subtitle is not empty %}
  29.         {# 商品詳細 ※「subtitle」は商品名 #}
  30.         <title>{{ subtitle }}|{{ BaseInfo.shop_name }}</title>
  31.         <meta property="og:title" content="{{ subtitle }}|{{ BaseInfo.shop_name }}">
  32.     {# ページ名があるユーザー作成ページ #}
  33.     {% elseif Page is defined and Page.name is defined %}
  34.         <title>{{ Page.name }}|{{ BaseInfo.shop_name }}</title>
  35.         <meta property="og:title" content="{{ Page.name }}|{{ BaseInfo.shop_name }}">
  36.     {# Other #}
  37.     {% else %}
  38.         <title>{{ BaseInfo.shop_name }}</title>
  39.         <meta property="og:title" content="{{ BaseInfo.shop_name }}">
  40.     {% endif %}
  41.     {% if Page.meta_tags is not empty %}
  42.         {{ include(template_from_string(Page.meta_tags), sandboxed = true) }}
  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.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  59.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  60.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  61.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  62.     {% block stylesheet %}{% endblock %}
  63.     <script>
  64.         $(function() {
  65.             $.ajaxSetup({
  66.                 'headers': {
  67.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  68.                 }
  69.             });
  70.         });
  71.     </script>
  72.     {# Layout: HEAD #}
  73.     {% if Layout.Head %}
  74.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  75.     {% endif %}
  76.     {# プラグイン用styleseetやmetatagなど #}
  77.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  78.     <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}?{{ 'now'|date('His') }}">
  79.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/izimodal/1.5.1/css/iziModal.min.css">
  80.     <script src="https://cdnjs.cloudflare.com/ajax/libs/izimodal/1.5.1/js/iziModal.min.js"></script>
  81. </head>
  82. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  83. {# Layout: BODY_AFTER #}
  84. {% if Layout.BodyAfter %}
  85.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  86. {% endif %}
  87. {% if isMaintenance %}
  88.     <div class="ec-maintenanceAlert">
  89.         <div>
  90.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  91.             {{ 'メンテナンスモードが有効になっています。'|trans }}
  92.         </div>
  93.     </div>
  94. {% endif %}
  95. <div class="ec-layoutRole">
  96.     {# Layout: HEADER #}
  97.     {% if Layout.Header %}
  98.         <header class="ec-layoutRole__header">
  99.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  100.         </header>
  101.     {% endif %}
  102.     {# Layout: CONTENTS_TOP #}
  103.     {% if Layout.ContentsTop %}
  104.         <div class="ec-layoutRole__contentTop">
  105.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  106.         </div>
  107.     {% endif %}
  108.     <div class="ec-layoutRole__contents">
  109.         {# Layout: SIDE_LEFT #}
  110.         {% if Layout.SideLeft %}
  111.             <aside class="ec-layoutRole__left">
  112.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  113.             </aside>
  114.         {% endif %}
  115.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  116.         {% if Layout.ColumnNum == 2 %}
  117.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  118.         {% elseif Layout.ColumnNum == 3 %}
  119.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  120.         {% endif %}
  121.         <main class="{{ layoutRoleMain }}">
  122.             {# Layout: MAIN_TOP #}
  123.             {% if Layout.MainTop %}
  124.                 <div class="ec-layoutRole__mainTop">
  125.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  126.                 </div>
  127.             {% endif %}
  128.             {# MAIN AREA #}
  129.             {% block main %}{% endblock %}
  130.             {# Layout: MAIN_Bottom #}
  131.             {% if Layout.MainBottom %}
  132.                 <div class="ec-layoutRole__mainBottom">
  133.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  134.                 </div>
  135.             {% endif %}
  136.         </main>
  137.         {# Layout: SIDE_RIGHT #}
  138.         {% if Layout.SideRight %}
  139.             <aside class="ec-layoutRole__right">
  140.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  141.             </aside>
  142.         {% endif %}
  143.     </div>
  144.     {# Layout: CONTENTS_BOTTOM #}
  145.     {% if Layout.ContentsBottom %}
  146.         <div class="ec-layoutRole__contentBottom">
  147.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  148.         </div>
  149.     {% endif %}
  150.     {# Layout: CONTENTS_FOOTER #}
  151.     {% if Layout.Footer %}
  152.         <footer class="ec-layoutRole__footer">
  153.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  154.         </footer>
  155.     {% endif %}
  156. </div><!-- ec-layoutRole -->
  157. <div class="ec-overlayRole" style="z-index: 200;"></div>
  158. <div class="ec-drawerRoleClose" style="background: none; top: 300px;">
  159.     <img src="{{ asset('assets/img/common/close_menu.svg','user_data') }}">
  160. </div>
  161. <div class="ec-drawerRole" style="background: #ffffff;">
  162.     {# Layout: DRAWER #}
  163.     {% if Layout.Drawer %}
  164.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  165.     {% endif %}
  166. </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>