mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
[IMPR] Add Hours example
This commit is contained in:
parent
d16dec09a6
commit
cc10c9b659
15
templates/A2nt/CMSNiceties/Models/OpeningHours.ss
Executable file
15
templates/A2nt/CMSNiceties/Models/OpeningHours.ss
Executable 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 %>
|
Loading…
Reference in New Issue
Block a user