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.     {% if (Page is defined and Page.url == 'homepage') or (body_class is defined and body_class == 'front_page') %}
  15.         {% set document_title = 'CHEETAH WiFi' %}
  16.     {% elseif subtitle is defined and subtitle is not empty %}
  17.         {% set document_title = subtitle %}
  18.     {% elseif title is defined and title is not empty %}
  19.         {# dtb_page の管理用表記をブラウザタイトル向けに整える #}
  20.         {% set document_title = title|replace({
  21.             '(入力ページ)': '',
  22.             '(完了ページ)': '',
  23.             '(確認ページ)': '',
  24.             '(再設定ページ)': ''
  25.         }) %}
  26.         {# 「MYページ」など短い名称は「ページ」を落とすと意味が崩れるため残す #}
  27.         {% if document_title|length > 3 and document_title|slice(-3) == 'ページ' %}
  28.             {% set stripped_title = document_title|slice(0, document_title|length - 3)|trim %}
  29.             {% if stripped_title|length > 2 %}
  30.                 {% set document_title = stripped_title %}
  31.             {% endif %}
  32.         {% endif %}
  33.         {% set document_title = document_title|trim('/')|trim %}
  34.     {% else %}
  35.         {% set document_title = 'CHEETAH WiFi' %}
  36.     {% endif %}
  37.     <title>{{ document_title }}</title>
  38.     {% if custom_params is defined and custom_params.custom_meta_tags is defined %}
  39.         {# Custom meta tags from parameters #}
  40.         {% for key, value in custom_params.custom_meta_tags %}
  41.             <meta property="{{ key }}" content="{{ value }}" />
  42.         {% endfor %}
  43.         {% if custom_params.canonical_url is defined %}
  44.             <link rel="canonical" href="{{ custom_params.canonical_url }}" />
  45.         {% endif %}
  46.         {% if custom_params.meta_robots is defined %}
  47.             <meta name="robots" content="{{ custom_params.meta_robots }}" />
  48.         {% endif %}
  49.     {% elseif Page.meta_tags is not empty %}
  50.         {{ include(template_from_string(Page.meta_tags), sandboxed = true) }}
  51.         {% if Page.description is not empty %}
  52.             <meta name="description" content="{{ Page.description }}">
  53.         {% endif %}
  54.     {% else %}
  55.         {{ include('meta.twig') }}
  56.     {% endif %}
  57.     {% if Page.author is not empty %}
  58.         <meta name="author" content="{{ Page.author }}">
  59.     {% endif %}
  60.     {% if Page.keyword is not empty %}
  61.         <meta name="keywords" content="{{ Page.keyword }}">
  62.     {% endif %}
  63.     {% if Page.meta_robots is not empty %}
  64.         <meta name="robots" content="{{ Page.meta_robots }}">
  65.     {% endif %}
  66.     <link rel="icon" href="{{ asset('assets/img/common/favicon.ico', 'user_data') }}">
  67.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  68.     <link rel="stylesheet" href="{{ asset('assets/css/style.css') }}">
  69.     <link rel="stylesheet" href="{{ asset('assets/css/base.css') }}">
  70.     <link rel="stylesheet" href="{{ asset('assets/css/header.css') }}">
  71.     <link rel="stylesheet" href="{{ asset('assets/css/menu.css') }}">
  72.     <link rel="stylesheet" href="{{ asset('assets/css/footer.css') }}">
  73.     <script src="{{ asset('front.bundle.js', 'bundle') }}"></script>
  74.     {% block stylesheet %}{% endblock %}
  75.     <link rel="stylesheet" href="{{ asset('assets/css/ios-input-fix.css') }}">
  76.     <script>
  77.         $(function() {
  78.             $.ajaxSetup({
  79.                 'headers': {
  80.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  81.                 }
  82.             });
  83.         });
  84.     </script>
  85.     {# Layout: HEAD #}
  86.     {% if Layout.Head %}
  87.         {{ include('block.twig', {'Blocks': Layout.Head}) }}
  88.     {% endif %}
  89.     {# プラグイン用styleseetやmetatagなど #}
  90.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', { snippets: plugin_assets }) }}{% endif %}
  91.     {# <link rel="stylesheet" href="{{ asset('assets/css/customize.css', 'user_data') }}"> #}
  92.     <link rel="preconnect" href="https://fonts.googleapis.com">
  93.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  94.     <link href="https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100..900&display=swap" rel="stylesheet">
  95. </head>
  96. <body id="page_{{ app.request.get('_route') }}" class="{{ body_class|default('other_page') }}">
  97. {# Layout: BODY_AFTER #}
  98. {% if Layout.BodyAfter %}
  99.     {{ include('block.twig', {'Blocks': Layout.BodyAfter}) }}
  100. {% endif %}
  101. {% if isMaintenance %}
  102.     <div class="ec-maintenanceAlert">
  103.         <div>
  104.             <div class="ec-maintenanceAlert__icon"><img src="{{ asset('assets/icon/exclamation-white.svg') }}"/></div>
  105.             {{ 'front.under_maintenance'|trans }}
  106.         </div>
  107.     </div>
  108. {% endif %}
  109. <div class="ec-layoutRole">
  110.     {# Layout: HEADER #}
  111.     {% if Layout.Header %}
  112.         <header class="ec-layoutRole__header">
  113.             {{ include('block.twig', {'Blocks': Layout.Header}) }}
  114.         </header>
  115.     {% endif %}
  116.     {# Layout: CONTENTS_TOP #}
  117.     {% if Layout.ContentsTop %}
  118.         <div class="ec-layoutRole__contentTop">
  119.             {{ include('block.twig', {'Blocks': Layout.ContentsTop}) }}
  120.         </div>
  121.     {% endif %}
  122.     <div class="">
  123.         {# Layout: SIDE_LEFT #}
  124.         {% if Layout.SideLeft %}
  125.             <aside class="ec-layoutRole__left">
  126.                 {{ include('block.twig', {'Blocks': Layout.SideLeft}) }}
  127.             </aside>
  128.         {% endif %}
  129.         {% set layoutRoleMain = 'ec-layoutRole__main' %}
  130.         {% if Layout.ColumnNum == 2 %}
  131.             {% set layoutRoleMain = 'ec-layoutRole__mainWithColumn' %}
  132.         {% elseif Layout.ColumnNum == 3 %}
  133.             {% set layoutRoleMain = 'ec-layoutRole__mainBetweenColumn' %}
  134.         {% endif %}
  135.         <main class="{{ layoutRoleMain }}">
  136.             {# Layout: MAIN_TOP #}
  137.             {% if Layout.MainTop %}
  138.                 <div class="ec-layoutRole__mainTop">
  139.                     {{ include('block.twig', {'Blocks': Layout.MainTop}) }}
  140.                 </div>
  141.             {% endif %}
  142.             {# MAIN AREA #}
  143.             {% block main %}{% endblock %}
  144.             {# Layout: MAIN_Bottom #}
  145.             {# {% if Layout.MainBottom %}
  146.                 <div class="ec-layoutRole__mainBottom">
  147.                     {{ include('block.twig', {'Blocks': Layout.MainBottom}) }}
  148.                 </div>
  149.             {% endif %} #}
  150.         </main>
  151.         {# Layout: SIDE_RIGHT #}
  152.         {% if Layout.SideRight %}
  153.             <aside class="ec-layoutRole__right">
  154.                 {{ include('block.twig', {'Blocks': Layout.SideRight}) }}
  155.             </aside>
  156.         {% endif %}
  157.     </div>
  158.     {# Layout: CONTENTS_BOTTOM #}
  159.     {% if Layout.ContentsBottom %}
  160.         <div class="ec-layoutRole__contentBottom">
  161.             {{ include('block.twig', {'Blocks': Layout.ContentsBottom}) }}
  162.         </div>
  163.     {% endif %}
  164.     {# Layout: CONTENTS_FOOTER #}
  165.     {% if Layout.Footer %}
  166.         <footer class="ec-layoutRole__footer font_all_mplus">
  167.             {{ include('block.twig', {'Blocks': Layout.Footer}) }}
  168.         </footer>
  169.     {% endif %}
  170. </div><!-- ec-layoutRole -->
  171. <div class="ec-overlayRole"></div>
  172. <div class="ec-drawerRoleClose"><i class="fas fa-times"></i></div>
  173. <div class="ec-drawerRole">
  174.     {# Layout: DRAWER #}
  175.     {% if Layout.Drawer %}
  176.         {{ include('block.twig', {'Blocks': Layout.Drawer}) }}
  177.     {% endif %}
  178. </div>
  179. <div class="ec-blockTopBtn pagetop">
  180.     <i class="fas fa-chevron-up" style="font-size: 20px; margin-top: 10px;"></i>
  181. </div>
  182. {% include('@common/lang.twig') %}
  183. <script src="{{ asset('assets/js/function.js') }}"></script>
  184. <script src="{{ asset('assets/js/eccube.js') }}"></script>
  185. {% block javascript %}{% endblock %}
  186. {# Layout: CLOSE_BODY_BEFORE #}
  187. {% if Layout.CloseBodyBefore %}
  188.     {{ include('block.twig', {'Blocks': Layout.CloseBodyBefore}) }}
  189. {% endif %}
  190. {# プラグイン用Snippet #}
  191. {% if plugin_snippets is defined %}
  192.     {{ include('snippet.twig', { snippets: plugin_snippets }) }}
  193. {% endif %}
  194.     <script src="{{ asset('assets/js/custom.js') }}"></script>
  195. </body>
  196. </html>