templates/_includes/_header.html.twig line 1

  1. {% if pageTitle is defined and pageTitle != null and pageTitle == 'Home' %}
  2.     {% set heroimage = settings[0].siteHomehero %}
  3. {% elseif pageTitle is defined and pageTitle != null and pageTitle == 'Programme' %}
  4.     {% set heroimage = settings[0].siteProgramhero %}
  5. {% elseif pageTitle is defined and pageTitle != null and pageTitle == 'Entreprises' %}
  6.     {% set heroimage = settings[0].siteEntrepriseshero %}
  7. {% elseif pageTitle is defined and pageTitle != null and pageTitle == 'Contact' %}
  8.     {% set heroimage = settings[0].siteContacthero %}
  9. {% elseif pageTitle is defined and pageTitle != null and pageTitle == 'Offres' %}
  10.     {% set heroimage = settings[0].siteOffreshero %}
  11. {% elseif pageTitle is defined and pageTitle != null and pageTitle == 'Offre-detail' %}
  12.     {% set heroimage = settings[0].siteOffreshero %}
  13. {% else %}
  14.     {% set heroimage = settings[0].siteHomehero %}
  15. {% endif %}
  16. {# <img src="{{ asset('assets/img/pages/' ~ heroimage ) }}" alt="{{ settings[0].siteName }}" class="img-fluid" style="max-height: 100vh; width: 100%; object-fit: cover; filter: brightness(70%)"> #}
  17. {# <div class="col p-0">
  18. </div> #}
  19. <div style="background: url({{ asset('assets/img/pages/' ~ heroimage ) }}) no-repeat center center transparent; background-size: cover; padding: 0 !important;">
  20.     <div style="z-index: 999; height: 100vh; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center;">
  21.         <div class="container">
  22.             <div class="row d-flex justify-content-center">
  23.                 <div class="col-lg-8 col-sm-12">
  24.                     <h1 class="title-barlow-bold" data-aos="fade-right" data-aos-duration="2000">
  25.                         {# Salon<br>Industrie<br>41<br> #}
  26.                         {{ settings[0].siteHomeherotitle|raw }}
  27.                     </h1>
  28.                 </div>
  29.                 <div class="col-lg-2 col-sm-12">
  30.                     <h1 class="barlow title-barlow text-center" data-aos-duration="3000" data-aos="fade-down">
  31.                         {{ settings[0].siteHomesalondatejour }}
  32.                         <p style="font-size: 110px; margin: 30px 0;">{{ settings[0].siteHomesalondatejournb }}</p>
  33.                         {{ settings[0].siteHomesalondatemois }}<br>
  34.                         {{ settings[0].siteHomesalondateannee }}
  35.                     </h1>
  36.                 </div>
  37.             </div>
  38.         </div>
  39.     </div>
  40. </div>
  41. {# <div class="container-fluid header-top sticky-top">
  42.     <div class="container">
  43.         <div class="row navbartop">
  44.             <div class="col">
  45.                 <a class="{% if pageTitle is defined and pageTitle == 'Home' %}active{% endif %}" href="{{ path('app_home') }}">Le Salon</a>
  46.                 <a class="{% if pageTitle is defined and pageTitle == 'Programme' %}active{% endif %}" href="{{ path('app_programme') }}">Programme</a>
  47.                 <a class="{% if pageTitle is defined and pageTitle == 'Entreprises' %}active{% endif %}" href="{{ path('app_entreprises') }}">Entreprises</a>
  48.                 <a class="{% if pageTitle is defined and pageTitle == 'Offres' %}active{% endif %}" href="{{ path('app_offres') }}">Offres</a>
  49.                 <a class="{% if pageTitle is defined and pageTitle == 'Contact' %}active{% endif %}" href="{{ path('app_contact') }}">Contact</a>
  50.                 <a class="" href="#">
  51.                     <svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24"><path fill="currentColor" d="M14 13.5h2.5l1-4H14v-2c0-1.03 0-2 2-2h1.5V2.14c-.326-.043-1.557-.14-2.857-.14C11.928 2 10 3.657 10 6.7v2.8H7v4h3V22h4v-8.5Z"/></svg>
  52.                 </a>
  53.             </div>
  54.         </div>
  55.     </div>
  56. </div> #}
  57. {# <div class="container-fluid header-top sticky-top">
  58.     <div class="container">
  59.         <div class="row navbartop">
  60.             <ul class="nav nav-tabs d-flex justify-content-center">
  61.                 <li class="nav-item">
  62.                     <a class="nav-link {% if pageTitle is defined and pageTitle == 'Home' %}active{% endif %}" href="{{ path('app_home') }}">Le Salon</a>
  63.                 </li>
  64.                 <li class="nav-item">
  65.                     <a class="nav-link {% if pageTitle is defined and pageTitle == 'Programme' %}active{% endif %}" href="{{ path('app_programme') }}">Programme</a>
  66.                 </li>
  67.                 <li class="nav-item">
  68.                     <a class="nav-link {% if pageTitle is defined and pageTitle == 'Entreprises' %}active{% endif %}" href="{{ path('app_entreprises') }}">Entreprises</a>
  69.                 </li>
  70.                 <li class="nav-item">
  71.                     <a class="nav-link {% if pageTitle is defined and pageTitle == 'Offres' %}active{% endif %}" href="{{ path('app_offres') }}">Offres</a>
  72.                 </li>
  73.                 <li class="nav-item">
  74.                     <a class="nav-link {% if pageTitle is defined and pageTitle == 'Contact' %}active{% endif %}" href="{{ path('app_contact') }}">Contact</a>
  75.                 </li>
  76.                 <li class="nav-item">
  77.                     <a class="nav-link text-decoration-none" href="{{ settings[0].siteFacebook }}" target="_blank">
  78.                         <svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24"><path fill="currentColor" d="M14 13.5h2.5l1-4H14v-2c0-1.03 0-2 2-2h1.5V2.14c-.326-.043-1.557-.14-2.857-.14C11.928 2 10 3.657 10 6.7v2.8H7v4h3V22h4v-8.5Z"/></svg>
  79.                     </a>
  80.                 </li>
  81.               </ul>
  82.         </div>
  83.     </div>
  84. </div> #}
  85. <div class="container-fluid header-top sticky-top">
  86.     <div class="container">
  87.         <div class="row navbartop">
  88.             <div class="col d-flex justify-content-center link-container">
  89.                 <a class="{% if pageTitle is defined and pageTitle == 'Home' %}active{% endif %}" href="{{ path('app_home') }}">Le Salon</a>
  90.                 <a class="{% if pageTitle is defined and pageTitle == 'Programme' %}active{% endif %}" href="{{ path('app_programme') }}">Programme</a>
  91.                 <a class="{% if pageTitle is defined and pageTitle == 'Entreprises' %}active{% endif %}" href="{{ path('app_entreprises') }}">Entreprises</a>
  92.                 <a class="{% if pageTitle is defined and pageTitle == 'Offres' %}active{% endif %}" href="{{ path('app_offres',{'page' : 1}) }}">Offres</a>
  93.                 <a class="{% if pageTitle is defined and pageTitle == 'Contact' %}active{% endif %}" href="{{ path('app_contact') }}">Contact</a>
  94.             </div>
  95.         </div>
  96.     </div>
  97. </div>