<!doctype html>
{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
<html lang="{{ eccube_config.locale }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="eccube-csrf-token" content="{{ csrf_token(constant('Eccube\\Common\\Constant::TOKEN_NAME')) }}">
<title>{{ block('sub_title') }} {{ block('title') }} - {{ BaseInfo.shop_name }}</title>
<link rel="icon" href="{{ asset('assets/img/favicon.ico', 'admin') }}">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/v4-shims.css">
<link rel="stylesheet" href="{{ asset('assets/css/bootstrap.css', 'admin') }}">
<link rel="stylesheet" href="{{ asset('assets/css/app.css', 'admin') }}">
<script src="{{ asset('admin.bundle.js', 'bundle') }}"></script>
{% block stylesheet %}{% endblock %}
<script>
$(function() {
$.ajaxSetup({
'headers': {
'ECCUBE-CSRF-TOKEN': $('meta[name="eccube-csrf-token"]').attr('content')
}
});
});
</script>
{# プラグイン用styleseetやmetatagなど #}
{% if plugin_assets is defined %}{{ include('@admin/snippet.twig', {snippets: plugin_assets}) }}{% endif %}
</head>
<body id="page_{{ app.request.get('_route') }}">
<header class="c-headerBar">
<div class="c-headerBar__container">
<div class="c-headerBar__logo">
<h1><img src="{{ asset('assets/img/logo@2x.png', 'admin') }}"></h1>
</div>
<a class="c-headerBar__toggleBtn"><i class="fa fa-bars" aria-hidden="true"></i></a>
<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>
<a class="c-headerBar__userMenu"
data-bs-container="body"
data-bs-toggle="popover"
data-bs-placement="bottom"
title="{{ 'admin.header.last_login'|trans }}"
data-bs-content="<p>{{ app.user.login_date|date_min }}</p><a href='{{ url("admin_change_password") }}' class='btn btn-ec-regular w-100 mb-2'>{{ 'admin.header.change_password'|trans }}</a>{% if app.user.two_factor_auth_enabled %}<a href='{{ url("admin_setting_system_two_factor_auth_edit") }}' class='btn btn-ec-regular w-100 mb-2'>{{ 'admin.header.two_factor_auth'|trans }}</a>{% endif %}<a href='{{ url("admin_logout") }}' class='btn btn-ec-sub w-100'>{{ 'admin.header.logout'|trans }}</a>"
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>
</div>
</header>
<div class="c-container">
<div class="c-mainNavArea">
{{ include('@admin/nav.twig') }}
</div>
<div class="c-curtain"></div>
<div class="c-contentsArea">
<div class="c-pageTitle">
<div class="c-pageTitle__titles">
<h2 class="c-pageTitle__title">{{ block('title') }}</h2><span class="c-pageTitle__subTitle">{{ block('sub_title') }}</span>
</div>
</div>
{{ include('@admin/alert.twig') }}
{% block main %}{% endblock %}
</div>
</div>
{% include('@common/lang.twig') %}
<script src="{{ asset('assets/js/function.js', 'admin') }}"></script>
{% block javascript %}{% endblock %}
{# プラグイン用Snippet #}
{% if plugin_snippets is defined %}
{{ include('@admin/snippet.twig', {snippets: plugin_snippets}) }}
{% endif %}
</body>
</html>