var/cache/dev/twig/3f/3f66c98f9098e7c7ddf65113d24cbd57.php line 166

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_fa819a9a632947fb426898b93c9db04c 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", null, true);
  55. yield "?_dc=";
  56. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "U"), "html", null, true);
  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->source, CoreExtension::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", false, false, false, 17), "login_screen_invert_colors", [], "array", false, false, false, 17)) && $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->source, CoreExtension::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", false, false, false, 19), "login_screen_custom_image", [], "array", false, false, false, 19);
  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", null, true);
  113. yield "\");
  114. }
  115. </style>
  116. ";
  117. // line 40
  118. $context["customColor"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 40), "color_login_screen", [], "array", false, false, false, 40);
  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", null, true);
  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", null, true);
  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->source, CoreExtension::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", false, false, false, 54), "login_screen_invert_colors", [], "array", false, false, false, 54)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("") : ("?white=true"))), "html", null, true);
  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", null, true);
  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. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  193. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  194. yield from [];
  195. }
  196. /**
  197. * @codeCoverageIgnore
  198. */
  199. public function getTemplateName(): string
  200. {
  201. return "@PimcoreAdmin/Admin/Login/layout.html.twig";
  202. }
  203. /**
  204. * @codeCoverageIgnore
  205. */
  206. public function isTraitable(): bool
  207. {
  208. return false;
  209. }
  210. /**
  211. * @codeCoverageIgnore
  212. */
  213. public function getDebugInfo(): array
  214. {
  215. 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,);
  216. }
  217. public function getSourceContext(): Source
  218. {
  219. return new Source("<!DOCTYPE html>
  220. <html>
  221. <head>
  222. <title>Welcome to Pimcore!</title>
  223. <meta charset=\"UTF-8\">
  224. <meta name=\"robots\" content=\"noindex, follow\"/>
  225. <link rel=\"icon\" type=\"image/png\" href=\"/bundles/pimcoreadmin/img/favicon/favicon-32x32.png\"/>
  226. <link rel=\"stylesheet\" href=\"/bundles/pimcoreadmin/css/login.css\" type=\"text/css\"/>
  227. {% for pluginCssPath in pluginCssPaths %}
  228. <link rel=\"stylesheet\" type=\"text/css\" href=\"{{ pluginCssPath }}?_dc={{ 'now'|date('U') }}\"/>
  229. {% endfor %}
  230. </head>
  231. <body class=\"pimcore_version_10 {{ config['branding']['login_screen_invert_colors'] ? 'inverted' : '' }}\">
  232. {% set backgroundImageUrl = \"\" %}
  233. {% set customImage = config['branding']['login_screen_custom_image'] %}
  234. {# https://github.com/pimcore/pimcore/issues/8016 #}
  235. {# https://github.com/pimcore/pimcore/issues/8129 #}
  236. {% if customImage matches '@^https?://@' %}
  237. {% set backgroundImageUrl = customImage %}
  238. {% elseif pimcore_file_exists(constant('PIMCORE_WEB_ROOT') ~ '/var/assets' ~ customImage) %}
  239. {% set backgroundImageUrl = customImage %}
  240. {% elseif pimcore_file_exists(constant('PIMCORE_WEB_ROOT') ~ customImage) %}
  241. {% set backgroundImageUrl = customImage %}
  242. {% else %}
  243. {# {% set defaultImages = ['pimconaut-ecommerce.svg', 'pimconaut-world.svg', 'pimconaut-engineer.svg', 'pimconaut-moon.svg', 'pimconaut-rocket.svg'] %}#}
  244. {# {% set backgroundImageUrl = '/bundles/pimcoreadmin/img/login/' ~ random(defaultImages) %}#}
  245. {% set backgroundImageUrl = '/bundles/pimcoreadmin/img/login/pcx.svg' %}
  246. {% endif %}
  247. <style type=\"text/css\">
  248. #background {
  249. background-image: url(\"{{ backgroundImageUrl }}\");
  250. }
  251. </style>
  252. {% set customColor = config['branding']['color_login_screen'] %}
  253. {% if (customColor is not empty) %}
  254. <style type=\"text/css\">
  255. #content button {
  256. background: {{ customColor }};
  257. }
  258. #content a {
  259. color: {{ customColor }};
  260. }
  261. </style>
  262. {% endif %}
  263. <div id=\"logo\">
  264. <img src=\"{{ path('pimcore_settings_display_custom_logo') ~ (config['branding']['login_screen_invert_colors'] ? '' : '?white=true') }}\">
  265. </div>
  266. <div id=\"content\">
  267. {{ block('content') }}
  268. </div>
  269. {% if debug is defined and debug %}
  270. <div id=\"github\">
  271. <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>
  272. </div>
  273. <script async defer src=\"https://buttons.github.io/buttons.js\"></script>
  274. {% endif %}
  275. {#
  276. <div id=\"news\">
  277. <h2>News</h2>
  278. <hr>
  279. <p>
  280. <a href=\"#\">Where is Master Data Management Heading in the Future?</a>
  281. </p>
  282. <hr>
  283. <p>
  284. <a href=\"#\">Priint and Pimcore announce technology partnership to ease publishing workflows</a>
  285. </p>
  286. </div>
  287. #}
  288. <div id=\"contentBackground\"></div>
  289. <div id=\"background\"></div>
  290. <div id=\"footer\">
  291. &copy; 2009-{{ \"now\"|date(\"Y\") }} <a href=\"http://www.pimcore.org/\">Pimcore GmbH</a><br>
  292. BE RESPECTFUL AND HONOR OUR WORK FOR FREE & OPEN SOURCE SOFTWARE BY NOT REMOVING OUR COPYRIGHT NOTICE!
  293. KEEP IN MIND THAT REMOVING THE COPYRIGHT NOTICE IS VIOLATING OUR LICENSING TERMS!
  294. </div>
  295. {% if block('below_footer') is defined %}
  296. {{ block('below_footer') }}
  297. {% endif %}
  298. </body>
  299. </html>
  300. ", "@PimcoreAdmin/Admin/Login/layout.html.twig", "/home/pim/pim-world/vendor/pimcore/pimcore/bundles/AdminBundle/Resources/views/Admin/Login/layout.html.twig");
  301. }
  302. }