coryetzkorn / php-store-hours

Output content based on time-of-day and-day-of-week.
MIT License
136 stars 55 forks source link

Add hours_overview method (resolve #11). #14

Closed mermshaus closed 8 years ago

mermshaus commented 8 years ago

Also updates example and README. Increases version number to 3.1.

Edit: Demo: http://i.imgur.com/P1Ndgbq.png

coryetzkorn commented 8 years ago

This is great!

I think it would be better not to combine days with similar hours (or it could be an option). The table should always have 7 rows. Thoughts?

mermshaus commented 8 years ago

I added a $groupSameDays parameter to hours_overview that defaults to false. See updated index.php for demonstration. What do you think?