templates/regions/actualites.html.twig line 1

Open in your IDE?
  1. {% extends 'templates.html.twig' %}
  2. {% block content %}
  3. <section class="tc-header row">
  4.     <header class="tc-panel">
  5.         <div class="tc-panel-header">
  6.             <h1>
  7.                 {% if country_name is defined and country_name %}
  8.                      {{ country_name|raw }}
  9.                 {% else %}
  10.                     région {{ region_name|raw }}
  11.                 {% endif %}
  12.             </h1>
  13.         </div>
  14.     </header>
  15.     {% for idaside,aside_content in aside_top %}
  16.         {% include aside_content.html~".twig" %}
  17.     {% endfor %}
  18. </section>
  19. {% include 'includes/navigation.inc.html.twig' %}
  20. <main class="tc-desktop-2_3 tc-phone-1_1">
  21. {% if video_tete is defined and video_tete  %}
  22. <section class="tc-panel">
  23.     <div class="tc-panel-header">
  24.         <h2>À la Une &amp; en vidéo</h2>
  25.     </div>
  26.     {% for video in video_tete %}
  27.     <div class="tc-panel-body">
  28.         <div class="tc-block">
  29.             <div class="tc-block-body tc-no-padding-mobile">
  30.                 <div class="tc-video-16_9">
  31.                     <iframe id="iframe_thtv" title="iframe pour le lecteur vidéo de théatre-contemporain : {{ video.sujet_titre }}" src="/embed/{{ video.code }}?no_title&autostart" allow="fullscreen"></iframe>
  32.                 </div>
  33.                 <div class="tc-block-body-text">
  34.                     {% if video.spectacles is defined and video.spectacles %}
  35.                         {% for k,v in video.spectacles %}
  36.                         <a href="/spectacles/{{ v.url_clean }}/videos/{{ video.url_clean }}">{{ video.sujet_titre }}</a>
  37.                         {% endfor %}
  38.                     {% else %}
  39.                         <a href="/video/{{ video.url_clean }}">{{ video.sujet_titre }}</a>
  40.                     {% endif %}
  41.                 </div>
  42.             </div>
  43.         </div>
  44.     </div>
  45.     <div class="tc-panel-footer">
  46.         {% for k,v in video.spectacles %}
  47.             <a href="/spectacles/{{ v.url_clean }}" class="tc-more-link">Plus d'infos</a>
  48.         {% endfor %}
  49.     </div>
  50.     {% endfor %}
  51.     <!--<div class="tc-panel-footer">-->
  52.         <!--{if:video_tete[spectacle]}-->
  53.         <!--<a href="/spectacles/{video_tete[spectacle][url_clean]}/videos" class="tc-more-link">Plus d'infos</a>-->
  54.         <!--{else:}-->
  55.         <!--{foreach:video_tete[media],video}-->
  56.         <!--<a href="/video/{video[url_clean]}" class="tc-more-link">Plus d'infos</a>-->
  57.         <!--{end:}-->
  58.         <!--{end:}-->
  59.     <!--</div>-->
  60. </section>
  61. {% endif %}
  62. {% if spectacles_affiche is defined and spectacles_affiche %}
  63. <section class="tc-panel">
  64.     <div class="tc-panel-header">
  65.         <h2>Prochainement à l'affiche</h2>
  66.     </div>
  67.     <div class="tc-panel-body tc-masonry-container tc-spectacles-tpl-b">
  68.         {% for idspectacle,spectacle in spectacles_affiche %}
  69.         <div class="tc-block tc-tablet-1_2 tc-spectacles-tpl-b">
  70.             {% include '/spectacles/spectacle_titre.inc.html.twig' %}
  71.         </div>
  72.         {% endfor %}
  73.     </div>
  74.     <div class="tc-panel-footer">
  75.         <a href="/spectacles/theatre/region/area/{{ area }}" class="tc-more-link">Tous les spectacles</a>
  76.     </div>
  77. </section>
  78. {% endif %}
  79. {% if videos_affiche is defined and videos_affiche is not empty %}
  80. <section class="tc-panel">
  81.     <div class="tc-panel-header">
  82.         <h2>À l'affiche &amp; en vidéo</h2>
  83.     </div>
  84.     <div class="tc-panel-body tc-masonry-container tc-spectacles-tpl-b">
  85.         {% for idmultimedia,video in videos_affiche %}
  86.         <div class="tc-block tc-tablet-1_2">
  87.             {% include '/videos/video_titre_v2.inc.html.twig' %}
  88.         </div>
  89.         {% endfor %}
  90.     </div>
  91.     <div class="tc-panel-footer">
  92.         <a href="/spectacles/theatre/region-videos/area/{{ area }}?d=365&idtypestructure=ALL" class="tc-more-link">Tous les spectacles</a>
  93.     </div>
  94. </section>
  95. {% endif %}
  96. {% if persons is defined and persons is not empty %}
  97. <section class="tc-panel tc-bg-extralight-gray">
  98.     <div class="tc-panel-header">
  99.         <h2>Auteurs contemporains à l'affiche</h2>
  100.     </div>
  101.     <div class="tc-panel-body">
  102.         {% for id,person in persons %}
  103.         <div class="tc-block tc-no-bg tc-phone-1_2 tc-tablet-1_4">
  104.             <div class="tc-block-body-expand">
  105.                 <figure>
  106.                     <a href="/biographies/{{ person.url_clean }}/">
  107.                     {% if person.photo is defined and person.photo %}
  108.                         <img class="tc-media-hcentered" src="{{ person.photo }}" alt="Photographie de {{ person.lastname }} {{ person.firstname }}"/>
  109.                     {% else %}
  110.                         <img class="tc-media-hcentered" src="/images/menu/interface/no_user_v5.png" alt="Pas de photographie"/>
  111.                     {% endif %}
  112.                     </a>
  113.                     <figcaption>
  114.                             <a class="tc-neutral-color" href="/biographies/{{ person.url_clean }}/">
  115.                                 {% if person.firstname is defined and person.firstname %}
  116.                                     {{ person.firstname }}
  117.                                 {% endif %}
  118.                             <span class="tc-format-block-uppercase">{{ person.lastname }}</span></a>
  119.                     </figcaption>
  120.                 </figure>
  121.             </div>
  122.         </div>
  123.         {% endfor %}
  124.     </div>
  125.     <div class="tc-panel-footer">
  126.         <a href="/biographies/spectacles/affiche/filtre/photos/area/{{ area }}/periode/all?d=365" class="tc-more-link">Tous les auteurs à l'affiche</a>
  127.     </div>
  128. </section>
  129. {% endif %}
  130. {% if textes_par_auteurs is defined and textes_par_auteurs is not empty %}
  131. <section class="tc-panel">
  132.     <div class="tc-panel-header">
  133.         <h2>Les textes par leurs auteurs</h2>
  134.     </div>
  135.     <div class="tc-panel-body  tc-masonry-container ">
  136.         {% for idtext,text in textes_par_auteurs %}
  137.         <div class="tc-block tc-tablet-1_2 tc-phone-1_1">
  138.             {% include '/textes/texte-par-auteur.inc.html.twig' %}
  139.         </div>
  140.         {% endfor %}
  141.     </div>
  142.     <div class="tc-panel-footer">
  143.         <a href="textes/editions/auteurs-spectacles/area/{{ area }}?d=365" class="tc-more-link">Tous les textes par leurs auteurs à l'affiche</a>
  144.     </div>
  145. </section>
  146. {% endif %}
  147. {% if critiques_spectacles is defined and critiques_spectacles is not empty %}
  148. <section class="tc-panel">
  149.     <div class="tc-panel-header">
  150.         <h2>&Agrave; l'affiche avec critiques</h2>
  151.     </div>
  152.     <div class="tc-panel-body">
  153.         <div class="tc-masonry-container">
  154.             {% for idspectacle,spectacle in critiques_spectacles %}
  155.             <div class="tc-spectacles-tpl-a tc-tablet-1_2 tc-block">
  156.                 {% include 'spectacles/spectacle_titre.inc.html.twig' %}
  157.             </div>
  158.             {% endfor %}
  159.         </div>
  160.     </div>
  161.     <div class="tc-panel-footer">
  162.         <a href="/critiques/spectacles/area/{{ area }}?d=365" class="tc-more-link">Tous les spectacles avec critiques</a>
  163.     </div>
  164. </section>
  165. {% endif %}
  166. {% if spectacles_educ is defined and spectacles_educ is not empty %}
  167. <section class="tc-panel">
  168.     <div class="tc-panel-header">
  169.         <h2>Accompagnement pédagogique</h2>
  170.     </div>
  171.     <div class="tc-panel-body">
  172.         <div class="tc-masonry-container">
  173.             {% for idspectacle,spectacle in spectacles_educ %}
  174.             <div class="tc-spectacles-tpl-a tc-tablet-1_2 tc-block">
  175.                 {% include 'spectacles/spectacle_titre.inc.html.twig' %}
  176.             </div>
  177.             {% endfor %}
  178.         </div>
  179.     </div>
  180.     <div class="tc-panel-footer">
  181.         <a href="/educ/spectacles/type/prochains/area/{{ area }}" class="tc-more-link">Tous les accompagnements pédagogiques</a>
  182.     </div>
  183. </section>
  184. {% endif %}
  185. {% if spectacles_affiche_dans is defined and spectacles_affiche_dans is not empty %}
  186.     <section class="tc-panel">
  187.         <div class="tc-panel-header">
  188.             <h2>À l'affiche dans les...</h2>
  189.         </div>
  190.         <div class="tc-panel-body">
  191.         {% if spectacles_affiche_by_contact is defined and spectacles_affiche_by_contact %}
  192.             {% for classification in spectacles_affiche_by_contact %}
  193.             <section class="tc-panel">
  194.                 {% if classification.spectacles is defined and classification.spectacles %}
  195.                     {% if classification.classification is defined and classification.classification %}
  196.                         <div class="tc-panel-header tc-contacts-tpl-">
  197.                             <h3 class="tc-titre">{{ classification.classification }}</h3>
  198.                         </div>
  199.                     {% endif %}
  200.                 <div class="tc-panel-body">
  201.                     <div class="tc-masonry-container">
  202.                         {% for idspectacle,spectacle in classification.spectacles %}
  203.                         <div class="tc-block tc-tablet-1_2 tc-spectacles-tpl-b">
  204.                             {% include '/spectacles/spectacle_titre.inc.html.twig' %}
  205.                         </div>
  206.                         {% endfor %}
  207.                     </div>
  208.                 </div>
  209.                 {% endif %}
  210.                 <div class="tc-panel-footer">
  211.                     {% if classification.no_link is defined and classification.no_link %}
  212.                         &nbsp;
  213.                     {% else %}
  214.                         <a class="tc-more-link" href="/spectacles/liste/structures?idtypestructure={{ classification.idtypestructure }}">Tous les spectacles dans les {% if classification.classification_nomaj is defined and classification.classification_nomaj %}{{ classification.classification_nomaj }}{% endif %}</a>
  215.                     {% endif %}
  216.                 </div>
  217.             </section>
  218.             {% endfor %}
  219.         {% endif %}
  220.         {% if spectacles_soutien is defined and spectacles_soutien %}
  221.         <section class="tc-panel">
  222.             <div class="tc-panel-header">
  223.                 <h2>Fonds d'insertions professionnels</h2>
  224.                 <h3>Spectacles soutenus par les écoles supérieures de théâtre</h3>
  225.             </div>
  226.             <div class="tc-panel-header tc-contacts-tpl-">
  227.                 <h3 class="tc-titre"></h3>
  228.             </div>
  229.             <div class="tc-panel-body tc-masonry-container">
  230.                 {% for idspectacle,spectacle in spectacles_soutien %}
  231.                 <div class="tc-block tc-tablet-1_2 tc-spectacles-tpl-b">
  232.                     {% include '/spectacles/spectacle_titre.inc.html.twig' %}
  233.                 </div>
  234.                 {% endfor %}
  235.             </div>
  236.             <div class="tc-panel-footer">
  237.                 <a class="tc-more-link" href="/contacts/Le-Jeune-Theatre-National/spectacles/">Tous les spectacles soutenus par le JTN</a>
  238.             </div>
  239.         </section>
  240.         {% endif %}
  241.         </div>
  242.     </section>
  243.     <section class="tc-panel tc-editions-tpl-a">
  244.         <div class="tc-panel-footer">
  245.             <a href="/ecoles/en-scene/type/soutiens/periode/prochains" class="tc-more-link">Tous les spectacles soutenus</a>
  246.         </div>
  247.     </section>
  248. {% endif %}
  249. </main>
  250. {% endblock %}