templates/includes/blocks/texte.html.twig line 1

Open in your IDE?
  1. {# div tag should only be outputted when a description is set #}
  2. {% set title = content.title|default %}
  3. {% if content.description %}
  4.     
  5.     {% set content_descr = content.description %}
  6.     {% if '<p' in content_descr %}
  7.         <div class="pt-4 pt-lg-3 pb-3 block-{{content.type}} content-paragraphe wow fadeIn" data-wow-duration="0.8s" data-wow-delay="0.2s">
  8.             <div class="max-container-2 font-16 text-grey mt-2 mx-auto text-center px-lg-5 {{ content.classT }}" > 
  9.                 {{ content.description|raw }}
  10.                 {{title}}
  11.                 {%  if 'Découvrez Panda-Coworking' in content_descr %}
  12.                     <div class="pt-3 text-center"><a href="/details" target="_blank" class="btn-link btn-showPopup transition-bgcolor bg-green-s minw-sm">Réserver</a></div>
  13.                 {%  elseif 'Rejoindre Panda-Coworking' in content_descr %} 
  14.                     <div class="pt-3 text-center"><a href="/details" target="_blank" class="btn-link btn-showPopup transition-bgcolor bg-green-s minw-sm">Réserver</a></div>
  15.                 {% endif %}                
  16.             </div>
  17.         </div>
  18.     {% elseif '<h3' in content_descr  %}
  19.         <div class="pt-4 pt-lg-3 pb-3 block-{{content.type}} content-title-other wow fadeIn {{ content.classT }}" data-wow-duration="0.8s" data-wow-delay="0.2s">
  20.             <div class="max-container-4 font-20 mt-2 mx-auto text-center px-lg-5 ">
  21.                 {{ content.description|raw }}
  22.             </div>
  23.         </div>
  24.     {% else %}
  25.      <div class="bloc-intro pt-4 wow fadeInDown" data-wow-duration="0.8s" data-wow-delay="0.2s">
  26.         <div class="max-container-4 bloc-txt-title block-{{content.type}} {{ content.classT }}"> 
  27.             
  28.             {{ content.description|raw }}
  29.         </div>
  30.     </div>
  31.     {% endif %}
  32.     
  33. {% endif %}