templates/areas/apk-banner-video/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2. <div class="uk-container apk-container-1400">
  3.     <div class="uk-alert" uk-alert>
  4.         <h2 class="uk-h2">APK BANNER VIDEO</h2>
  5.     </div>
  6.     <ul class="uk-tab" uk-tab>
  7.         <li><a href="#">Configurations</a></li>
  8.         <li class="uk-active"><a href="#">Content Edit</a></li>
  9.     </ul>
  10.     <ul class="uk-switcher uk-margin">
  11.         <li class="apk-size-20 uk-grid-small uk-grid" uk-grid>
  12.             {# Colonne 1 #}
  13.             <div class="uk-width-1-2@m" uk-margin>
  14.                 <div>Type de heading pour le titre ?</div>
  15.                 {{ pimcore_select("content-heading", {
  16.                     "store" : [
  17.                         ['span', 'span'],
  18.                         ['h2', 'Heading 2'],
  19.                         ['h3', 'Heading 3'],
  20.                         ['h4', 'Heading 4'],
  21.                         ['h5', 'Heading 5'],
  22.                         ['h6', 'Heading 6']
  23.                     ],
  24.                     "defaultValue" : "h2"
  25.                 }) }}
  26.                 <div><strong>Style</strong> du heading pour le titre ?</div>
  27.                 {{ pimcore_select("content-heading-style", {
  28.                     "store" : [
  29.                         ['h2', 'Heading 2'],
  30.                         ['h3', 'Heading 3'],
  31.                         ['h4', 'Heading 4'],
  32.                         ['h5', 'Heading 5'],
  33.                         ['h6', 'Heading 6']
  34.                     ],
  35.                     "defaultValue" : "h2"
  36.                 }) }}
  37.                 <div><strong>Alignement</strong> du texte</div>
  38.                 {{ pimcore_select("text-alignment", {
  39.                     "store" : [
  40.                         ['uk-text-left', 'Gauche'],
  41.                         ['uk-text-right', 'Droite'],
  42.                         ['uk-text-center', 'Centr??'],
  43.                     ],
  44.                     "defaultValue" : "uk-text-center"
  45.                 }) }}
  46.                 <div><strong>Couleur</strong> du bouton</div>
  47.                 {{ pimcore_select("button-color", {
  48.                     "store" : [
  49.                         ['uk-button', 'Bleu'],
  50.                         ['uk-button uk-button-primary', 'Rouge'],
  51.                     ],
  52.                     "defaultValue" : "uk-button"
  53.                 }) }}
  54.             </div>
  55.             {# Colonne 2 #}
  56.             <div class="uk-width-1-2@m" uk-margin>
  57.                 <div>Position de l'image en cover</div>
  58.                 {{ pimcore_select("cover-position", {
  59.                     "store" : [
  60.                         ['apk-cover-top-left', 'Haut gauche'],
  61.                         ['apk-cover-top-center', 'Haut centr??'],
  62.                         ['apk-cover-top-right', 'Haut droite'],
  63.                         ['apk-cover-center-left', 'Centr?? gauche'],
  64.                         ['apk-cover-center', 'Centr?? centr??'],
  65.                         ['apk-cover-center-right', 'Centr?? droit'],
  66.                         ['apk-cover-bottom-left', 'Bas gauche'],
  67.                         ['apk-cover-bottom-center', 'Bas centr??'],
  68.                         ['apk-cover-bottom-right', 'Bas droit'],
  69.                     ],
  70.                     "defaultValue" : "apk-cover-center"
  71.                 }) }}
  72.                 
  73.                 <div>Espacement en haut du block</div>
  74.                 {{ pimcore_select("margin-top", {
  75.                     "store" : [
  76.                         ['uk-padding-remove-top', 'Suppression du padding'],
  77.                         ['', 'Aucun'],
  78.                         ['uk-margin-small-top', 'Petit'],
  79.                         ['uk-margin-medium-top', 'Moyen'],
  80.                         ['uk-margin-large-top', 'Grand'],
  81.                         ['uk-margin-xlarge-top', 'Tr??s grand'],
  82.                     ],
  83.                     "defaultValue" : ""
  84.                 }) }}
  85.     
  86.                 <div>Espacement en bas du block</div>
  87.                 {{ pimcore_select("margin-bottom", {
  88.                     "store" : [
  89.                         ['uk-padding-remove-bottom', 'Suppression du padding'],
  90.                         ['', 'Aucun'],
  91.                         ['uk-margin-small-bottom', 'Petit'],
  92.                         ['uk-margin-medium-bottom', 'Moyen'],
  93.                         ['uk-margin-large-bottom', 'Grand'],
  94.                         ['uk-margin-xlarge-bottom', 'Tr??s grand'],
  95.                     ],
  96.                     "defaultValue" : ""
  97.                 }) }}
  98.                 <div>Hauteur</div>
  99.                 {{ pimcore_checkbox("banner-full-height") }} Full height
  100.                 
  101.             </div>
  102.         </li>
  103.     
  104.         <li class="uk-active">
  105.             <div class="uk-margin-large-bottom">
  106.                 <div class="apk-content">
  107.                     <b>VIDEO</b>
  108.                     {{ pimcore_video("video") }}
  109.                     <b>POSTER</b>
  110.                     {{ pimcore_image("video-poster") }}
  111.                     <br/>
  112.                     <br/>
  113.                     <h2 class="uk-h2">
  114.                         {{ pimcore_textarea("content-title",{
  115.                             "nl2br" : true
  116.                         }) }}
  117.                     </h2>
  118.                     
  119.                     <div>
  120.                         <span>{{ pimcore_input('content') }}</span>
  121.                     </div>
  122.                     
  123.                     <div class="uk-margin-top">
  124.                         {{ pimcore_link("content-btn", {
  125.                             "class" : pimcore_select("button-color").data
  126.                         }) }}
  127.                     </div>
  128.                     <div class="uk-margin-top"><b>References</b></div>
  129.                     <div>
  130.                         {% for i in pimcore_block('referencesBlock').iterator %}
  131.                             {{ pimcore_image('reference', {'width' : 200, 'height' : 200}) }}
  132.                         {% endfor %}
  133.                     </div>
  134.                 </div>
  135.             </div>
  136.         </li>
  137.     </ul>
  138. </div>
  139. {% endif %}
  140. {% if not editmode %}
  141.     <div class="apk-areabrick-container {{ pimcore_select("margin-top") }} {{ pimcore_select("margin-bottom") }}  {% if pimcore_checkbox("banner-full-height").isChecked() %}is-full-height{% endif %}">
  142.         <div class="apk-cover-container uk-height-1-1">
  143.             
  144.             <div class="uk-container apk-container-1400 uk-height-1-1">
  145.                 <div class="apk-container-inner">
  146.                     <div class="uk-grid uk-grid-collapse" uk-grid>
  147.                         <div class="uk-width-1-3@m uk-flex uk-flex-middle">
  148.                             <div class="content {{ pimcore_select("text-alignment") }}">
  149.                                 
  150.                                 {% if not pimcore_textarea("content-title").isEmpty %}
  151.                                     {% if pimcore_select("content-heading").data == "span" %}
  152.                                         <span class="uk-{{ pimcore_select("content-heading-style").getData() }}">
  153.                                             {{ pimcore_textarea("content-title", {
  154.                                             "nl2br" : true})|raw }}
  155.                                         </span>
  156.                                     {% else %}
  157.                                         {% set content_heading = pimcore_select("content-heading").getData() ?: 'h2' %}
  158. {% if content_heading == 'h1' %}
  159.     {% set content_heading = 'h2' %}
  160. {% endif %}
  161.                                         <{{ content_heading }} class="uk-{{ pimcore_select("content-heading-style").getData() }}">
  162.                                             {{ pimcore_textarea("content-title", {
  163.                                             "nl2br" : true})|raw }}
  164.                                         </{{ content_heading }}>
  165.                                     {% endif %}
  166.                                 {% endif %}
  167.                         
  168.                                 <div class="subtitle">
  169.                                     {{ pimcore_input("content") }}
  170.                                 </div>
  171.                         
  172.                                 {% if not pimcore_link("content-btn").isEmpty() %}
  173.                                     <div class="actions">
  174.                                         {{ pimcore_link("content-btn", {
  175.                                             "class" : pimcore_select("button-color").data
  176.                                         }) }}
  177.                                     </div>
  178.                                 {% endif %}
  179.                             
  180.                             </div>
  181.                         </div>
  182.                         {#
  183.                         <div class="uk-width-2-3@m">
  184.                             <div class="video-container">
  185.                                 <div class="aspect-ratio">
  186.                                     <iframe src="https://www.youtube-nocookie.com/embed/JGv-GCos-sg" frameborder="0"  width="1920" height="1080" allowfullscreen allow="autoplay;" uk-video="autoplay: inview; automute: true;" uk-cover></iframe>
  187.                                 </div>
  188.                                 <div class="apk-overlay">
  189.                                     <div class="apk-overlay-inner"></div>
  190.                                 </div>
  191.                             </div>
  192.                         </div>
  193.                         #}
  194.                     </div>
  195.                     <div class="apk-video-container">
  196.                         {% if pimcore_video('video').videoType == "asset" %}
  197.                             {{ pimcore_video('video', {
  198.                                 thumbnail: 'full-image',
  199.                                 imagethumbnail: "background-fullpage",
  200.                                 attributes: {
  201.                                     controls: false,
  202.                                     async: true,
  203.                                     autoplay: true,
  204.                                     loop: true,
  205.                                     muted: true,
  206.                                     preload: true,
  207.                                     'uk-video': true,
  208.                                     class: "uk-video"
  209.                                 },
  210.                             }) }}
  211.                         {% endif %}
  212.                     </div>
  213.                     {% if pimcore_block('referencesBlock').elements %}
  214.                         <div class="uk-child-width-expand@l uk-child-width-1-6@m uk-child-width-1-3 uk-flex uk-flex-center uk-grid" uk-grid>
  215.                             {% for i in pimcore_block('referencesBlock').iterator %}
  216.                                 <div class="apk-banner-video-references">
  217.                                     {{ pimcore_image('reference', {'thumbnail' : 'partner-logo-transparent'}) }}
  218.                                 </div>
  219.                             {% endfor %}
  220.                         </div>
  221.                     {% endif %}
  222.                 </div>
  223.             </div>
  224.         </div>
  225.         
  226.         
  227.     </div>
  228. {% endif %}