{% if editmode %}
<div class="uk-container apk-container-1400 uk-margin-medium">
<h2 class="uk-h2">Section PDF / Video</h2>
<ul uk-tab>
<li><a href="#">Configurations</a></li>
<li class="uk-active"><a href="#">Contenu</a></li>
</ul>
<ul class="uk-switcher uk-margin">
<li>
<div>Alignement en colones</div>
{{ pimcore_select("grille", {
"store" : [
['', 'Aucun'],
['uk-child-width-1-1', '1 colone'],
['uk-child-width-1-2@m', '2 colones'],
['uk-child-width-1-3@m', '3 colones'],
['uk-child-width-1-4@m', '4 colones'],
],
"defaultValue" : ""
}) }}
</li>
<li class="uk-active">
<div>Grid</div>
{% for i in pimcore_block('contentblock').iterator %}
<div uk-alert>
<h2 class="uk-h2">PDF <strong>OU</strong> VIDEO</h2>
<div class="uk-alert-primary" uk-alert>
<div class="uk-text-bold">Contenu PDF</div>
{{ pimcore_link("grid-content") }}
{{ pimcore_image('bg-image',{ "width" : 200}) }}
</div>
<hr/>
<div class="uk-alert-primary" uk-alert>
<div class="uk-text-bold">Image Video</div>
{{ pimcore_image('bg-video',{ "width" : 200}) }}
<div class="uk-text-bold uk-margin-top"><strong>ID</strong> de la vidéo <strong>YOUTUBE</strong></div>
{{ pimcore_input("videoId") }}
<div class="uk-text-bold uk-margin-top"><strong>Texte en dessous</div>
{{ pimcore_input("videoText") }}
</div>
</div>
{% endfor %}
</li>
</ul>
</div>
{% else %}
<div class="apk-container-pdf">
<div class="uk-container apk-container-1000">
<div class="{{ pimcore_select("grille")}}" uk-grid uk-height-match="target: .apk-content">
{% for i in pimcore_block('contentblock').iterator %}
<div>
{% if not pimcore_input("videoId").isEmpty %}
<div class="apk-content" uk-lightbox>
<a class="uk-position-relative uk-display-block" href="https://www.youtube.com/watch?v={{pimcore_input("videoId")}}">
<div class="uk-overlay-transparent uk-position-cover">
<div class="uk-position-center">
<svg width="80" height="80" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" data-svg="play-circle"><polygon fill="none" stroke="currentColor" stroke-width="1.1" points="8.5 7 13.5 10 8.5 13"></polygon><circle fill="none" stroke="currentColor" stroke-width="1.1" cx="10" cy="10" r="9"></circle></svg>
</div>
</div>
<div class="apk-image">{{ pimcore_image('bg-video',{ "width" : 200}) }}</div>
{{ pimcore_input("videoText") }}
</a>
</div>
{% else %}
<div>
<div class="apk-content" data-apk-href="{{ pimcore_link("grid-content").getHref() }}">
<div class="apk-image">{{ pimcore_image('bg-image',{ "width" : 200}) }}</div>
{{ pimcore_link("grid-content") }}
</div>
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}