templates/fiche/_includes/etablissements-proches-prospect.html.twig line 1

Open in your IDE?
  1. {% if etablissementsProches | length %}
  2.     <h3 class="etabs-proches-prospect-title">Autres établissements à proximité</h3>
  3.     <div class="etabs-proches-prospect">
  4.         {% for proche in etablissementsProches %}
  5.             {% set urlFiche = pathBuilder.buildFiche(proche) %}
  6.             {% set urlPhoto = proche.isClient and proche.imagesDiaporama is not empty ? (proche.imagesDiaporama | first) %}
  7.             {% set distance = etablissement | etabDistance(proche) %}
  8.             <div class="item">
  9.                 <div class="block-image">
  10.                     {% if urlPhoto %}
  11.                         <img class="resp" src="{{ asset('images/jouve/photo/' ~ urlPhoto) | imagine_filter('diapo_list') }}" alt="{{ proche.denomination }}" data-href="{{ urlFiche }}">
  12.                     {% else %}
  13.                         <span class="no-logo"></span>
  14.                     {% endif %}
  15.                     {% if distance is not empty %}
  16.                         <span class="distance">à {{ distance }}</span>
  17.                     {% endif %}
  18.                 </div>
  19.                 <div data-href="{{ urlFiche }}" class="block-description">
  20.                     <a href="{{ urlFiche }}" class="title">
  21.                         {{ proche.denomination | u.truncate(45, '…', true) }}
  22.                     </a>
  23.                     {% if proche.ville %}
  24.                         <div class="address">
  25.                             {{ proche.ville | lieuLibelle }}
  26.                         </div>
  27.                     {% endif %}
  28.                     {% include '_includes/lien-masque.html.twig' with {
  29.                         'target': urlFiche,
  30.                         'content': "Consulter la fiche",
  31.                     } only %}
  32.                 </div>
  33.             </div>
  34.         {% endfor %}
  35.     </div>
  36. {% endif %}