templates/pages/modal/popup/index.html.twig line 1

Open in your IDE?
  1. {% extends app.request.xmlHttpRequest ? 'ajax.html.twig' : 'base.html.twig' %}
  2. {% block content %}
  3.     {% set popup = popup|default(null) %}
  4.     {% set imageClass = 'popup-modal__image' %}
  5.     {% set pictureClass = 'popup-modal__picture' %}
  6.     {% if popup is has_image('imageMobName') %}
  7.         {% set imageClass = 'popup-modal__image popup-modal__image_desk' %}
  8.         {% set pictureClass = 'popup-modal__picture popup-modal__picture_desk' %}
  9.     {% endif %}
  10.     <div class="popup-modal">
  11.         <div class="popup-modal__wrap">
  12.             <div class="popup-modal__image-wrapper">
  13.                 {% if popup is has_image('imageName') %}
  14.                     {% include '_parts/image/adaptive-image.html.twig' with {
  15.                         object: popup,
  16.                         field: 'imageFile',
  17.                         size: 'popup_thumb',
  18.                         alt: popup.title,
  19.                         class: imageClass,
  20.                         classPicture: pictureClass,
  21.                     } %}
  22.                 {% endif %}
  23.                 {% if popup is has_image('imageMobName') %}
  24.                     {% include '_parts/image/adaptive-image.html.twig' with {
  25.                         object: popup,
  26.                         field: 'imageMobFile',
  27.                         size: 'popup_thumb',
  28.                         alt: popup.title,
  29.                         class: 'popup-modal__image popup-modal__image_mob',
  30.                         classPicture: 'popup-modal__picture popup-modal__picture_mob',
  31.                     } %}
  32.                 {% endif %}
  33.             </div>
  34.             <div class="popup-modal__info {% if form.vars.submitted %} popup-modal__info_step-form{% endif %}">
  35.                 {% include 'pages/modal/popup/popup-modal-form.html.twig' with {
  36.                     class: 'popup-modal__form'
  37.                 } %}
  38.             </div>
  39.         </div>
  40.     </div>
  41. {% endblock %}