templates/Frontend/Render/Block/_profs.html.twig line 1

Open in your IDE?
  1. <div class="container position-relative">
  2.     {% if list_profs is not empty %}
  3.         <div class="row">
  4.             {% for prof in list_profs %}
  5.                 <div class="col-lg-4 col-sm-6">
  6.                     <div class="item_members">
  7.                         {% if prof.image is not empty %}
  8.                             <img class="img-fluid" src="{{ asset (vich_uploader_asset(prof,'imageFile')) }}" alt="{{prof}}">
  9.                         {% else %}
  10.                             <img class="img-fluid" src="/assets/img/no_image.png" alt="{{prof.nom}}">
  11.                         {% endif %}
  12.                         <div class="info_members">
  13.                             <div>
  14.                                 <h3>{{prof}}</h3>
  15.                                 <label>{{prof.mission}} <span>{{prof.specialite}}</span></label>
  16.                             </div>
  17.                             {% if prof.link is not empty %}
  18.                                 <a href="{{prof.link}}" target="_blank"><img src="/assets/img/link.png" alt="website"></a>
  19.                             {% elseif prof.linkedin is not empty %}
  20.                                 <a href="{{prof.linkedin}}" target="_blank"><img src="/assets/img/linkedin.png" alt="linkedin"></a>
  21.                             {% endif %}
  22.                         </div>
  23.                     </div>
  24.                 </div>
  25.             {% endfor %}
  26.             
  27.         </div>
  28.     {% else %}
  29.         <div class="container">
  30.             <p>nothing</p>
  31.         </div>
  32.     {% endif %}
  33. </div>