craftcms / store-hours

Manage business hours with Craft CMS.
https://plugins.craftcms.com/store-hours
MIT License
61 stars 15 forks source link

Only show days that have time #28

Closed mbanta88 closed 6 years ago

mbanta88 commented 6 years ago

My client's company is only open Mon-Fri. How can I make it so it only renders the days with times that are filled in instead of the entire week?

screen shot 2018-06-25 at 4 14 55 pm screen shot 2018-06-25 at 4 14 21 pm
brandonkelly commented 6 years ago

You can wrap your <tr ... /> code with this:

{% if dayHours.open or dayHours.close %}
    <tr ... />
{% endif %}