var/cache/dev/twig/07/0704169b391027f716f5bbf8c6ff40cf.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @PimcoreAdmin/Admin/Login/layout.html.twig */
  16. class __TwigTemplate_a1ba034ef796fb3f7f9844c7e9aac3ab extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = []): iterable
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  37.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PimcoreAdmin/Admin/Login/layout.html.twig"));
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PimcoreAdmin/Admin/Login/layout.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PimcoreAdmin/Admin/Login/layout.html.twig"));
  42.         // line 1
  43.         yield "<!DOCTYPE html>
  44. <html>
  45.     <head>
  46.         <title>Welcome to Pimcore!</title>
  47.         <meta charset=\"UTF-8\">
  48.         <meta name=\"robots\" content=\"noindex, follow\"/>
  49.         <link rel=\"icon\" type=\"image/png\" href=\"/bundles/pimcoreadmin/img/favicon/favicon-32x32.png\"/>
  50.         <link rel=\"stylesheet\" href=\"/bundles/pimcoreadmin/css/login.css\" type=\"text/css\"/>
  51.         ";
  52.         // line 13
  53.         $context['_parent'] = $context;
  54.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["pluginCssPaths"]) || array_key_exists("pluginCssPaths"$context) ? $context["pluginCssPaths"] : (function () { throw new RuntimeError('Variable "pluginCssPaths" does not exist.'13$this->source); })()));
  55.         foreach ($context['_seq'] as $context["_key"] => $context["pluginCssPath"]) {
  56.             // line 14
  57.             yield "            <link rel=\"stylesheet\" type=\"text/css\" href=\"";
  58.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed($context["pluginCssPath"], 14$this->source), "html"nulltrue);
  59.             yield "?_dc=";
  60.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now""U"), "html"nulltrue);
  61.             yield "\"/>
  62.         ";
  63.         }
  64.         $_parent $context['_parent'];
  65.         unset($context['_seq'], $context['_key'], $context['pluginCssPath'], $context['_parent']);
  66.         $context array_intersect_key($context$_parent) + $_parent;
  67.         // line 16
  68.         yield "    </head>
  69.     <body class=\"pimcore_version_10 ";
  70.         // line 17
  71.         yield (((($tmp CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["config"]) || array_key_exists("config"$context) ? $context["config"] : (function () { throw new RuntimeError('Variable "config" does not exist.'17$this->source); })()), "branding", [], "array"falsefalsetrue17), "login_screen_invert_colors", [], "array"falsefalsetrue17)) && $tmp instanceof Markup ? (string) $tmp $tmp)) ? ("inverted") : (""));
  72.         yield "\">
  73.         ";
  74.         // line 18
  75.         $context["backgroundImageUrl"] = "";
  76.         // line 19
  77.         yield "        ";
  78.         $context["customImage"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["config"]) || array_key_exists("config"$context) ? $context["config"] : (function () { throw new RuntimeError('Variable "config" does not exist.'19$this->source); })()), "branding", [], "array"falsefalsetrue19), "login_screen_custom_image", [], "array"falsefalsetrue19);
  79.         // line 20
  80.         yield "        ";
  81.         // line 21
  82.         yield "        ";
  83.         // line 22
  84.         yield "        ";
  85.         if (CoreExtension::matches("@^https?://@", (isset($context["customImage"]) || array_key_exists("customImage"$context) ? $context["customImage"] : (function () { throw new RuntimeError('Variable "customImage" does not exist.'22$this->source); })()))) {
  86.             // line 23
  87.             yield "            ";
  88.             $context["backgroundImageUrl"] = (isset($context["customImage"]) || array_key_exists("customImage"$context) ? $context["customImage"] : (function () { throw new RuntimeError('Variable "customImage" does not exist.'23$this->source); })());
  89.             // line 24
  90.             yield "        ";
  91.         } elseif ((($tmp $this->env->getFunction('pimcore_file_exists')->getCallable()(((Twig\Extension\CoreExtension::constant("PIMCORE_WEB_ROOT") . "/var/assets") . (isset($context["customImage"]) || array_key_exists("customImage"$context) ? $context["customImage"] : (function () { throw new RuntimeError('Variable "customImage" does not exist.'24$this->source); })())))) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  92.             // line 25
  93.             yield "            ";
  94.             $context["backgroundImageUrl"] = (isset($context["customImage"]) || array_key_exists("customImage"$context) ? $context["customImage"] : (function () { throw new RuntimeError('Variable "customImage" does not exist.'25$this->source); })());
  95.             // line 26
  96.             yield "        ";
  97.         } elseif ((($tmp $this->env->getFunction('pimcore_file_exists')->getCallable()((Twig\Extension\CoreExtension::constant("PIMCORE_WEB_ROOT") . (isset($context["customImage"]) || array_key_exists("customImage"$context) ? $context["customImage"] : (function () { throw new RuntimeError('Variable "customImage" does not exist.'26$this->source); })())))) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  98.             // line 27
  99.             yield "            ";
  100.             $context["backgroundImageUrl"] = (isset($context["customImage"]) || array_key_exists("customImage"$context) ? $context["customImage"] : (function () { throw new RuntimeError('Variable "customImage" does not exist.'27$this->source); })());
  101.             // line 28
  102.             yield "        ";
  103.         } else {
  104.             // line 31
  105.             yield "            ";
  106.             $context["backgroundImageUrl"] = "/bundles/pimcoreadmin/img/login/pcx.svg";
  107.             // line 32
  108.             yield "        ";
  109.         }
  110.         // line 33
  111.         yield "
  112.         <style type=\"text/css\">
  113.             #background {
  114.                 background-image: url(\"";
  115.         // line 36
  116.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["backgroundImageUrl"]) || array_key_exists("backgroundImageUrl"$context) ? $context["backgroundImageUrl"] : (function () { throw new RuntimeError('Variable "backgroundImageUrl" does not exist.'36$this->source); })()), 36$this->source), "html"nulltrue);
  117.         yield "\");
  118.             }
  119.         </style>
  120.         ";
  121.         // line 40
  122.         $context["customColor"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["config"]) || array_key_exists("config"$context) ? $context["config"] : (function () { throw new RuntimeError('Variable "config" does not exist.'40$this->source); })()), "branding", [], "array"falsefalsetrue40), "color_login_screen", [], "array"falsefalsetrue40);
  123.         // line 41
  124.         yield "        ";
  125.         if ((($tmp = (!Twig\Extension\CoreExtension::testEmpty((isset($context["customColor"]) || array_key_exists("customColor"$context) ? $context["customColor"] : (function () { throw new RuntimeError('Variable "customColor" does not exist.'41$this->source); })())))) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  126.             // line 42
  127.             yield "        <style type=\"text/css\">
  128.             #content button {
  129.                 background: ";
  130.             // line 44
  131.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["customColor"]) || array_key_exists("customColor"$context) ? $context["customColor"] : (function () { throw new RuntimeError('Variable "customColor" does not exist.'44$this->source); })()), 44$this->source), "html"nulltrue);
  132.             yield ";
  133.             }
  134.             #content a {
  135.                 color: ";
  136.             // line 48
  137.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["customColor"]) || array_key_exists("customColor"$context) ? $context["customColor"] : (function () { throw new RuntimeError('Variable "customColor" does not exist.'48$this->source); })()), 48$this->source), "html"nulltrue);
  138.             yield ";
  139.             }
  140.         </style>
  141.         ";
  142.         }
  143.         // line 52
  144.         yield "
  145.         <div id=\"logo\">
  146.             <img src=\"";
  147.         // line 54
  148.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("pimcore_settings_display_custom_logo") . (((($tmp CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["config"]) || array_key_exists("config"$context) ? $context["config"] : (function () { throw new RuntimeError('Variable "config" does not exist.'54$this->source); })()), "branding", [], "array"falsefalsetrue54), "login_screen_invert_colors", [], "array"falsefalsetrue54)) && $tmp instanceof Markup ? (string) $tmp $tmp)) ? ("") : ("?white=true"))), "html"nulltrue);
  149.         yield "\">
  150.         </div>
  151.         <div id=\"content\">
  152.             ";
  153.         // line 58
  154.         yield from         $this->unwrap()->yieldBlock("content"$context$blocks);
  155.         yield "
  156.         </div>
  157.         ";
  158.         // line 61
  159.         if ((array_key_exists("debug"$context) && (isset($context["debug"]) || array_key_exists("debug"$context) ? $context["debug"] : (function () { throw new RuntimeError('Variable "debug" does not exist.'61$this->source); })()))) {
  160.             // line 62
  161.             yield "            <div id=\"github\">
  162.                 <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>
  163.             </div>
  164.             <script async defer src=\"https://buttons.github.io/buttons.js\" ";
  165.             // line 65
  166.             yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["pimcore_csp"]) || array_key_exists("pimcore_csp"$context) ? $context["pimcore_csp"] : (function () { throw new RuntimeError('Variable "pimcore_csp" does not exist.'65$this->source); })()), "getNonceHtmlAttribute", [], "method"falsefalsetrue65), 65$this->source);
  167.             yield "></script>
  168.         ";
  169.         }
  170.         // line 67
  171.         yield "
  172.         ";
  173.         // line 81
  174.         yield "
  175.         <div id=\"contentBackground\"></div>
  176.         <div id=\"background\"></div>
  177.         <div id=\"footer\">
  178.             &copy; 2009-";
  179.         // line 85
  180.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now""Y"), "html"nulltrue);
  181.         yield " <a href=\"http://www.pimcore.org/\">Pimcore GmbH</a><br>
  182.             BE RESPECTFUL AND HONOR OUR WORK FOR FREE & OPEN SOURCE SOFTWARE BY NOT REMOVING OUR COPYRIGHT NOTICE!
  183.             KEEP IN MIND THAT REMOVING THE COPYRIGHT NOTICE IS VIOLATING OUR LICENSING TERMS!
  184.         </div>
  185.         ";
  186.         // line 90
  187.         if (        $this->unwrap()->hasBlock("below_footer"$context$blocks)) {
  188.             // line 91
  189.             yield "            ";
  190.             yield from             $this->unwrap()->yieldBlock("below_footer"$context$blocks);
  191.             yield "
  192.         ";
  193.         }
  194.         // line 93
  195.         yield "
  196.     </body>
  197. </html>
  198. ";
  199.         
  200.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  201.         
  202.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  203.         
  204.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  205.         yield from [];
  206.     }
  207.     /**
  208.      * @codeCoverageIgnore
  209.      */
  210.     public function getTemplateName(): string
  211.     {
  212.         return "@PimcoreAdmin/Admin/Login/layout.html.twig";
  213.     }
  214.     /**
  215.      * @codeCoverageIgnore
  216.      */
  217.     public function isTraitable(): bool
  218.     {
  219.         return false;
  220.     }
  221.     /**
  222.      * @codeCoverageIgnore
  223.      */
  224.     public function getDebugInfo(): array
  225.     {
  226.         return array (  214 => 93,  208 => 91,  206 => 90,  198 => 85,  192 => 81,  189 => 67,  184 => 65,  179 => 62,  177 => 61,  171 => 58,  164 => 54,  160 => 52,  153 => 48,  146 => 44,  142 => 42,  139 => 41,  137 => 40,  130 => 36,  125 => 33,  122 => 32,  119 => 31,  116 => 28,  113 => 27,  110 => 26,  107 => 25,  104 => 24,  101 => 23,  98 => 22,  96 => 21,  94 => 20,  91 => 19,  89 => 18,  85 => 17,  82 => 16,  71 => 14,  67 => 13,  53 => 1,);
  227.     }
  228.     public function getSourceContext(): Source
  229.     {
  230.         return new Source("<!DOCTYPE html>
  231. <html>
  232.     <head>
  233.         <title>Welcome to Pimcore!</title>
  234.         <meta charset=\"UTF-8\">
  235.         <meta name=\"robots\" content=\"noindex, follow\"/>
  236.         <link rel=\"icon\" type=\"image/png\" href=\"/bundles/pimcoreadmin/img/favicon/favicon-32x32.png\"/>
  237.         <link rel=\"stylesheet\" href=\"/bundles/pimcoreadmin/css/login.css\" type=\"text/css\"/>
  238.         {% for pluginCssPath in pluginCssPaths %}
  239.             <link rel=\"stylesheet\" type=\"text/css\" href=\"{{ pluginCssPath }}?_dc={{ 'now'|date('U') }}\"/>
  240.         {% endfor %}
  241.     </head>
  242.     <body class=\"pimcore_version_10 {{ config['branding']['login_screen_invert_colors'] ? 'inverted' : '' }}\">
  243.         {% set backgroundImageUrl = \"\" %}
  244.         {% set customImage = config['branding']['login_screen_custom_image'] %}
  245.         {# https://github.com/pimcore/pimcore/issues/8016 #}
  246.         {# https://github.com/pimcore/pimcore/issues/8129 #}
  247.         {% if customImage matches '@^https?://@' %}
  248.             {% set backgroundImageUrl = customImage %}
  249.         {% elseif pimcore_file_exists(constant('PIMCORE_WEB_ROOT') ~ '/var/assets' ~ customImage) %}
  250.             {% set backgroundImageUrl = customImage %}
  251.         {% elseif pimcore_file_exists(constant('PIMCORE_WEB_ROOT') ~ customImage) %}
  252.             {% set backgroundImageUrl = customImage %}
  253.         {% else %}
  254. {#            {% set defaultImages = ['pimconaut-ecommerce.svg', 'pimconaut-world.svg', 'pimconaut-engineer.svg', 'pimconaut-moon.svg', 'pimconaut-rocket.svg'] %}#}
  255. {#            {% set backgroundImageUrl = '/bundles/pimcoreadmin/img/login/' ~ random(defaultImages) %}#}
  256.             {% set backgroundImageUrl = '/bundles/pimcoreadmin/img/login/pcx.svg' %}
  257.         {% endif %}
  258.         <style type=\"text/css\">
  259.             #background {
  260.                 background-image: url(\"{{ backgroundImageUrl }}\");
  261.             }
  262.         </style>
  263.         {% set customColor = config['branding']['color_login_screen'] %}
  264.         {% if (customColor is not empty) %}
  265.         <style type=\"text/css\">
  266.             #content button {
  267.                 background: {{ customColor }};
  268.             }
  269.             #content a {
  270.                 color: {{ customColor }};
  271.             }
  272.         </style>
  273.         {% endif %}
  274.         <div id=\"logo\">
  275.             <img src=\"{{ path('pimcore_settings_display_custom_logo') ~ (config['branding']['login_screen_invert_colors'] ? '' : '?white=true') }}\">
  276.         </div>
  277.         <div id=\"content\">
  278.             {{ block('content') }}
  279.         </div>
  280.         {% if debug is defined and debug %}
  281.             <div id=\"github\">
  282.                 <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>
  283.             </div>
  284.             <script async defer src=\"https://buttons.github.io/buttons.js\" {{ pimcore_csp.getNonceHtmlAttribute()|raw }}></script>
  285.         {% endif %}
  286.         {#
  287.             <div id=\"news\">
  288.                 <h2>News</h2>
  289.                 <hr>
  290.                 <p>
  291.                     <a href=\"#\">Where is Master Data Management Heading in the Future?</a>
  292.                 </p>
  293.                 <hr>
  294.                 <p>
  295.                     <a href=\"#\">Priint and Pimcore announce technology partnership to ease publishing workflows</a>
  296.                 </p>
  297.             </div>
  298.         #}
  299.         <div id=\"contentBackground\"></div>
  300.         <div id=\"background\"></div>
  301.         <div id=\"footer\">
  302.             &copy; 2009-{{ \"now\"|date(\"Y\") }} <a href=\"http://www.pimcore.org/\">Pimcore GmbH</a><br>
  303.             BE RESPECTFUL AND HONOR OUR WORK FOR FREE & OPEN SOURCE SOFTWARE BY NOT REMOVING OUR COPYRIGHT NOTICE!
  304.             KEEP IN MIND THAT REMOVING THE COPYRIGHT NOTICE IS VIOLATING OUR LICENSING TERMS!
  305.         </div>
  306.         {% if block('below_footer') is defined %}
  307.             {{ block('below_footer') }}
  308.         {% endif %}
  309.     </body>
  310. </html>
  311. ""@PimcoreAdmin/Admin/Login/layout.html.twig""/var/www/vendor/pimcore/pimcore/bundles/AdminBundle/Resources/views/Admin/Login/layout.html.twig");
  312.     }
  313.     
  314.     public function checkSecurity()
  315.     {
  316.         static $tags = ["for" => 13"set" => 18"if" => 22];
  317.         static $filters = ["escape" => 14"date" => 14"raw" => 65];
  318.         static $functions = ["pimcore_file_exists" => 24"constant" => 24"path" => 54];
  319.         try {
  320.             $this->sandbox->checkSecurity(
  321.                 ['for''set''if'],
  322.                 ['escape''date''raw'],
  323.                 ['pimcore_file_exists''constant''path'],
  324.                 $this->source
  325.             );
  326.         } catch (SecurityError $e) {
  327.             $e->setSourceContext($this->source);
  328.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  329.                 $e->setTemplateLine($tags[$e->getTagName()]);
  330.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  331.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  332.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  333.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  334.             }
  335.             throw $e;
  336.         }
  337.     }
  338. }