{% if include_header is defined %}
{% include include_header~'.twig' %}
{% endif %}
<main class="tc-desktop-2_3 tc-phone-1_1">
<style>
.tc-gallery > ul > li a {
border: 3px solid #FFF;
border-radius: 3px;
display: block;
overflow: hidden;
position: relative;
float: left;
}
.tc-gallery > ul > li a > img {
-webkit-transition: -webkit-transform 0.15s ease 0s;
-moz-transition: -moz-transform 0.15s ease 0s;
-o-transition: -o-transform 0.15s ease 0s;
transition: transform 0.15s ease 0s;
-webkit-transform: scale3d(1, 1, 1);
transform: scale3d(1, 1, 1);
height: 100%;
width: 100%;
}
.tc-gallery > ul > li a:hover > img {
-webkit-transform: scale3d(1.1, 1.1, 1.1);
transform: scale3d(1.1, 1.1, 1.1);
}
.tc-gallery > ul > li a:hover .tc-gallery-poster > img {
opacity: 1;
}
.tc-gallery > ul > li a .tc-gallery-poster > img {
left: 50%;
margin-left: -10px;
margin-top: -10px;
opacity: 0;
position: absolute;
top: 50%;
-webkit-transition: opacity 0.3s ease 0s;
-o-transition: opacity 0.3s ease 0s;
transition: opacity 0.3s ease 0s;
}
.tc-gallery > ul > li a:hover .tc-gallery-poster {
background-color: rgba(0, 0, 0, 0.5);
}
.tc-gallery .justified-gallery > a > img {
-webkit-transition: -webkit-transform 0.15s ease 0s;
-moz-transition: -moz-transform 0.15s ease 0s;
-o-transition: -o-transform 0.15s ease 0s;
transition: transform 0.15s ease 0s;
-webkit-transform: scale3d(1, 1, 1);
transform: scale3d(1, 1, 1);
height: 100%;
width: 100%;
}
.tc-gallery .justified-gallery > a:hover > img {
-webkit-transform: scale3d(1.1, 1.1, 1.1);
transform: scale3d(1.1, 1.1, 1.1);
}
</style>
<section id="content_diaporama" class="tc-panel">
<div id="present" class="tc-panel-header">
{% if detaildiaporama.title is defined and detaildiaporama.title %}
<h3 class="titre_diaporama">{{ detaildiaporama.title|raw }}</h3>
{% endif %}
{% if detaildiaporama.subtitle is defined and detaildiaporama.subtitle %}
<h4>{{ detaildiaporama.subtitle|raw }}</h4>
{% endif %}
{% if detaildiaporama.deck is defined and detaildiaporama.deck %}
<div class="chapeau">{{ detaildiaporama.deck|raw }}</div>
{% endif %}
{% if detaildiaporama.text is defined and detaildiaporama.text %}
<div class="texte">{{ detaildiaporama.text|raw }}</div>
{% endif %}
{% if detaildiaporama.writer is defined and detaildiaporama.writer %}
<p class="redacteur">{{ detaildiaporama.writer|raw }} </p>
{% endif %}
{% if detaildiaporama.date is defined and detaildiaporama.date %}
<p class="date">{{ detaildiaporama.date}}</p>
{% endif %}
</div>
<div class=" tc-panel-body">
<div class="tc-gallery tc-gallery">
{% if detaildiaporama.files is defined and detaildiaporama.files %}
<ul id="lightgallery" class="no-bullet list-unstyled row tc-masonry-container">
{% for key,value in detaildiaporama.files %}
<li class="tc-block tc-tablet-1_4" data-download-url="false" data-src="{{ imgdir }}upload/{{ value.format_1600 }}" data-responsive="{{ imgdir }}{{ value.format_375 }} 375, {{ imgdir }}{{ value.format_480 }} 480, {{ imgdir }}{{ value.extension }}/{{ value.file }} 800" data-sub-html="<h4>{{ value.title }}</h4><p>{{ value.copyright }}</p>" data-pinterest-text="Pin it1" data-tweet-text="share on twitter 1">
<a href="">
<img class="img-responsive" src="{{ imgdir }}upload/{{ value.vignette }}" alt="{{ value.title }}">
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
</section>
</main>
<aside id="tc-aside" class="tc-desktop-1_3 tc-phone-1_1">
{% if prefix_url is not defined %}
{% set prefix_url = '' %}
{% endif %}
{% if autrediapo is defined and autrediapo %}
<section class="tc-panel" id="colonne_deux_article">
<div class="tc-panel-header">
<h3 id="autresdiapo">Les autres galeries</h3>
</div>
<div class="tc-panel-body">
{% if diaporama.exclure is not defined or (diaporama.exclure is defined and diaporama.exclure == false) %}
<div class="tc-gallery tc-masonry-container">
{% for iddiaporama,diaporama in diaporamas %}
<div class="tc-block">
{% if diaporama.vignette_entete is defined and diaporama.vignette_entete %}
<figure class="tc-block-body">
<a href="{{ prefix_url }}{{ url_folder }}/enimages/idcontent/{{ diaporama.idcontent }}" title="Voir le diaporama « {{ diaporama.title }} »">
<img src="{{ imgdir }}upload/{{ diaporama.vignette_entete }}" alt="{{ diaporama.title }}" />
</a>
<figcaption>
<a href="{{ prefix_url }}{{ url_folder }}/enimages/idcontent/{{ diaporama.idcontent }}" title="Voir le diaporama « {{ diaporama.title }} »">{{ diaporama.title }}</a>
</figcaption>
</figure>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
</div>
</section>
{% endif %}
</aside>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
lightGallery(document.getElementById('lightgallery'));
});
</script>