templates/modules/header/header_title_and_link.twig line 1

Open in your IDE?
  1. {% set search_location = search_location ?: false %}
  2. {% set title = title ?: false %}
  3. {% set all_city = all_citt ?: false %}
  4. {% set result = result ?: false %}
  5. {% set link_text = link_text ?: false %}
  6. {% set link = link ?: false %}
  7. <header class="headerTitleAndLink">
  8.   <div class="headerTitleAndLink-group grid-x align-middle">
  9.     <h2 class="headerTitleAndLink-group-title">
  10.       {% if search_location %}
  11.       {% if city %}
  12.       Tous les {{title}} à proximité {{search_location}}
  13.       {% else %}
  14.       Tous les {{title|raw}}
  15.       {% endif %}
  16.       {% elseif all_city %}
  17.       {{title}} par ville
  18.       {% else %}
  19.       {{title|raw}}
  20.       {% endif %}
  21.     </h2>
  22.     {% if result %}
  23.     <p class="headerTitleAndLink-group-result"> {{ result }} résultats</p>
  24.     {% endif %}
  25.   </div>
  26.   {% if link_text %}
  27.   <a href="{{link}}" class="headerTitleAndLink-link">
  28.     <span class="headerTitleAndLink-link-text">{{link_text}}</span>
  29.     <img class="headerTitleAndLink-link-image" src="{{ asset('images/svg/arrowIcon_smallblue.svg') }}" />
  30.   </a>
  31.   {% endif %}
  32. </header>