templates/web/core/modal.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'web' %}
  2. {% if modal is not null %}
  3. <div class="modal__wrapper js-modal-closed" id="myModal" data-dismiss="modal" data-id="{{ modal.id }}">
  4. <div class="modal">
  5. <div class="modal-dialog" style="min-width: 350px;">
  6. <div class="modal-content">
  7. <div class="close-container js-modal-closed" data-dismiss="modal" aria-label="Close" data-id="{{ modal.id }}">
  8. <svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  9. <path fill-rule="evenodd" clip-rule="evenodd"
  10. d="M19.207 6.207a1 1 0 0 0-1.414-1.414L12 10.586 6.207 4.793a1 1 0 0 0-1.414 1.414L10.586 12l-5.793 5.793a1 1 0 1 0 1.414 1.414L12 13.414l5.793 5.793a1 1 0 0 0 1.414-1.414L13.414 12l5.793-5.793z"
  11. fill="#000000"/>
  12. </svg>
  13. </div>
  14. <div class="modal-body">
  15. <div class="modal__item">
  16. <a href="#" class="modal__image">
  17. <img src="{{ vich_uploader_asset(modal.translations[app.request.locale], 'imageFile')| imagine_filter('modal') }}" alt="" loading="lazy"/>
  18. </a>
  19. <div class="modal__content">
  20. <h2 class="modal__title">
  21. <a href="{{ modal.getUrl }}">{{ modal.getTitle }}</a>
  22. </h2>
  23. <div class="modal__text">
  24. {{ modal.getText|raw }}
  25. </div>
  26. <a href="{{ modal.getUrl }}" target="_self" class="qodef-btn qodef-btn-large qodef-btn-outline modal__more js-modal-closed" data-dismiss="modal" data-id="{{ modal.id }}">
  27. <span class="qodef-btn-text">{{'more' | trans}}</span>
  28. </a>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. {% endif %}