[IMPR] Add Hours example

This commit is contained in:
Tony Air 2023-06-02 16:35:58 +02:00
parent d16dec09a6
commit cc10c9b659
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<% 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 %>