templates/Components/Destination/homepage.old.html.twig line 1

  1. {% if(box is defined) %}
  2.     <div class="room-grid-view wow">
  3.     <div class="" style="background-image: url('{{ sonata_path(box.background, 'background') }}'); background-repeat: no-repeat    ;">
  4.         <div class="text-uppercase" style="padding:10px; display: flex;background-color: rgba(0,0,0,0.74);">
  5. {#            <img src="/assets/images/ico-chorvatsko.png" style="max-width: 60px;">#}
  6.             <img src="{{ sonata_path(box.flag, 'flag') }}" style="max-width: 60px;">
  7.             <div style="margin-left: 20px;color: white; font-weight: normal;font-size: 1.5rem">{{ box.header }}</div>
  8.         </div>
  9.         <div class="room-info">
  10.             <div class="post-title text-center" style="color: white;margin-bottom: 40px">
  11.                 <h2>{{ box.title|raw }}</h2>
  12.             </div>
  13.             {% if(box.links|length > 0) %}
  14.                 <div class="room-book" style="background-color: white;padding-bottom: 15px">
  15.                     {% for link in box.links %}
  16.                         {% if(box.links|length==1) %}
  17.                             <div class="col-md-12 col-sm-12 col-xs-12 clear-padding post-alt text-center">
  18.                                 <a href="{{ link.link }}" class="text-center" style="padding: 7px;">{{ link.title }}</a>
  19.                             </div>
  20.                         {% else %}
  21.                             <div class="col-md-6 col-sm-6 col-xs-6 clear-padding post-alt text-center">
  22.                                 <a href="{{ link.link }}" class="text-center" style="padding: 7px;">{{ link.title }}</a>
  23.                             </div>
  24.                         {% endif %}
  25.                     {% endfor %}
  26.                 </div>
  27.             {% endif %}
  28.             <div class="clearfix"></div>
  29.         </div>
  30.     </div>
  31. </div>
  32. {% endif %}