{% extends 'biographies/biographie_entete.inc.html.twig' %}
{% block subcontents %}
<main class="tc-desktop-2_3 tc-phone-1_1">
<section class="tc-panel tc-panel-article">
<div class="tc-panel-header">
{% if bioarticles.title is defined and bioarticles.title is not empty %}
<h1>{{ bioarticles.title|raw }}</h1>
{% endif %}
{% if bioarticles.subtitle is defined and bioarticles.subtitle is not empty %}
<h3>{{ bioarticles.subtitle|raw }}</h3>
{% endif %}
{% if bioarticles.deck is defined and bioarticles.deck is not empty %}
<div class="tc-chapeau">
<p>{{ bioarticles.deck|raw }}</p>
</div>
{% endif %}
</div>
<div class="tc-panel-body">
<div class="tc-block tc-block-article">
<div class="tc-block-body tc-block-content-custom">
{% if bioarticles.media is defined and bioarticles.media %}
{% for video in bioarticles.media %}
<div class="tc-video-16_9">
<iframe width="{{ video.div_width }}" height="{{ video.div_height }}" webkitallowfullscreen mozallowfullscreen allow="fullscreen" src="/embed/{{ video.code }}?no_title"></iframe>
</div>
{% endfor %}
{% endif %}
{% if bioarticles.is_link is defined and bioarticles.is_link %}
<!-- <p flexy:if="bioarticles[link]">
<a href="{{ bioarticles.link }}"
title="{{ bioarticles.title }} (Nouvelle fenĂȘtre)" onclick="window.open(this.href); return false;">
<strong>Lire l'article (site externe)</strong>
</a>
</p> -->
{% if bioarticles.link is defined and bioarticles.link %}
<p>
Lien vers l'article : <a href="{{ bioarticles.link }}" onclick="window.open(this.href); return false;" >{{ bioarticles.link_cut }}</a>
</p>
{% endif %}
{% else %}
{% if bioarticles.text is defined and bioarticles.text %}
<p>{{ bioarticles.text|raw }}</p>
{% endif %}
{% if bioarticles.link is defined and bioarticles.link %}
<p>
<a href="{{ bioarticles.link }}" title="{{ bioarticles.linktitle }} (Nouvelle fenĂȘtre)" onclick="window.open(this.href); return false;">
{{ bioarticles.linktitle }}
</a>
</p>
{% endif %}
{% if bioarticles.writer is defined and bioarticles.writer %}
<p class="tc-signature-article tc-right">{{ bioarticles.writer|raw }} </p>
{% endif %}
{% if bioarticles.date is defined and bioarticles.date %}
<p>{{ bioarticles.date }} </p>
{% endif %}
{% endif %}
</div>
{% if bioarticles.source is defined and bioarticles.source %}
<div class="tc-block-footer">
<p class="tc-text-label">(source :
{% if bioarticles.source_description is defined and bioarticles.source_description %}
{{ bioarticles.source_description }} |
{% endif %}
<a href="{{ bioarticles.source_link }}">{{ bioarticles.source_link_short }}</a>)
</p>
</div>
{% endif %}
<hr>
{% include 'includes/pdfs.inc.html.twig' with {'detailarticle': bioarticles} %}
</div>
</div>
</section>
</main>
{% endblock %}