custom/plugins/MoorlFoundation/src/Resources/views/plugin/moorl-foundation/opening-hours.html.twig line 1

Open in your IDE?
  1. <div class="moorl-opening-hours">
  2.     {% for dayItem in openingHours %}
  3.         <div class="form-row">
  4.             <div class="col-12 col-md-5">
  5.                 <div>{{ "moorl-foundation.days.#{dayItem.day}"|trans }}:</div>
  6.             </div>
  7.             <div class="col-12 col-md-7">
  8.                 {% if not dayItem.times %}
  9.                     <span class="moorl-opening-hours-range closed">
  10.                             {{ dayItem.info ? dayItem.info|trans : "moorl-foundation.days.closed"|trans }}
  11.                         </span>
  12.                 {% else %}
  13.                     {% for time in dayItem.times %}
  14.                         {% if time.from %}
  15.                             <span class="moorl-opening-hours-range">
  16.                                     {{ time.from|slice(0, 5) }}-{{ time.until|slice(0, 5) }}
  17.                                 </span>
  18.                         {% endif %}
  19.                     {% endfor %}
  20.                 {% endif %}
  21.             </div>
  22.         </div>
  23.     {% endfor %}
  24. </div>