templates/pages/_includes/base/search_bar/_hero_section.html.twig line 1

Open in your IDE?
  1. {% if content.heroSectionIsHidden is defined and content.heroSectionIsHidden %}
  2. {# Afficher search_bar_alone si heroSectionHidden est true #}
  3. <div class="search-bar-alone">
  4. {% include 'pages/_includes/base/search_bar/_search_bar_custom.html.twig' %}
  5. </div>
  6. {% else %}
  7. {# Afficher le snippet hero_section + barre de recherche si heroSectionHidden est false ou non défini #}
  8. {% if content.heroSectionSnippet is defined and content.heroSectionSnippet is not null and content.heroSectionSnippet is not empty %}
  9. {# Afficher le carousel hero_section #}
  10. <div class="container-fluid">
  11. <div class="row">
  12. <div class="col-lg-1 col-md-12 col-sm-12 col-xs-12"></div>
  13. <div class="col-lg-10 col-md-12 col-sm-12 col-xs-12">
  14. {% include '_snippets/hero_section.html.twig' with {'heroSection': content.heroSectionSnippet} %}
  15. </div>
  16. <div class="col-lg-1 col-md-12 col-sm-12 col-xs-12"></div>
  17. </div>
  18. </div>
  19. {% endif %}
  20. {# Afficher la barre de recherche personnalisée #}
  21. {% if content.heroSectionSnippet is defined and content.heroSectionSnippet is not null and content.heroSectionSnippet is not empty %}
  22. {# Si un hero section est défini, ajouter une classe pour la superposition #}
  23. <div class="search-bar-with-hero">
  24. {% include 'pages/_includes/base/search_bar/_search_bar_custom.html.twig' %}
  25. </div>
  26. {% elseif content.url is defined and content.url starts with '/espace-personnel' %}
  27. {# Ajouter une liste des page sans moteur de recherche, la personnalisation du moteur de recherche se fera quand via sulu et les snippets #}
  28. {% else %}
  29. <div class="search-bar-alone">
  30. {% include 'pages/_includes/base/search_bar/_search_bar_custom.html.twig' %}
  31. </div>
  32. {% endif %}
  33. {% endif %}