var/cache/dev/twig/ad/ade499f306636ca874b2d1be4bc18d92.php line 95

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