templates/profile/home.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Profil{% endblock %}
  3. {% block body %}
  4.     {% block block_navstart %} {% include "_partials/_nav.html.twig" %} {% endblock %}
  5.     
  6.     <div class="container">
  7.         <div class="row">
  8.             <div class="col-12 border border-light my-0">
  9.                 {% for userP in userProfil %}    
  10.                     {% if userP.autorisation == 1 %}
  11.                         {% include "_partials/_profilenav.html.twig" %} 
  12.             </div>
  13.         
  14.             <div class="col-12 border border-light my-0">
  15.                 <p><img class="img-fluid img-couverture" src="{{ asset('uploads/images/' ~ userP.imageCouverture) }}" 
  16.                             alt="Photo Couverture" class="img-thumbnail" style="max-width: 100%; max-height: 300px;" /></p>
  17.                     {% else %}
  18.                         <p class="h1" style="color:#FF0000;"><strong>Profil masqué</strong></p>
  19.                     {% endif %}
  20.                 {% endfor %}
  21.                 <h1><strong>Nos services:</strong></h1>
  22.                 <div>
  23.                 {% for userP in userProfil %}
  24.                     {% if userP.autorisation == 1 %}
  25.                         {% for prestation in userPrestations %}
  26.                             <h3>{{ prestation.name}}</h3>
  27.                             <p>{{ prestation.description }}</p>
  28.                         {% endfor %}
  29.                     {% else %}
  30.                         <p class="h1" style="color:#FF0000;">Services masqués</p>
  31.                     {% endif %}
  32.                 {% endfor %}
  33.                 </div>
  34.             </div>
  35.             <div class="col-12 border border-light bg-light my-0">
  36.                 {% for reseauU in reseauxUser %}
  37.                     <a target="_blanc" href="{{ reseauU.siteWeb }}" class="btn btn-link"><i class="fa-solid fa-browser fa-2x"></i>lien Web</a>
  38.                     <a target="_blanc" href="{{ reseauU.mediaSocial1 }}" class="btn btn-link"><i class="fa-brands fa-facebook fa-2x"></i>{{ reseauU.mediaSocialName1 }}</a>
  39.                     <a target="_blanc" href="{{ reseauU.mediaSocial2 }}" class="btn btn-link"><i class="fa-brands fa-youtube fa-2x"></i>{{ reseauU.mediaSocialName2 }}</a>
  40.                     <a target="_blanc" href="{{ reseauU.mediaSocial3 }}" class="btn btn-link"><i class="fa-brands fa-tiktok fa-2x"></i>{{ reseauU.mediaSocialName3 }}</a>
  41.                     <a target="_blanc" href="{{ reseauU.mediaSocial4 }}" class="btn btn-link"><i class="fa-brands fa-twitter fa-2x"></i>{{ reseauU.mediaSocialName4 }}</a>
  42.                     <a target="_blanc" href="{{ reseauU.mediaSocial5 }}" class="btn btn-link"><i class="fa-brands fa-instagram fa-2x"></i>{{ reseauU.mediaSocialName5 }}</a>
  43.                 {% endfor %}
  44.             </div>
  45.         </div>
  46.     </div>
  47. {% endblock %}