var/cache/dev/twig/4b/4ba012fcd716b18cffa0ad488873976e.php line 38

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