It would be nice to add a TWIG function that requires a template file or uses a default template file specified in the config.yml.dist that allows the user to output data by default like this -
{% for hour in store_hours_hours_today(record.hours) %}
{% set this_day_hours = hour|split('-') %}
Open: {{ this_day_hours[0]|date('g:i a') }}
Close: {{ this_day_hours[1]|date('g:i a') }}
{% endfor %}
or maybe it shows an example of outputting each one based upon the day....
Monday - Friday 7am to 3:30pm
Sunday - Closed
After Hours Support is Available
Then you could call a function outputStoreHoursFormatted(twigTemplate = defaut.twig).
It would be nice to add a TWIG function that requires a template file or uses a default template file specified in the config.yml.dist that allows the user to output data by default like this -
or maybe it shows an example of outputting each one based upon the day.... Monday - Friday 7am to 3:30pm Sunday - Closed After Hours Support is Available
Then you could call a function
outputStoreHoursFormatted(twigTemplate = defaut.twig)
.