×
" . $true_msg . "
" . $phone_number . "
";
} else {
echo "
";
$next_day = null;
$start_searching = false;
foreach ($days as $day) {
if ($day === $current_day) {
$start_searching = true;
}
if ($start_searching && !empty($options[$day]['check'])) {
$next_day = $day;
break;
}
}
// if still not found, start from Monday again
if (!$next_day) {
foreach ($days as $day) {
if (!empty($options[$day]['check'])) {
$next_day = $day;
break;
}
}
}
if ($next_day && $show_next) {
echo "
" . $next_msg . ucfirst($next_day) . " from " . $options[$next_day]['from'] . " to " . $options[$next_day]['to'] . ".
";
}
}
?>