From cc10c9b659ab9aaeb2f95eb91c88a2e779a145e5 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Fri, 2 Jun 2023 16:35:58 +0200 Subject: [PATCH] [IMPR] Add Hours example --- templates/A2nt/CMSNiceties/Models/OpeningHours.ss | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 templates/A2nt/CMSNiceties/Models/OpeningHours.ss diff --git a/templates/A2nt/CMSNiceties/Models/OpeningHours.ss b/templates/A2nt/CMSNiceties/Models/OpeningHours.ss new file mode 100755 index 0000000..404922d --- /dev/null +++ b/templates/A2nt/CMSNiceties/Models/OpeningHours.ss @@ -0,0 +1,15 @@ +<% with $SiteConfig %> + <% if $HolidayToday %> +
+ CLOSED +
+ <% else %> + <% if $OpeningHoursToday %> +
+ <% loop $OpeningHoursToday %> + Open: $From.Format("h a") | Close: $Till.Format("h a") + <% end_loop %> +
+ <% end_if %> + <% end_if %> +<% end_with %>