php-store-hours
php-store-hours copied to clipboard
Exception Messages
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:
- We are open today from: 8am to 9pm Happy Mother’s Day
OR
- We are open today from: 8am to 2pm Merry Christmas
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.
@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!