cms-niceties/templates/A2nt/CMSNiceties/Models/OpeningHours.ss

16 lines
445 B
Scheme
Raw Normal View History

2023-06-02 16:35:58 +02:00
<% with $SiteConfig %>
<% if $HolidayToday %>
<div class="hours hours--closed">
CLOSED
</div>
<% else %>
<% if $OpeningHoursToday %>
<div class="hours hours--open">
<% loop $OpeningHoursToday %>
Open: $From.Format("h a") | Close: $Till.Format("h a")
<% end_loop %>
</div>
<% end_if %>
<% end_if %>
<% end_with %>