templates/front/theme1/popup.html.twig line 1

Open in your IDE?
  1. {% if popup is defined and popup is not empty  %}
  2. {% if popup.actif %}
  3.  <div class="modal fade" id="popup" role="dialog">
  4.     <div class="modal-dialog">
  5.         <div class="modal-content">
  6.             <div class="modal-header">
  7.                             <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  8.             </div>
  9.             <div class="modal-body">
  10.               {% if popup.typemedia != 1 %}
  11.                   {% if popup.typemedia == 2 %}
  12.                     {% if popup.image is not empty %}
  13.                     <div class="image-popup">
  14.                       <img class="lazyload w-100" data-src="{{asset_image(popup.image)}}" src="{{asset_image(popup.image)}}" alt="{{popup.titre}}">
  15.                     </div>
  16.                     {% endif %}
  17.                   {% endif %}
  18.                   {% if popup.typemedia == 3 %}
  19.                       {% if popup.urlvideo is not empty %}
  20.                         <div class="container-fluid wrapper mt-3">
  21.                             <div class="col-md-12 mt-1">
  22.                                 <div class="video">
  23.                                     {% set id_video_externe = popup.urlvideo|split('?v=')[1] %}
  24.                                     <a class="video-thumbnail m-0" href="{{popup.urlvideo}}" data-fancybox="video">
  25.                                         <img src="https://img.youtube.com/vi/{{id_video_externe}}/maxresdefault.jpg" class="img-fluid" alt=""/>
  26.                                     </a>
  27.                                 </div>
  28.                             </div>
  29.                         </div>
  30.                     {% endif %}
  31.                   {% endif %}
  32.               {% endif %}
  33.               <div class="content-popup">
  34.               {% if popup.titre %}
  35.               <div class="titre_video text-center">{{popup.titre}}</div>
  36.               {% endif %}
  37.               {% if popup.texte %}
  38.               <div class="texte_video">{{popup.texte|raw}}</div>
  39.               {% endif %}
  40.               <!-- lien popup -->
  41.               {% if popup.typelien != 1 %}
  42.                                 {% if popup.typelien == '4' %}
  43.                                     <div class="text-center py-2">
  44.                                         <a href="javascript:void(0)" onclick="window.location.href = 'tel:{{popup.telephone}}';" class="btn btn-primary py-3 px-5 mt-3 btn-plus">{{popup.titrelien}}</a>
  45.                                     </div>
  46.                                 {% elseif popup.typelien == '2' %}
  47.                                     <div class="text-center py-2">
  48.                                         <a href="{{popup.lieninterne}}" class="btn btn-primary py-3 px-5 mt-3 btn-plus">{{popup.titrelien}}</a>
  49.                                     </div>
  50.                                 {% elseif popup.typelien == '3' %}
  51.                                     <div class="text-center py-2">
  52.                                         <a href="{{popup.lienexterne}}" target="_blank" class="btn btn-primary py-3 px-5 mt-3 btn-plus">{{popup.titrelien}}</a>
  53.                                     </div>
  54.                                 {% endif %}
  55.                         {% endif %}
  56.              
  57.               </div>
  58.             </div>
  59.         </div>
  60.     </div>
  61.    {% endif %}
  62. {% endif %}