templates/editions/details.html.twig line 1

Open in your IDE?
  1. {% extends 'editions/entete_editeur.inc.html.twig' %}
  2. {% block subcontent %}
  3. <main class="tc-desktop-2_3  tc-phone-1_1">
  4.     {% if comment is defined and comment %}
  5.     <section class="tc-panel">
  6.         <div class="tc-panel-header">
  7.             <h2>Présentation</h2>
  8.         </div>
  9.         <div class="tc-panel-body">
  10.             <div class="tc-block">
  11.                 <div class="tc-block-body">
  12.                     {% if comment_tiny is defined and comment_tiny %}
  13.                         {{ comment_tiny|raw }}
  14.                         ...
  15.                         <a href="/editions/{{ url_clean }}/ensavoirplus/">Lire la suite</a>
  16.                     {% else %}
  17.                         {{ comment|raw }}
  18.                     {% endif %}
  19.                 </div>
  20.             </div>
  21.         </div>
  22.     </section>
  23.     {% endif %}
  24.     {% if list_texts is defined and list_texts %}
  25.     <section class="tc-panel tc-textes-tpl-">
  26.         <div class="tc-panel-header">
  27.             <h2>Dernières parutions</h2>
  28.         </div>
  29.         <div class="tc-panel-body tc-masonry-container">
  30.             {% for idtext,text in list_texts %}
  31.             <div class="tc-tablet-1_2 tc-block">
  32.                 {% include 'editions/texte_titre.inc.html.twig' %}
  33.             </div>
  34.             {% endfor %}
  35.          </div>
  36.         <div class="tc-panel-footer">
  37.             <a class="tc-more-link" href="/editions/{{ url_clean }}/textes/">Tous les textes</a>
  38.         </div>
  39.     </section>
  40.     {% endif %}
  41.     {% if spectacles_affiche is defined and spectacles_affiche %}
  42.     <section class="tc-panel tc-spectacles-tpl-a">
  43.         <div class="tc-panel-header">
  44.             <h2>Spectacles à l'affiche</h2>
  45.         </div>
  46.         <div class="tc-panel-body">
  47.             {% for idspectacle,spectacle in spectacles_affiche %}
  48.                 <div class="tc-tablet-1_2 tc-block">
  49.                     {% include 'spectacles/spectacle_titre.inc.html.twig' %}
  50.                 </div>
  51.             {% endfor %}
  52.          </div>
  53.         <div class="tc-panel-footer">
  54.             <a class="tc-more-link" href="/editions/{{ url_clean }}/spectacles/type/prochains">Tous les spectacles à l'affiche</a>
  55.         </div>
  56.     </section>
  57.     {% endif %}
  58.     {% if videos_affiches is defined and videos_affiches %}
  59.     <section class="tc-panel tc-spectacles-tpl-a">
  60.         <div class="tc-panel-header">
  61.             <h2>Spectacles avec vidéos à l'affiche</h2>
  62.         </div>
  63.         <div class="tc-panel-body">
  64.             {% for idmultimedia,video in videos_affiches %}
  65.                 <div class="tc-tablet-1_2 tc-block">
  66.                     {% include 'videos/video_titre_v2.inc.html.twig' %}
  67.                 </div>
  68.             {% endfor %}
  69.         </div>
  70.         <div class="tc-panel-footer">
  71.             <a class="tc-more-link" href="/editions/{{ url_clean }}/videos/">Tous les spectacles avec vidéos</a>
  72.         </div>
  73.     </section>
  74.     {% endif %}
  75.     {% if dernieres_critiques is defined and dernieres_critiques %}
  76.     <section class="tc-panel">
  77.         <div class="tc-panel-header">
  78.             <h2>Dernières critiques</h2>
  79.         </div>
  80.         <div class="tc-panel-body tc-masonry-container">
  81.             {% for id,critique in dernieres_critiques %}
  82.             <div class="tc-block tc-tablet-1_2 tc-spectacles-tpl-b tc-critiques-tpl-a">
  83.                 {% include '/critiques/critique_titre_simple.inc.html.twig' %}
  84.             </div>
  85.             {% endfor %}
  86.         </div>
  87.         <div class="tc-panel-footer">
  88.             <a href="/critiques/spectacles" class="tc-more-link">Toutes les critiques</a>
  89.         </div>
  90.     </section>
  91.     {% endif %}
  92.     {% if videos_last_publish is defined and videos_last_publish %}
  93.     <section class="tc-panel tc-spectacles-tpl-b">
  94.         <div class="tc-panel-header">
  95.             <h2>Dernières vidéos ajoutées</h2>
  96.             <h3>En partenariat avec {{ data_object.fullname }}</h3>
  97.         </div>
  98.         <div class="tc-panel-body tc-textes-tpl- tc-masonry-container" style="margin-bottom: 1em;">
  99.             {% for idmultimedia,video in videos_last_publish %}
  100.             <div class="tc-block tc-tablet-1_2 tc-videos-tpl-a" style="margin:0.5em 0;">
  101.                 {% include 'videos/video_titre_mini.inc.html.twig' %}
  102.             </div>
  103.             {% endfor %}
  104.         </div>
  105.         <div class="tc-panel-footer">
  106.             <a href="/editions/{{ data_object.url_clean }}/videos/type/partenariat/" class="tc-more-link">Toutes les vidéos en partenariat</a>
  107.         </div>
  108.     </section>
  109.     {% endif %}
  110. </main>
  111. {% endblock %}