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