templates/includes/aside/textes/textes_menu_genese.html.twig line 1

Open in your IDE?
  1. {% for language,articles in articles %}
  2.     {% if morearticle is defined %}
  3.         <span class="tc-text-label">{{  articles.term }}</span>
  4.     {% endif %}
  5. {% endfor %}
  6. {% if morearticle is defined %}
  7. <section class="tc-panel tc-bgcolor-context">
  8.     {% for language,articles in articles %}
  9.     <div class="tc-panel-header">
  10.         <h2>Voir</h2>
  11.     </div>
  12.     <div class="tc-panel-body">
  13.         <div class="tc-block-body">
  14.             <ul class="tc-clean-list">
  15.                 {% if articles.group %}
  16.                     {% for group_articles in articles.group %}
  17.                         {% if group_articles.classification is defined %}
  18.                             <li><span class="separateur_menu_contents">{group_articles[classification]}</span>
  19.                                 <ul class="sous_menu_contents">
  20.                                     {% for idarticle,article in group_articles.content %}
  21.                                         {% if article.title is defined %}
  22.                                         <li class="tc-{{ article.active }}">
  23.                                             {% if article.first is defined and article.first %}
  24.                                                 <a href="{{ url_folder }}/{{ type_class }}/"
  25.                                                     class="{{ article.active }}{{ article.media }}" title="{{ article.title }}">{{ article.titre_court }}</a>
  26.                                             {% else %}
  27.                                                 <a href="{{ url_folder }}/{{ type_class }}/idcontent/{{ article.idcontent }}" i
  28.                                                     class="{{ article.active }}{{ article.media }}" title="{{ article.title }}">{{ article.titre_court }}</a>
  29.                                             {% endif %}
  30.                                             </li>
  31.                                         {% endif %}
  32.                                     {% endfor %}
  33.                                 </ul>
  34.                             </li>
  35.                         {% else %}
  36.                             {% for idarticle,article in group_articles.content %}
  37.                                 {% if article.title is defined %}
  38.                                     {% set media = '' %}
  39.                                     {% if article.media is defined %}
  40.                                         {% set media = article.media %}
  41.                                     {% endif %}
  42.                                     <li class="tc-{{ article.active }}">
  43.                                     {% if article.first is defined and article.first %}
  44.                                         <a href="{{ url_folder }}/{{ type_class }}/"
  45.                                             class="{{ article.active }}{{ media }}" title="{{ article.title }}">{{ article.titre_court }}</a>
  46.                                     {% else %}
  47.                                         <a href="{{ url_folder }}/{{ type_class }}/idcontent/{{ article.idcontent }}" i
  48.                                             class="{{ article.active }}{{ media }}" title="{{ article.title }}">{{ article.titre_court }}</a>
  49.                                     {% endif %}
  50.                                     </li>
  51.                                 {% endif %}
  52.                             {% endfor %}
  53.                         {% endif %}
  54.                     {% endfor %}
  55.                 {% else %}
  56.                     {% for idarticle,article in articles.content %}
  57.                         {% if article.title %}
  58.                             <li class="tc-{{ article.active }}">
  59.                             {% if article.first %}
  60.                                 <a href="{{ url_folder }}/{{ type_class }}/" class="{{ article.active }}{{ article.media }}"
  61.                                     title="{{ article.title }}">{{ article.titre_court }}</a>
  62.                             {% else %}
  63.                                 <a href="{{ url_folder }}/{{ type_class }}/idcontent/{{ article.idcontent }}"
  64.                                     class="{{ article.active }}{{ article.media }}" title="{{ article.title }}">{{ article.titre_court }}</a>
  65.                             {% endif %}
  66.                             </li>
  67.                         {% endif %}
  68.                     {% endfor %}
  69.                 {% endif %}
  70.             </ul>
  71.         </div>
  72.     </div>
  73.     {% endfor %}
  74.     <div class="tc-panel-footer" style="padding: .5rem">
  75.     </div>
  76. </section>
  77. {% endif %}
  78. {% if detailarticle.files is defined and detailarticle.files != 0 %}
  79. <section class="tc-panel">
  80.     {% for key,value in detailarticle.files %}
  81.         {% include 'includes/files.inc.html.twig' %}
  82.     {% endfor %}
  83. </section>
  84. {% endif %}
  85. {% if autres_spectacles is defined %}
  86. <section class="tc-panel">
  87.     <div class="tc-panel-header">
  88.         <h2>Voir aussi les mises en scène</h2>
  89.         <h3>avec contenus « Éduc »</h3>
  90.     </div>
  91.     <div class="tc-panel-body">
  92.         {% for idspectacle,spectacle in autres_spectacles %}
  93.         <div class="tc-block">
  94.             {% include 'spectacles/spectacle_titre.inc.html.twig' %}
  95.         </div>
  96.         {% endfor %}
  97.     </div>
  98. </section>
  99. {% endif %}