templates/areas/apk-section-pdf/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2. <div class="uk-container apk-container-1400 uk-margin-medium">
  3.     <h2 class="uk-h2">Section PDF / Video</h2>
  4.     <ul uk-tab>
  5.         <li><a href="#">Configurations</a></li>
  6.         <li class="uk-active"><a href="#">Contenu</a></li>
  7.     </ul>
  8.     <ul class="uk-switcher uk-margin">
  9.         <li>
  10.             <div>Alignement en colones</div>
  11.             {{ pimcore_select("grille", {
  12.                 "store" : [
  13.                     ['', 'Aucun'],
  14.                     ['uk-child-width-1-1', '1 colone'],
  15.                     ['uk-child-width-1-2@m', '2 colones'],
  16.                     ['uk-child-width-1-3@m', '3 colones'],
  17.                     ['uk-child-width-1-4@m', '4 colones'],
  18.                 ],
  19.                 "defaultValue" : ""
  20.             }) }}
  21.         </li>
  22.         <li class="uk-active">
  23.         <div>Grid</div>
  24.             {% for i in pimcore_block('contentblock').iterator %}
  25.                 <div uk-alert>
  26.                     <h2 class="uk-h2">PDF <strong>OU</strong> VIDEO</h2>
  27.                     <div class="uk-alert-primary" uk-alert>
  28.                         <div class="uk-text-bold">Contenu PDF</div>
  29.                         {{ pimcore_link("grid-content") }}
  30.     
  31.                         {{ pimcore_image('bg-image',{ "width" : 200}) }}
  32.                     </div>
  33.                     <hr/>
  34.                     <div class="uk-alert-primary" uk-alert>
  35.                         <div class="uk-text-bold">Image Video</div>
  36.                         {{ pimcore_image('bg-video',{ "width" : 200}) }}
  37.                         <div class="uk-text-bold uk-margin-top"><strong>ID</strong> de la vidéo <strong>YOUTUBE</strong></div>
  38.                         {{ pimcore_input("videoId") }}
  39.                         <div class="uk-text-bold uk-margin-top"><strong>Texte en dessous</div>
  40.                         {{ pimcore_input("videoText") }}
  41.                     </div>
  42.                 </div>
  43.             {% endfor %}
  44.             
  45.         </li>
  46.     </ul>
  47. </div>
  48. {% else %}
  49. <div class="apk-container-pdf">
  50.     <div class="uk-container apk-container-1000">
  51.         <div class="{{ pimcore_select("grille")}}" uk-grid uk-height-match="target: .apk-content">
  52.             
  53.         {% for i in pimcore_block('contentblock').iterator %}
  54.             <div>
  55.                 {% if not pimcore_input("videoId").isEmpty %}
  56.                     <div class="apk-content" uk-lightbox>
  57.                         <a class="uk-position-relative uk-display-block" href="https://www.youtube.com/watch?v={{pimcore_input("videoId")}}">
  58.                             <div class="uk-overlay-transparent uk-position-cover">
  59.                                 <div class="uk-position-center">
  60.                                     <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>
  61.                                 </div>
  62.                             </div>
  63.                             <div class="apk-image">{{ pimcore_image('bg-video',{ "width" : 200}) }}</div>
  64.                             {{ pimcore_input("videoText") }}
  65.                         </a>
  66.                     </div>
  67.                 {% else %}
  68.                 <div>
  69.                     <div class="apk-content" data-apk-href="{{ pimcore_link("grid-content").getHref() }}">
  70.                         <div class="apk-image">{{ pimcore_image('bg-image',{ "width" : 200}) }}</div>
  71.                         {{ pimcore_link("grid-content") }}
  72.                     </div>
  73.                 </div>
  74.                 {% endif %}
  75.             </div>
  76.         {% endfor %}
  77.         
  78.         </div>
  79.     </div>
  80. </div>
  81. {% endif %}