templates/front/front_page/bloc-document.html.twig line 1

Open in your IDE?
  1. <section data-bs-version="5.1" class="blocDocument {{ bloc.bloc_margin_top }} {{ bloc.bloc_margin_bottom }}"
  2.          id="document">
  3.     <div class="container p-2 {{ bloc.bloc_margin_top }} {{ bloc.bloc_margin_bottom }}">
  4.         <div class="row m-5 justify-content-center">
  5.             <div class="col-md-12 col-lg-11 d-flex align-items-center flex-column">
  6.                 {% if bloc.bloc_titre or bloc.bloc_sstitre %}
  7.                     <div class="section-head">
  8.                         {% if bloc.bloc_titre %}
  9.                             <h3 class="mbr-section-title mbr-fonts-style display-2 text-center">
  10.                                 <strong>{{ bloc.bloc_titre }}</strong>
  11.                             </h3>
  12.                         {% endif %}
  13.                         {% if bloc.bloc_sstitre %}
  14.                             <h4 class="flechebash4 mbr-section-subtitle mbr-fonts-style display-5 text-center">
  15.                                 {{ bloc.bloc_sstitre }}
  16.                             </h4>
  17.                         {% endif %}
  18.                     </div>
  19.                 {% endif %}
  20.                 <div class="d-flex flex-column flex-lg-row justify-content-center align-items-center divDocu">
  21.                     {% for doc in medias %}
  22.                         <a class="btn btn-primary" href="{{ asset('medias_front/pages/'~doc.media_fichier) }}"
  23.                            onclick="ga('send', 'event', 'Downloads', 'Pages', '{$doc.media_fichier}');" target="_blank"
  24.                            rel="noreferrer">
  25.                             <span>{{ doc.media_alt|default(doc.media_fichier) }}</span>
  26.                         </a>
  27.                     {% endfor %}
  28.                 </div>
  29.             </div>
  30.         </div>
  31.     </div>
  32. </section>