<?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;
/* @PimcoreAdmin/Admin/Login/layout.html.twig */
class __TwigTemplate_ed7f306adada0511c3ea9bde9a8a7d20 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$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", "@PimcoreAdmin/Admin/Login/layout.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PimcoreAdmin/Admin/Login/layout.html.twig"));
// line 1
echo "<!DOCTYPE html>
<html>
<head>
<title>Welcome to Pimcore!</title>
<meta charset=\"UTF-8\">
<meta name=\"robots\" content=\"noindex, follow\"/>
<link rel=\"icon\" type=\"image/png\" href=\"/bundles/pimcoreadmin/img/favicon/favicon-32x32.png\"/>
<link rel=\"stylesheet\" href=\"/bundles/pimcoreadmin/css/login.css\" type=\"text/css\"/>
";
// line 13
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["pluginCssPaths"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["pluginCssPath"]) {
// line 14
echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["pluginCssPath"], 14, $this->source), "html", null, true);
echo "?_dc=";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "U"), "html", null, true);
echo "\"/>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pluginCssPath'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 16
echo " </head>
<body class=\"pimcore_version_10 ";
// line 17
echo (((($__internal_compile_0 = (($__internal_compile_1 = ($context["config"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["branding"] ?? null) : null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["login_screen_invert_colors"] ?? null) : null)) ? ("inverted") : (""));
echo "\">
";
// line 18
$context["backgroundImageUrl"] = "";
// line 19
echo " ";
$context["customImage"] = (($__internal_compile_2 = (($__internal_compile_3 = ($context["config"] ?? null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3["branding"] ?? null) : null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["login_screen_custom_image"] ?? null) : null);
// line 20
echo " ";
// line 21
echo " ";
// line 22
echo " ";
if (twig_matches("@^https?://@", ($context["customImage"] ?? null))) {
// line 23
echo " ";
$context["backgroundImageUrl"] = ($context["customImage"] ?? null);
// line 24
echo " ";
} elseif ($this->env->getFunction('pimcore_file_exists')->getCallable()(((twig_constant("PIMCORE_WEB_ROOT") . "/var/assets") . ($context["customImage"] ?? null)))) {
// line 25
echo " ";
$context["backgroundImageUrl"] = ($context["customImage"] ?? null);
// line 26
echo " ";
} elseif ($this->env->getFunction('pimcore_file_exists')->getCallable()((twig_constant("PIMCORE_WEB_ROOT") . ($context["customImage"] ?? null)))) {
// line 27
echo " ";
$context["backgroundImageUrl"] = ($context["customImage"] ?? null);
// line 28
echo " ";
} else {
// line 31
echo " ";
$context["backgroundImageUrl"] = "/bundles/pimcoreadmin/img/login/pcx.svg";
// line 32
echo " ";
}
// line 33
echo "
<style type=\"text/css\">
#background {
background-image: url(\"";
// line 36
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(($context["backgroundImageUrl"] ?? null), 36, $this->source), "html", null, true);
echo "\");
}
</style>
";
// line 40
$context["customColor"] = (($__internal_compile_4 = (($__internal_compile_5 = ($context["config"] ?? null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5["branding"] ?? null) : null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["color_login_screen"] ?? null) : null);
// line 41
echo " ";
if ( !twig_test_empty(($context["customColor"] ?? null))) {
// line 42
echo " <style type=\"text/css\">
#content button {
background: ";
// line 44
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(($context["customColor"] ?? null), 44, $this->source), "html", null, true);
echo ";
}
#content a {
color: ";
// line 48
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(($context["customColor"] ?? null), 48, $this->source), "html", null, true);
echo ";
}
</style>
";
}
// line 52
echo "
<div id=\"logo\">
<img src=\"";
// line 54
echo twig_escape_filter($this->env, ($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pimcore_settings_display_custom_logo") . (((($__internal_compile_6 = (($__internal_compile_7 = ($context["config"] ?? null)) && is_array($__internal_compile_7) || $__internal_compile_7 instanceof ArrayAccess ? ($__internal_compile_7["branding"] ?? null) : null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6["login_screen_invert_colors"] ?? null) : null)) ? ("") : ("?white=true"))), "html", null, true);
echo "\">
</div>
<div id=\"content\">
";
// line 58
$this->displayBlock("content", $context, $blocks);
echo "
</div>
";
// line 61
if ((array_key_exists("debug", $context) && ($context["debug"] ?? null))) {
// line 62
echo " <div id=\"github\">
<a class=\"github-button\" href=\"https://github.com/pimcore/pimcore\" data-color-scheme=\"no-preference: dark; light: dark; dark: dark;\" data-size=\"large\" aria-label=\"Star pimcore/pimcore on GitHub\">Star</a>
</div>
<script async defer src=\"https://buttons.github.io/buttons.js\" ";
// line 65
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["pimcore_csp"] ?? null), "getNonceHtmlAttribute", [], "method", false, false, true, 65), 65, $this->source);
echo "></script>
";
}
// line 67
echo "
";
// line 81
echo "
<div id=\"contentBackground\"></div>
<div id=\"background\"></div>
<div id=\"footer\">
© 2009-";
// line 85
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", "Y"), "html", null, true);
echo " <a href=\"http://www.pimcore.org/\">Pimcore GmbH</a><br>
BE RESPECTFUL AND HONOR OUR WORK FOR FREE & OPEN SOURCE SOFTWARE BY NOT REMOVING OUR COPYRIGHT NOTICE!
KEEP IN MIND THAT REMOVING THE COPYRIGHT NOTICE IS VIOLATING OUR LICENSING TERMS!
</div>
";
// line 90
if ( $this->hasBlock("below_footer", $context, $blocks)) {
// line 91
echo " ";
$this->displayBlock("below_footer", $context, $blocks);
echo "
";
}
// line 93
echo "
</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@PimcoreAdmin/Admin/Login/layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 206 => 93, 200 => 91, 198 => 90, 190 => 85, 184 => 81, 181 => 67, 176 => 65, 171 => 62, 169 => 61, 163 => 58, 156 => 54, 152 => 52, 145 => 48, 138 => 44, 134 => 42, 131 => 41, 129 => 40, 122 => 36, 117 => 33, 114 => 32, 111 => 31, 108 => 28, 105 => 27, 102 => 26, 99 => 25, 96 => 24, 93 => 23, 90 => 22, 88 => 21, 86 => 20, 83 => 19, 81 => 18, 77 => 17, 74 => 16, 63 => 14, 59 => 13, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<!DOCTYPE html>
<html>
<head>
<title>Welcome to Pimcore!</title>
<meta charset=\"UTF-8\">
<meta name=\"robots\" content=\"noindex, follow\"/>
<link rel=\"icon\" type=\"image/png\" href=\"/bundles/pimcoreadmin/img/favicon/favicon-32x32.png\"/>
<link rel=\"stylesheet\" href=\"/bundles/pimcoreadmin/css/login.css\" type=\"text/css\"/>
{% for pluginCssPath in pluginCssPaths %}
<link rel=\"stylesheet\" type=\"text/css\" href=\"{{ pluginCssPath }}?_dc={{ 'now'|date('U') }}\"/>
{% endfor %}
</head>
<body class=\"pimcore_version_10 {{ config['branding']['login_screen_invert_colors'] ? 'inverted' : '' }}\">
{% set backgroundImageUrl = \"\" %}
{% set customImage = config['branding']['login_screen_custom_image'] %}
{# https://github.com/pimcore/pimcore/issues/8016 #}
{# https://github.com/pimcore/pimcore/issues/8129 #}
{% if customImage matches '@^https?://@' %}
{% set backgroundImageUrl = customImage %}
{% elseif pimcore_file_exists(constant('PIMCORE_WEB_ROOT') ~ '/var/assets' ~ customImage) %}
{% set backgroundImageUrl = customImage %}
{% elseif pimcore_file_exists(constant('PIMCORE_WEB_ROOT') ~ customImage) %}
{% set backgroundImageUrl = customImage %}
{% else %}
{# {% set defaultImages = ['pimconaut-ecommerce.svg', 'pimconaut-world.svg', 'pimconaut-engineer.svg', 'pimconaut-moon.svg', 'pimconaut-rocket.svg'] %}#}
{# {% set backgroundImageUrl = '/bundles/pimcoreadmin/img/login/' ~ random(defaultImages) %}#}
{% set backgroundImageUrl = '/bundles/pimcoreadmin/img/login/pcx.svg' %}
{% endif %}
<style type=\"text/css\">
#background {
background-image: url(\"{{ backgroundImageUrl }}\");
}
</style>
{% set customColor = config['branding']['color_login_screen'] %}
{% if (customColor is not empty) %}
<style type=\"text/css\">
#content button {
background: {{ customColor }};
}
#content a {
color: {{ customColor }};
}
</style>
{% endif %}
<div id=\"logo\">
<img src=\"{{ path('pimcore_settings_display_custom_logo') ~ (config['branding']['login_screen_invert_colors'] ? '' : '?white=true') }}\">
</div>
<div id=\"content\">
{{ block('content') }}
</div>
{% if debug is defined and debug %}
<div id=\"github\">
<a class=\"github-button\" href=\"https://github.com/pimcore/pimcore\" data-color-scheme=\"no-preference: dark; light: dark; dark: dark;\" data-size=\"large\" aria-label=\"Star pimcore/pimcore on GitHub\">Star</a>
</div>
<script async defer src=\"https://buttons.github.io/buttons.js\" {{ pimcore_csp.getNonceHtmlAttribute()|raw }}></script>
{% endif %}
{#
<div id=\"news\">
<h2>News</h2>
<hr>
<p>
<a href=\"#\">Where is Master Data Management Heading in the Future?</a>
</p>
<hr>
<p>
<a href=\"#\">Priint and Pimcore announce technology partnership to ease publishing workflows</a>
</p>
</div>
#}
<div id=\"contentBackground\"></div>
<div id=\"background\"></div>
<div id=\"footer\">
© 2009-{{ \"now\"|date(\"Y\") }} <a href=\"http://www.pimcore.org/\">Pimcore GmbH</a><br>
BE RESPECTFUL AND HONOR OUR WORK FOR FREE & OPEN SOURCE SOFTWARE BY NOT REMOVING OUR COPYRIGHT NOTICE!
KEEP IN MIND THAT REMOVING THE COPYRIGHT NOTICE IS VIOLATING OUR LICENSING TERMS!
</div>
{% if block('below_footer') is defined %}
{{ block('below_footer') }}
{% endif %}
</body>
</html>
", "@PimcoreAdmin/Admin/Login/layout.html.twig", "/var/www/html/vendor/pimcore/pimcore/bundles/AdminBundle/Resources/views/Admin/Login/layout.html.twig");
}
public function checkSecurity()
{
static $tags = array("for" => 13, "set" => 18, "if" => 22);
static $filters = array("escape" => 14, "date" => 14, "raw" => 65);
static $functions = array("pimcore_file_exists" => 24, "constant" => 24, "path" => 54);
try {
$this->sandbox->checkSecurity(
['for', 'set', 'if'],
['escape', 'date', 'raw'],
['pimcore_file_exists', 'constant', 'path']
);
} 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;
}
}
}