[IMPR] Add Hours example
This commit is contained in:
parent
d16dec09a6
commit
cc10c9b659
|
@ -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 %>
|
Loading…
Reference in New Issue