vendor/pimcore/pimcore/bundles/AdminBundle/Resources/views/Admin/Login/layout.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <title>Welcome to Pimcore!</title>
  5.         <meta charset="UTF-8">
  6.         <meta name="robots" content="noindex, follow"/>
  7.         <link rel="icon" type="image/png" href="/bundles/pimcoreadmin/img/favicon/favicon-32x32.png"/>
  8.         <link rel="stylesheet" href="/bundles/pimcoreadmin/css/login.css" type="text/css"/>
  9.         {% for pluginCssPath in pluginCssPaths %}
  10.             <link rel="stylesheet" type="text/css" href="{{ pluginCssPath }}?_dc={{ 'now'|date('U') }}"/>
  11.         {% endfor %}
  12.     </head>
  13.     <body class="pimcore_version_10 {{ config['branding']['login_screen_invert_colors'] ? 'inverted' : '' }}">
  14.         {% set backgroundImageUrl = "" %}
  15.         {% set customImage = config['branding']['login_screen_custom_image'] %}
  16.         {# https://github.com/pimcore/pimcore/issues/8016 #}
  17.         {# https://github.com/pimcore/pimcore/issues/8129 #}
  18.         {% if customImage matches '@^https?://@' %}
  19.             {% set backgroundImageUrl = customImage %}
  20.         {% elseif pimcore_file_exists(constant('PIMCORE_WEB_ROOT') ~ '/var/assets' ~ customImage) %}
  21.             {% set backgroundImageUrl = customImage %}
  22.         {% elseif pimcore_file_exists(constant('PIMCORE_WEB_ROOT') ~ customImage) %}
  23.             {% set backgroundImageUrl = customImage %}
  24.         {% else %}
  25. {#            {% set defaultImages = ['pimconaut-ecommerce.svg', 'pimconaut-world.svg', 'pimconaut-engineer.svg', 'pimconaut-moon.svg', 'pimconaut-rocket.svg'] %}#}
  26. {#            {% set backgroundImageUrl = '/bundles/pimcoreadmin/img/login/' ~ random(defaultImages) %}#}
  27.             {% set backgroundImageUrl = '/bundles/pimcoreadmin/img/login/pcx.svg' %}
  28.         {% endif %}
  29.         <style type="text/css">
  30.             #background {
  31.                 background-image: url("{{ backgroundImageUrl }}");
  32.             }
  33.         </style>
  34.         {% set customColor = config['branding']['color_login_screen'] %}
  35.         {% if (customColor is not empty) %}
  36.         <style type="text/css">
  37.             #content button {
  38.                 background: {{ customColor }};
  39.             }
  40.             #content a {
  41.                 color: {{ customColor }};
  42.             }
  43.         </style>
  44.         {% endif %}
  45.         <div id="logo">
  46.             <img src="{{ path('pimcore_settings_display_custom_logo') ~ (config['branding']['login_screen_invert_colors'] ? '' : '?white=true') }}">
  47.         </div>
  48.         <div id="content">
  49.             {{ block('content') }}
  50.         </div>
  51.         {% if debug is defined and debug %}
  52.             <div id="github">
  53.                 <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>
  54.             </div>
  55.             <script async defer src="https://buttons.github.io/buttons.js" {{ pimcore_csp.getNonceHtmlAttribute()|raw }}></script>
  56.         {% endif %}
  57.         {#
  58.             <div id="news">
  59.                 <h2>News</h2>
  60.                 <hr>
  61.                 <p>
  62.                     <a href="#">Where is Master Data Management Heading in the Future?</a>
  63.                 </p>
  64.                 <hr>
  65.                 <p>
  66.                     <a href="#">Priint and Pimcore announce technology partnership to ease publishing workflows</a>
  67.                 </p>
  68.             </div>
  69.         #}
  70.         <div id="contentBackground"></div>
  71.         <div id="background"></div>
  72.         <div id="footer">
  73.             &copy; 2009-{{ "now"|date("Y") }} <a href="http://www.pimcore.org/">Pimcore GmbH</a><br>
  74.             BE RESPECTFUL AND HONOR OUR WORK FOR FREE & OPEN SOURCE SOFTWARE BY NOT REMOVING OUR COPYRIGHT NOTICE!
  75.             KEEP IN MIND THAT REMOVING THE COPYRIGHT NOTICE IS VIOLATING OUR LICENSING TERMS!
  76.         </div>
  77.         {% if block('below_footer') is defined %}
  78.             {{ block('below_footer') }}
  79.         {% endif %}
  80.     </body>
  81. </html>