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

Open in your IDE?
  1. {%  if hostDescriptions is not empty or hostImages is not empty %}
  2.     <section class="mt-4" data-track-content data-content-name="{{ package is defined and package is not null ? 'package-' : 'accommodation-'}}host-info">
  3.         <h2 class="h3 mb-2">{{ "demi.detail.headline.host-info"|trans }}</h2>
  4.         <div class="card box-shadow js-expandable expandable-block">
  5.             <script data-cookieconsent="ignore">
  6.                 _config.expandable = true;
  7.             </script>
  8.             <div class="expandable-block__content-wrapper js-expandable__content-wrapper">
  9.                 <div class="card-body js-expandable__content expandable-block__content">
  10.                     <div class="row row--gutter-width-14">
  11.                         <div class="col col-auto">
  12.                             {% for hostImage in hostImages %}
  13.                                 {{ hostImage.getThumbnail('demi-host-info').getHTML({'disableWidthHeightAttributes': true})|raw }}
  14.                             {% endfor %}
  15.                         </div>
  16.                         <div class="col">
  17.                             <div class="wysiwyg">
  18.                                 {% for hostDescription in hostDescriptions %}
  19.                                     {{ hostDescription|raw }}
  20.                                 {% endfor %}
  21.                             </div>
  22.                         </div>
  23.                     </div>
  24.                 </div>
  25.             </div>
  26.             {{ include('@ElementsDemiFrontend/Includes/elements/read-more.mobile.html.twig') }}
  27.         </div>
  28.     </section>
  29. {% endif %}