templates/components/image_carousel_modal/image_carousel_modal.html.twig line 1

Open in your IDE?
  1. {% set options = {
  2.     modalId: 'galleryModal',
  3.     modalTitle: null,
  4.     elementClickTriggerSelector: null,
  5. }|merge(options|default({})) %}
  6. <div class="modal fade gallery-modal" id="{{ options.modalId }}" tabindex="-1" role="dialog"
  7.      aria-labelledby="{{ options.modalId }}Label" aria-hidden="true"
  8.     {{ options.elementClickTriggerSelector
  9.     ? ('data-element-click-trigger-selector="' ~ options.elementClickTriggerSelector ~ '"')|raw }}
  10. >
  11.     <div class="modal-dialog modal-dialog-centered" role="document" style="height: calc(100vh - 20px); max-width: 90vw; margin: 10px auto;">
  12.         <div class="modal-content" style="height: 100%;">
  13.             <div class="modal-header" style="flex-shrink: 0;">
  14.                 <h5 class="modal-title" id="{{ options.modalId }}Label">
  15.                     <span class="gallery-title{{ options.modalTitle ? ' permanent'}}">{{ options.modalTitle }}</span>
  16.                 </h5>
  17.                 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  18.                     <span aria-hidden="true">&times;</span>
  19.                 </button>
  20.             </div>
  21.             <div class="modal-body d-flex flex-column overflow-hidden p-3" style="flex: 1;">
  22.                 <div class="gallery-slides-container flex-grow-1" style="min-height: 0; display: flex; flex-direction: column;">
  23.                     {% block slides %}{% endblock %}
  24.                 </div>
  25.                 <div class="gallery-controls d-flex justify-content-between align-items-center" style="position: absolute; bottom: 20px; left: 20px; right: 20px; pointer-events: none;">
  26.                     <button class="btn btn-secondary gallery-prev-btn" style="pointer-events: auto;"><i class="fas fa-chevron-left"></i></button>
  27.                     <button class="btn btn-secondary gallery-next-btn" style="pointer-events: auto;"><i class="fas fa-chevron-right"></i></button>
  28.                 </div>
  29.             </div>
  30.         </div>
  31.     </div>
  32. </div>