BUSSINESS HOUR
-
Hello, I would like to know if the following code is correct, since no matter how the schedule is set, if it is already closed, or what. It always shows the legend “We are open now”, when the legend has to be “Sorry, we are closed” should appear.
// Whether or not to display the open status message. if ($options['show_open_status']) { if (BHS::openStatus($business_hours)) { printf('<div class="rtclbh-status rtclbh-status-open">%s</div>', !empty($options['open_status_text']) ? $options['open_status_text'] : __('We are currently open.', 'classified-listing')); } else { printf('<div class="rtclbh-status rtclbh-status-closed">%s</div>', !empty($options['close_status_text']) ? $options['close_status_text'] : __('Sorry, we are currently closed.', 'classified-listing')); } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘BUSSINESS HOUR’ is closed to new replies.