templates/front/offer/offer_preview/includes/bottom/right_block_offer.twig line 1

Open in your IDE?
  1. {% include 'front/offer/offer_preview/includes/bottom/right_block/right_block.twig'
  2.     with
  3.     {
  4.         application_button: true
  5.     }
  6. %}
  7. {% if offer.modal['externalApplications']['isExternal'] is defined and offer.modal['externalApplications']['isExternal']  != true  %}
  8. <div class="fixed-button offer-fixed-button d-block d-sm-none">
  9.     <button class="py-3 btn-secondary border-secondary" data-bs-toggle="modal" data-bs-target="#offer-modal">{{ 'USER_ZONE.OFFER.PRE_VIEW.APPLY'|trans }}</button>
  10. </div>
  11. {% else %}
  12.  
  13. <div class="fixed-button offer-fixed-button d-block d-sm-none col-12">
  14.     <div class="row">
  15.     {% if offer.modal['externalApplications']['source'] is defined and offer.modal['externalApplications']['source'] is not empty %}
  16.                 {% set outerPage = offer.modal['externalApplications']['source'] %}
  17.                 <a href="{{ outerPage }}" class="py-3 text-center btn-secondary border-secondary" >{{ 'USER_ZONE.OFFER.PRE_VIEW.APPLY'|trans }}</a>
  18.         {% else %}
  19.                <button class="py-3 btn-secondary border-secondary" 
  20.                 data-bs-toggle="modal"
  21.                 data-bs-target="#offer-modal"
  22.                 >{{ 'USER_ZONE.OFFER.PRE_VIEW.APPLY'|trans }}</button>
  23.         {% endif %}
  24.     </div>
  25. </div>
  26. {% endif %}
  27. {% include 'front/offer/offer_preview/includes/modal/modal.twig' with { offer: offer } %}