coryetzkorn / php-store-hours

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

Exception Messages #9

Open coryetzkorn opened 9 years ago

coryetzkorn commented 9 years ago

I am playing around with your php store hours app from GitHub. I was wondering if there a way to have a special message (i.e.: Happy Mother’s Day) assigned to a date that would be display with that specific exception date. Ultimately it would be awesome to have something like this being pulled from the exception array:

OR

Would you create another array for that specific date? Like: $exceptions = array( '12/25' => array( '8am - 2pm’, ‘Merry Christmas' ),

I think this would make it a more personal experience to the visitor.

alexsmacd commented 4 years ago

@coryetzkorn did you ever get anywhere with this suggestion? I'm looking to implement something like this. If I end up creating something functional, I'll submit it. No promises...haha!