{% if extra_url is not defined %}
{% set extra_url = '' %}
{% endif %}
{% if idcontentCurrent is not defined %}
{% set idcontentCurrent = '' %}
{% endif %}
{% if aside_content.custom_articles is defined and aside_content.custom_articles is not empty %}
{% set articles = aside_content.custom_articles %}
{% endif %}
{% if articles is defined and articles is not empty %}
{% for key_content,contents in articles %}
{% if contents.multiples_menu is not defined or contents.multiples_menu == false %}
{% if morearticle is defined %}
<span class="tc-text-label">{{ contents.term }}</span>
{% endif %}
{% if morearticle is defined and morearticle is not empty%}
{% if aside_content.border is defined %}
<section class="tc-panel tc-border-{{ aside_content.color }}">
{% else %}
<section class="tc-panel tc-bgcolor-{{ aside_content.color }}">
{% endif %}
{% if aside_content.border is defined %}
<div class="tc-panel-header tc-bg-extralight-gray">
{% else %}
<div class="tc-panel-header">
{% endif %}
<h2>
{% if aside_content.title is defined and aside_content.title is not empty %}
{{ aside_content.title }}
{% else %}
{{ contents.menu_title }}
{% endif %}
</h2>
{% if aside_content.subtitle is defined and aside_content.subtitle is not empty %}
<h7>
{{ aside_content.subtitle }}
</h7>
{% endif %}
</div>
<div class="tc-panel-body">
{% if morearticle %}
<ul class="tc-list-voir" data-current="{{ idcontentCurrent }}" data-active="0"> <!-- {#{{ context.params.idcontent }}#} -->
{% if contents.group %}
{% for group_articles in contents.group %}
{% if group_articles.classification is defined %}
<li class="tc-block">
<div class="tc-block-header" style="padding:0">
<h3>
{{ group_articles.classification }}
</h3>
</div>
<ul class="">
{% for idarticle,article in group_articles.content %}
{% if article.title %}
<li class="tc-list-voir tc-temp-{{ article.active }} menu-{{ article.idcontent }}">
{% if article.first is defined %}
<a href="{{ url_folder }}{{ extra_url }}/{{ type_class }}/"
class="{{ article.active }}" title="{{ article.title }}">{{ article.titre_court }}</a>
{% else %}
<a href="{{ url_folder }}{{ extra_url }}/{{ type_class }}/idcontent/{{ article.idcontent }}"
class="{{ article.active }}" title="{{ article.title }}">{{ article.titre_court }}</a>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
</li>
{% else %}
<div class="tc-block">
<div class="tc-block-body">
{% for idarticle,article in group_articles.content %}
{% if article.title is defined and article.title is not empty %}
<li class="tc-list-voir tc-temp-{{ article.active }} menu-{{ article.idcontent }}">
{% if article.first is defined %}
<a href="{{ url_folder }}{{ extra_url }}/{{ type_class }}/"
class="{{ article.active }}" title="{{ article.title }}">{{ article.titre_court }}</a>
{% else %}
<a href="{{ url_folder }}{{ extra_url }}/{{ type_class }}/idcontent/{{ article.idcontent }}" i
class="{{ article.active }}" title="{{ article.title }}">{{ article.titre_court }}</a>
{% endif %}
</li>
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
{% endfor %}
{% else %}
{% for idarticle,article in scontents.content %}
{% if article.title %}
<ul class="tc-block">
<li class="tc-block-body" class="tc-list-voir tc-temp-{{ article.active }} menu-{{ article.idcontent }}">
{% if article.first %}
<a href="{{ url_folder }}{{ extra_url }}/{{ type_class }}/" class="{{ article.active }}{{ article.media }}"
title="{{ article.title }}">{{ article.titre_court }}</a>
{% else %}
<a href="{{ url_folder }}{{ extra_url }}/{{ type_class }}/idcontent/{{ article.idcontent }}"
class="{{ article.active }}{{ article.media }}" title="{{ article.title }}">{{ article.titre_court }}</a>
{% endif %}
</li>
</ul>
{% endif %}
{% endfor %}
{% endif %}
</ul>
{% endif %}
<script type="text/javascript">
$(document).ready(function(){
if(current = $('.tc-list-voir').data('current')){
if('.menu-'+current){
$('.menu-'+current).addClass('tc-active');
}
}
else{
$('.tc-list-voir tc-list-voir').first().addClass('tc-active');
}
})
</script>
</div>
{% if aside_content.footer is defined %}
<div class="tc-panel-footer">
<a href="/spectacles/{{ url_clean }}/ensavoirplus" class="tc-more-link">Tous les articles ({{ aside_content.nb_presentation }})</a>
</div>
{% endif %}
</section>
{% endif %}
{% else %}
{% for language,articles in contents.articles_by_lng %}
{% if morearticle %}
<span class="tc-text-label">{{ articles.term }}</span>
{% endif %}
{% if morearticle %}
<section class="tc-panel tc-bgcolor-{{ aside_content.color }}">
<div class="tc-panel-header" >
<h2>
{% if contents.menu_custom is defined and contents.menu_custom %}
{{ contents.classification|trans }}
{% else %}
{% if aside_content.title is defined and aside_content.title %}
{{ aside_content.title|trans }}
{% else %}
{{ articles.menu_title|trans }}
{% endif %}
{% endif %}
</h2>
</div>
<div class="tc-panel-body">
{% if morearticle %}
<ul class="tc-list-voir" data-current="{{ idcontentCurrent }}" data-active="0"> <!-- {#{{ context.params.idcontent }}#} -->
{% if articles.group %}
{% for group_articles in articles.group %}
{% if group_articles.classification is defined %}
<li class="tc-block">
<div class="tc-block-header" style="padding:0">
<h3>
{{ group_articles.classification }}
</h3>
</div>
<ul class="">
{% for idarticle,article in group_articles.content %}
{% if article.title is defined %}
{% set media = '' %}
{% if article.media is defined %}
{% set media = article.media %}
{% endif %}
<li class="tc-list-voir menu-{{ article.idcontent }}">
{% if article.first is defined %}
<a href="{{ url_folder }}{{ extra_url }}/{{ type_class }}/"
class="{{ article.active }}{{ media }}" title="{{ article.title }}">{{ article.titre_court }}</a>
{% else %}
<a href="{{ url_folder }}{{ extra_url }}/{{ type_class }}/idcontent/{{ article.idcontent }}"
class="{{ article.active }}{{ media }}" title="{{ article.title }}">{{ article.titre_court }}</a>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
</li>
{% else %}
<div class="tc-block">
<div class="tc-block-body">
{% for idarticle,article in group_articles.content %}
{% set media = '' %}
{% if article.media is defined %}
{% set media = article.media %}
{% endif %}
{% if article.title %}
<li class="tc-list-voir tc-temp-{{ article.active }} menu-{{ article.idcontent }}">
{% if article.first is defined %}
<a href="{{ url_folder }}{{ extra_url }}/{{ type_class }}/"
class="{{ article.active }}{{ media }}" title="{{ article.title }}">{{ article.titre_court }}</a>
{% else %}
<a href="{{ url_folder }}{{ extra_url }}/{{ type_class }}/idcontent/{{ article.idcontent }}" i
class="{{ article.active }}{{ media }}" title="{{ article.title }}">{{ article.titre_court }}</a>
{% endif %}
</li>
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
{% endfor %}
{% else %}
{% for idarticle,article in articles.content %}
{% if article.title %}
<ul class="tc-block">
<li class="tc-block-body" class="tc-list-voir tc-temp-{{ article.active }} menu-{{ article.idcontent }}">
{% if article.first %}
<a href="{{ url_folder }}{{ extra_url }}/{{ type_class }}/" class="{{ article.active }}{{ article.media }}"
title="{{ article.title }}">{{ article.titre_court }}</a>
{% else %}
<a href="{{ url_folder }}{{ extra_url }}/{{ type_class }}/idcontent/{{ article.idcontent }}"
class="{{ article.active }}{{ article.media }}" title="{{ article.title }}">{{ article.titre_court }}</a>
{% endif %}
</li>
</ul>
{% endif %}
{% endfor %}
{% endif %}
</ul>
{% endif %}
<script type="text/javascript">
$(document).ready(function(){
if(current = $('.tc-list-voir').data('current')){
if('.menu-'+current){
$('.menu-'+current).addClass('tc-active');
}
}
else{
$('.tc-list-voir tc-list-voir').first().addClass('tc-active');
}
})
</script>
</div>
</section>
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% if detailarticle.files is defined and detailarticle.files != 0 %}
<section class="tc-panel tc-border-neutral">
<div class="tc-panel-body">
{% for key,value in detailarticle.files %}
{% include 'includes/files.inc.html.twig' %}
{% endfor %}
</div>
</section>
{% endif %}