<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @admin/default_frame.twig */
class __TwigTemplate_06b2df29e6720010a77a16fac4b08e57 extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'main' => [$this, 'block_main'],
'javascript' => [$this, 'block_javascript'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/default_frame.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@admin/default_frame.twig"));
// line 1
echo "<!doctype html>
";
// line 12
echo "<html lang=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config", $context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.', 12, $this->source); })()), "locale", [], "any", false, false, true, 12), 12, $this->source), "html", null, true);
echo "\">
<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=\"";
// line 16
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken(twig_constant("Eccube\\Common\\Constant::TOKEN_NAME")), "html", null, true);
echo "\">
<title>";
// line 17
$this->displayBlock("sub_title", $context, $blocks);
echo " ";
$this->displayBlock("title", $context, $blocks);
echo " - ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 17, $this->source); })()), "shop_name", [], "any", false, false, true, 17), 17, $this->source), "html", null, true);
echo "</title>
<link rel=\"icon\" href=\"";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/favicon.ico", "admin"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.3.1/css/all.css\" integrity=\"sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU\" crossorigin=\"anonymous\">
<link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.3.1/css/v4-shims.css\" integrity=\"sha384-lmquXrF9qn7mMo6iRQ662vN44vTTVUBpcdtDFWPxD9uFPqC/aMn6pcQrTTupiv1A\" crossorigin=\"anonymous\">
<link rel=\"stylesheet\" href=\"";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/bootstrap.css", "admin"), "html", null, true);
echo "\">
<link rel=\"stylesheet\" href=\"";
// line 22
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/css/app.css", "admin"), "html", null, true);
echo "\">
<script src=\"";
// line 23
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin.bundle.js", "bundle"), "html", null, true);
echo "\"></script>
";
// line 24
$this->displayBlock('stylesheet', $context, $blocks);
// line 25
echo " <script>
\$(function() {
\$.ajaxSetup({
'headers': {
'ECCUBE-CSRF-TOKEN': \$('meta[name=\"eccube-csrf-token\"]').attr('content')
}
});
});
</script>
";
// line 35
echo " ";
if (array_key_exists("plugin_assets", $context)) {
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "@admin/snippet.twig", ["snippets" => (isset($context["plugin_assets"]) || array_key_exists("plugin_assets", $context) ? $context["plugin_assets"] : (function () { throw new RuntimeError('Variable "plugin_assets" does not exist.', 35, $this->source); })())]);
}
// line 36
echo "</head>
<body id=\"page_";
// line 37
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 37, $this->source); })()), "request", [], "any", false, false, true, 37), "get", [0 => "_route"], "method", false, false, true, 37), 37, $this->source), "html", null, true);
echo "\">
<header class=\"c-headerBar\">
<div class=\"c-headerBar__container\">
<div class=\"c-headerBar__logo\">
<h1><img src=\"";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/logo@2x.png", "admin"), "html", null, true);
echo "\"></h1>
</div>
<a class=\"c-headerBar__toggleBtn\"><i class=\"fa fa-bars\" aria-hidden=\"true\"></i></a>
<a class=\"c-headerBar__shopTitle\" href=\"";
// line 44
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\" target=\"_blank\"><span>";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 44, $this->source); })()), "shop_name", [], "any", false, false, true, 44), 44, $this->source), "html", null, true);
echo "</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=\"";
// line 49
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.header.last_login"), "html", null, true);
echo "\"
data-bs-content=\"<p>";
// line 50
echo twig_escape_filter($this->env, $this->extensions['Eccube\Twig\Extension\IntlExtension']->date_min($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 50, $this->source); })()), "user", [], "any", false, false, true, 50), "login_date", [], "any", false, false, true, 50), 50, $this->source)), "html", null, true);
echo "</p><a href='";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("admin_change_password");
echo "' class='btn btn-ec-regular w-100 mb-2'>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.header.change_password"), "html", null, true);
echo "</a>";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 50, $this->source); })()), "user", [], "any", false, false, true, 50), "two_factor_auth_enabled", [], "any", false, false, true, 50)) {
echo "<a href='";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("admin_setting_system_two_factor_auth_edit");
echo "' class='btn btn-ec-regular w-100 mb-2'>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.header.two_factor_auth"), "html", null, true);
echo "</a>";
}
echo "<a href='";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("admin_logout");
echo "' class='btn btn-ec-sub w-100'>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.header.logout"), "html", null, true);
echo "</a>\"
data-bs-html=\"true\"><i class=\"fa fa-user-circle\" aria-hidden=\"true\"></i><span>";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.header.user_name", ["%name%" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 51, $this->source); })()), "user", [], "any", false, false, true, 51), "name", [], "any", false, false, true, 51)]), "html", null, true);
echo "</span><i class=\"fa fa-angle-down\" aria-hidden=\"true\"></i></a>
</div>
</header>
<div class=\"c-container\">
<div class=\"c-mainNavArea\">
";
// line 56
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "@admin/nav.twig");
echo "
</div>
<div class=\"c-curtain\"></div>
<div class=\"c-contentsArea\">
<div class=\"c-pageTitle\">
<div class=\"c-pageTitle__titles\">
<h2 class=\"c-pageTitle__title\">";
// line 62
$this->displayBlock("title", $context, $blocks);
echo "</h2><span class=\"c-pageTitle__subTitle\">";
$this->displayBlock("sub_title", $context, $blocks);
echo "</span>
</div>
</div>
";
// line 66
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "@admin/alert.twig");
echo "
";
// line 68
$this->displayBlock('main', $context, $blocks);
// line 69
echo "
</div>
</div>
";
// line 72
$this->loadTemplate("@common/lang.twig", "@admin/default_frame.twig", 72)->display($context);
// line 73
echo "<script src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/function.js", "admin"), "html", null, true);
echo "\"></script>
";
// line 74
$this->displayBlock('javascript', $context, $blocks);
// line 76
if (array_key_exists("plugin_snippets", $context)) {
// line 77
echo " ";
echo $this->extensions['Eccube\Twig\Extension\IgnoreTwigSandboxErrorExtension']->twig_include($this->env, $context, "@admin/snippet.twig", ["snippets" => (isset($context["plugin_snippets"]) || array_key_exists("plugin_snippets", $context) ? $context["plugin_snippets"] : (function () { throw new RuntimeError('Variable "plugin_snippets" does not exist.', 77, $this->source); })())]);
echo "
";
}
// line 79
echo "</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 24
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 68
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 74
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@admin/default_frame.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 260 => 74, 242 => 68, 224 => 24, 212 => 79, 206 => 77, 204 => 76, 202 => 74, 197 => 73, 195 => 72, 190 => 69, 188 => 68, 183 => 66, 174 => 62, 165 => 56, 157 => 51, 137 => 50, 133 => 49, 123 => 44, 117 => 41, 110 => 37, 107 => 36, 102 => 35, 91 => 25, 89 => 24, 85 => 23, 81 => 22, 77 => 21, 71 => 18, 63 => 17, 59 => 16, 51 => 12, 48 => 1,);
}
public function getSourceContext()
{
return new Source("<!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\" integrity=\"sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU\" crossorigin=\"anonymous\">
<link rel=\"stylesheet\" href=\"https://use.fontawesome.com/releases/v5.3.1/css/v4-shims.css\" integrity=\"sha384-lmquXrF9qn7mMo6iRQ662vN44vTTVUBpcdtDFWPxD9uFPqC/aMn6pcQrTTupiv1A\" crossorigin=\"anonymous\">
<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>
", "@admin/default_frame.twig", "/home/bluehippo91/www/bluehippo91.sakura.ne.jp/src/Eccube/Resource/template/admin/default_frame.twig");
}
public function checkSecurity()
{
static $tags = array("block" => 24, "if" => 35, "include" => 72);
static $filters = array("escape" => 12, "trans" => 49, "date_min" => 50);
static $functions = array("csrf_token" => 16, "constant" => 16, "asset" => 18, "include" => 35, "url" => 44);
try {
$this->sandbox->checkSecurity(
['block', 'if', 'include'],
['escape', 'trans', 'date_min'],
['csrf_token', 'constant', 'asset', 'include', 'url']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}