templates/platform/component/organism/theme_default_security_header.html.twig line 1

Open in your IDE?
  1. {% if componentKey is not defined %}
  2.         {% set componentKey = "theme_default_security_header" %}
  3. {% endif %}
  4. <div id="security-background"
  5.      class="position-fixed w-100 vh-100{% if value.background.class is not same as("") %} {{ value.background.class }}{% endif %}"
  6.      style="z-index: -5;{% if value.background.image not in [null ,''] %}background-image: url({{ path('static_project_file', {'fileName': value.background.image}) }});{% endif %} {% if value.background.color is not same as(null) %}background-color: {{value.background.color}};{% endif %}"
  7. >
  8. </div>
  9. <header class="security-header{% if value.class is defined %} {{ value.class }} {% endif %}">
  10.     {% if value.container is defined %}
  11.         <div class="{{ value.container }}">
  12.     {% endif %}
  13.         {% if value.banner is defined and value.banner.enabled %}
  14.                 <div class="security-header-banner">
  15.                         <img src="{{ path('static_project_file', {'fileName': value.banner.url}) }}"
  16.                              alt="{{ value.banner.alt|trans }}"
  17.                              class=" img-fluid {% if value.banner.class is defined %} {{ value.banner.class }}{% endif %}">
  18.                 </div>
  19.         {% endif %}
  20.                 {% if value.logo is defined and value.logo.url not in [null ,''] %}
  21.                         {% set logo_config = generateComponentOptions(value.logo, componentKey ~'.logo')%}
  22.                         {% if canDisplayComponentByAcl( logo_config) %}
  23.                                 <img src="{{ path('static_project_file', {'fileName': value.logo.url}) }}"
  24.                                      alt="{{ value.logo.alt|trans }}"
  25.                                      class="logo{% if value.logo.class is defined %} {{ value.logo.class }}{% endif %}">
  26.                         {% endif %}
  27.                 {% endif %}
  28.         {% if value.sub_title is defined %}
  29.             {% if value.sub_title.enabled %}
  30.                 <div class="{% if value.sub_title.class %}{{ value.sub_title.class }}{% endif %}">
  31.                     {{ value.sub_title.content|raw }}
  32.                 </div>
  33.             {% endif %}
  34.         {% endif %}
  35.     {% if value.container is defined %}
  36.         </div>
  37.     {% endif %}
  38. </header>