src/Elements/Bundle/DemiFrontendBundle/Resources/views/Accommodation/includes/detail-templates/hostdescriptions.desktop.html.twig line 1

Open in your IDE?
  1. {%  if hostDescriptions is not empty or hostImages is not empty %}
  2.     <section class="mt-4"
  3.              data-track-content
  4.              data-content-name="{{ (package is not null and package != false) ? 'package-' : 'accommodation-' }}host-info">
  5.         <h2 class="mb-4 text-primary">{{ "demi.detail.headline.host-info"|trans }}</h2>
  6.         <div class="row">
  7.             <div class="col-2">
  8.                 <div class="embed-responsive embed-responsive-1by1">
  9.                     {% if hostImages is not empty %}
  10.                         {%  for hostImage in hostImages %}
  11.                             {{ hostImage.getThumbnail('demi-host-info').getHTML({'disableWidthHeightAttributes': true, 'imgAttributes': {"class": "embed-responsive-item"}})|raw }}
  12.                         {% endfor %}
  13.                     {% endif %}
  14.                 </div>
  15.             </div>
  16.             {% if hostDescriptions is not empty %}
  17.                 <div class="col-10">
  18.                     <div class="wysiwyg">
  19.                     <div class="wysiwyg">
  20.                         {% for hostDescription in hostDescriptions %}
  21.                             {{ hostDescription|raw }}
  22.                         {% endfor %}
  23.                     </div>
  24.                 </div>
  25.             {% endif %}
  26.         </div>
  27.         <hr class="hr--border-gray my-5">
  28.     </section>
  29. {% endif %}