templates/alumni/detail.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block page_contents %}
  3. <section class="section section-page-title position-relative mb-xl-5 mb-4" data-aos='fade-down'>
  4.   <div class="bg-gradient pt-5 pb-4 t-0 l-0 w-100">
  5.     <div class="container">
  6.       <div class="row">
  7.         <div class="col-xl-10 mx-auto text-white">
  8.           <div class="a-box pt-md-5 pt-0">
  9.             <h1 class="page-name font-weight-bold mb-4">{{ alumni.title }}</h1>
  10.             <div class="a-time justify-content-md-start justify-content-end">
  11.               <div class="a-icon"><i class="fa-solid fa-calendar-week"></i></div>
  12.               <div class="a-text">{{ alumni.createdDate|date('d M Y') }}</div>
  13.             </div>
  14.           </div>
  15.         </div>
  16.       </div>
  17.     </div>
  18.   </div>
  19.   <div class="section-page-img position-relative pt-md-5 pt-4" data-aos='fade-right'>
  20.     <div class="container">
  21.       <div class="row">
  22.         <div class="col-12">
  23.           <img src="{{ alumni.photoUrl }}" onerror="this.onerror=null;this.src='{{ asset('assets/images/no-img/alumni.jpg') }}';">
  24.         </div>
  25.       </div>
  26.     </div>
  27.   </div>
  28. </section>
  29. <section class="section section-page-content" data-aos='fade-up'>
  30.   <div class="container">
  31.     <div class="row">
  32.       {% if alumni.video %}
  33.       <div class="col-xl-10 mx-auto mb-xl-5 mb-4">
  34.         <div class="embed-responsive embed-responsive-16by9 hvr-glow">
  35.           <iframe loading="lazy" class="embed-responsive-item" src="{{ alumni.video | extractYoutubeId }}?rel=0" allowfullscreen></iframe>
  36.         </div>
  37.       </div>
  38.       {% endif %}
  39.       <div class="col-xl-11 mx-auto keepEditorStyle mb-0">
  40.         {{ alumni.content|raw }}
  41.       </div>
  42.       <div class="col-xl-11 mx-auto text-left back-link mb-xl-5 mb-4">
  43.         <a href="{{path('alumni_index')}}"><i class="fa-solid fa-arrow-left font-12"></i>{% trans %}Retour{% endtrans %}</a>
  44.       </div>
  45.     </div>
  46.   </div>
  47. </section>
  48. {% endblock %}
  49. {% block custom_javascripts %}
  50. {{ '<script type="application/ld+json">'|raw }}
  51. {{ richSnippets|json_encode | raw }}
  52. {{ '</script>'|raw }}
  53. {% endblock %}