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