Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% capture CurrentDay %}{{ now | date:"%A" }}{% endcapture %}
- {% assign DoW = "Monday,Tuesday,Wednesday,Thursday,Friday" %}
- # matches substrings, case sensitive
- {% if DoW contains CurrentDay %}
- Today is a work day! - - Place some logic here that would handle work-hours.
- {% if CurrentTime > TimeBegin %}
- {% if CurrentTime < TimeEnd %}
- {{ RegularHoursText }}
- {% else %}
- {{ AfterHoursText }}
- {% endif %}
- {% else CurrentTime < TimeBegin %}
- {{ AfterHoursText }}
- {% endif %}
- {% else %}
- Today is NOT a work day!
- {{ AfterHoursText }}
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement