templates/diaporama/diaporama.inc.html.twig line 1

Open in your IDE?
  1. {% if include_header is defined %}
  2.     {% include include_header~'.twig' %}
  3. {% endif %}
  4. <main class="tc-desktop-2_3 tc-phone-1_1">
  5.     <style>
  6.         .tc-gallery > ul > li a {
  7.             border: 3px solid #FFF;
  8.             border-radius: 3px;
  9.             display: block;
  10.             overflow: hidden;
  11.             position: relative;
  12.             float: left;
  13.         }
  14.         .tc-gallery > ul > li a > img {
  15.             -webkit-transition: -webkit-transform 0.15s ease 0s;
  16.             -moz-transition: -moz-transform 0.15s ease 0s;
  17.             -o-transition: -o-transform 0.15s ease 0s;
  18.             transition: transform 0.15s ease 0s;
  19.             -webkit-transform: scale3d(1, 1, 1);
  20.             transform: scale3d(1, 1, 1);
  21.             height: 100%;
  22.             width: 100%;
  23.         }
  24.         .tc-gallery > ul > li a:hover > img {
  25.             -webkit-transform: scale3d(1.1, 1.1, 1.1);
  26.             transform: scale3d(1.1, 1.1, 1.1);
  27.         }
  28.         .tc-gallery > ul > li a:hover .tc-gallery-poster > img {
  29.             opacity: 1;
  30.         }
  31.         .tc-gallery > ul > li a .tc-gallery-poster > img {
  32.             left: 50%;
  33.             margin-left: -10px;
  34.             margin-top: -10px;
  35.             opacity: 0;
  36.             position: absolute;
  37.             top: 50%;
  38.             -webkit-transition: opacity 0.3s ease 0s;
  39.             -o-transition: opacity 0.3s ease 0s;
  40.             transition: opacity 0.3s ease 0s;
  41.         }
  42.         .tc-gallery > ul > li a:hover .tc-gallery-poster {
  43.             background-color: rgba(0, 0, 0, 0.5);
  44.         }
  45.         .tc-gallery .justified-gallery > a > img {
  46.             -webkit-transition: -webkit-transform 0.15s ease 0s;
  47.             -moz-transition: -moz-transform 0.15s ease 0s;
  48.             -o-transition: -o-transform 0.15s ease 0s;
  49.             transition: transform 0.15s ease 0s;
  50.             -webkit-transform: scale3d(1, 1, 1);
  51.             transform: scale3d(1, 1, 1);
  52.             height: 100%;
  53.             width: 100%;
  54.         }
  55.         .tc-gallery .justified-gallery > a:hover > img {
  56.             -webkit-transform: scale3d(1.1, 1.1, 1.1);
  57.             transform: scale3d(1.1, 1.1, 1.1);
  58.         }
  59.     </style>
  60.     <section id="content_diaporama" class="tc-panel">
  61.        <div id="present"  class="tc-panel-header">
  62.            {% if detaildiaporama.title is defined and detaildiaporama.title %}
  63.                <h3 class="titre_diaporama">{{ detaildiaporama.title|raw }}</h3>
  64.            {% endif %}
  65.            {% if detaildiaporama.subtitle is defined and detaildiaporama.subtitle %}
  66.                <h4>{{ detaildiaporama.subtitle|raw }}</h4>
  67.            {% endif %}
  68.            {% if detaildiaporama.deck is defined and detaildiaporama.deck %}
  69.                <div class="chapeau">{{ detaildiaporama.deck|raw }}</div>
  70.            {% endif %}
  71.            {% if detaildiaporama.text is defined and detaildiaporama.text %}
  72.                <div class="texte">{{ detaildiaporama.text|raw }}</div>
  73.            {% endif %}
  74.            {% if detaildiaporama.writer is defined and detaildiaporama.writer %}
  75.                <p class="redacteur">{{ detaildiaporama.writer|raw }} </p>
  76.            {% endif %}
  77.            {% if detaildiaporama.date is defined and detaildiaporama.date %}
  78.                <p class="date">{{ detaildiaporama.date}}</p>
  79.            {% endif %}
  80.        </div>
  81.         <div class=" tc-panel-body">
  82.            <div class="tc-gallery tc-gallery">
  83.                {% if detaildiaporama.files is defined and detaildiaporama.files %}
  84.                <ul id="lightgallery" class="no-bullet list-unstyled row tc-masonry-container">
  85.                    {% for key,value in detaildiaporama.files %}
  86.                    <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">
  87.                        <a href="">
  88.                            <img class="img-responsive" src="{{ imgdir }}upload/{{ value.vignette }}" alt="{{ value.title }}">
  89.                        </a>
  90.                    </li>
  91.                    {% endfor %}
  92.                </ul>
  93.                {% endif %}
  94.             </div>
  95.         </div>
  96.     </section>
  97. </main>
  98. <aside id="tc-aside" class="tc-desktop-1_3 tc-phone-1_1">
  99.     {% if prefix_url is not defined %}
  100.         {% set prefix_url = '' %}
  101.     {% endif %}
  102.     {% if autrediapo is defined and autrediapo %}
  103.         <section class="tc-panel" id="colonne_deux_article">
  104.             <div class="tc-panel-header">
  105.                 <h3 id="autresdiapo">Les autres galeries</h3>
  106.             </div>
  107.             <div class="tc-panel-body">
  108.                 {% if diaporama.exclure is not defined or (diaporama.exclure is defined and diaporama.exclure == false) %}
  109.                     <div class="tc-gallery tc-masonry-container">
  110.                     {% for iddiaporama,diaporama in diaporamas %}
  111.                         <div class="tc-block">
  112.                            {% if diaporama.vignette_entete is defined and diaporama.vignette_entete %}
  113.                                <figure class="tc-block-body">
  114.                                     <a href="{{ prefix_url }}{{ url_folder }}/enimages/idcontent/{{ diaporama.idcontent }}" title="Voir le diaporama « {{ diaporama.title }} »">
  115.                                         <img src="{{ imgdir }}upload/{{ diaporama.vignette_entete }}" alt="{{ diaporama.title }}" />
  116.                                     </a>
  117.                                     <figcaption>
  118.                                         <a href="{{ prefix_url }}{{ url_folder }}/enimages/idcontent/{{ diaporama.idcontent }}" title="Voir le diaporama « {{ diaporama.title }} »">{{ diaporama.title }}</a>
  119.                                     </figcaption>
  120.                                 </figure>
  121.                             {% endif %}
  122.                         </div>
  123.                    {% endfor %}
  124.                    </div>
  125.                 {% endif %}
  126.            </div>
  127.         </section>
  128.     {% endif %}
  129. </aside>
  130. <script type="text/javascript" charset="utf-8">
  131.     $(document).ready(function(){
  132.         lightGallery(document.getElementById('lightgallery'));
  133.     });
  134. </script>