var/cache/dev/twig/53/530ac42d41367ee6ef324602c80a5659.php line 35

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