src/Eccube/Resource/template/admin/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>
  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>{{ block('sub_title') }} {{ block('title') }} - {{ BaseInfo.shop_name }}</title>
  15.     <link rel="icon" href="{{ asset('assets/img/favicon.ico', 'admin') }}">
  16.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css">
  17.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/v4-shims.css">
  18.     <link rel="stylesheet" href="{{ asset('assets/css/bootstrap.css', 'admin') }}">
  19.     <link rel="stylesheet" href="{{ asset('assets/css/app.css', 'admin') }}">
  20.     <script src="{{ asset('admin.bundle.js', 'bundle') }}"></script>
  21.     {% block stylesheet %}{% endblock %}
  22.     <script>
  23.         $(function() {
  24.             $.ajaxSetup({
  25.                 'headers': {
  26.                     'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
  27.                 }
  28.             });
  29.         });
  30.     </script>
  31.     {# プラグイン用styleseetやmetatagなど #}
  32.     {% if plugin_assets is defined %}{{ include('@admin/snippet.twig', {snippets: plugin_assets}) }}{% endif %}
  33. </head>
  34. <body id="page_{{ app.request.get('_route') }}">
  35. <header class="c-headerBar">
  36.     <div class="c-headerBar__container">
  37.         <div class="c-headerBar__logo">
  38.             <h1><img src="{{ asset('assets/img/logo@2x.png', 'admin') }}"></h1>
  39.         </div>
  40.         <a class="c-headerBar__toggleBtn"><i class="fa fa-bars" aria-hidden="true"></i></a>
  41.         <a class="c-headerBar__shopTitle" href="{{ url('homepage') }}" target="_blank"><span>{{ BaseInfo.shop_name }}</span><i class="fa fa-angle-right" aria-hidden="true"></i></a>
  42.         <a class="c-headerBar__userMenu"
  43.            data-bs-container="body"
  44.            data-bs-toggle="popover"
  45.            data-bs-placement="bottom"
  46.            title="{{ 'admin.header.last_login'|trans }}"
  47.            data-bs-content="&lt;p&gt;{{ app.user.login_date|date_min }}&lt;/p&gt;&lt;a href='{{ url("admin_change_password") }}' class='btn btn-ec-regular w-100 mb-2'&gt;{{ 'admin.header.change_password'|trans }}&lt;/a&gt;{% if app.user.two_factor_auth_enabled %}&lt;a href='{{ url("admin_setting_system_two_factor_auth_edit") }}' class='btn btn-ec-regular w-100 mb-2'&gt;{{ 'admin.header.two_factor_auth'|trans }}&lt;/a&gt;{% endif %}&lt;a href='{{ url("admin_logout") }}' class='btn btn-ec-sub w-100'&gt;{{ 'admin.header.logout'|trans }}&lt;/a&gt;"
  48.            data-bs-html="true"><i class="fa fa-user-circle" aria-hidden="true"></i><span>{{ 'admin.header.user_name'|trans({'%name%':app.user.name}) }}</span><i class="fa fa-angle-down" aria-hidden="true"></i></a>
  49.     </div>
  50. </header>
  51. <div class="c-container">
  52.     <div class="c-mainNavArea">
  53.         {{ include('@admin/nav.twig') }}
  54.     </div>
  55.     <div class="c-curtain"></div>
  56.     <div class="c-contentsArea">
  57.         <div class="c-pageTitle">
  58.             <div class="c-pageTitle__titles">
  59.                 <h2 class="c-pageTitle__title">{{ block('title') }}</h2><span class="c-pageTitle__subTitle">{{ block('sub_title') }}</span>
  60.             </div>
  61.         </div>
  62.         {{ include('@admin/alert.twig') }}
  63.         {% block main %}{% endblock %}
  64.     </div>
  65. </div>
  66. {% include('@common/lang.twig') %}
  67. <script src="{{ asset('assets/js/function.js', 'admin') }}"></script>
  68. {% block javascript %}{% endblock %}
  69. {# プラグイン用Snippet #}
  70. {% if plugin_snippets is defined %}
  71.     {{ include('@admin/snippet.twig', {snippets: plugin_snippets}) }}
  72. {% endif %}
  73. </body>
  74. </html>