$HourOfDay = date("G"); if ($HourOfDay < 12) { return 'Good Morning'; } elseif ($HourOfDay < 18) { return 'Good Afternoon'; } else { return 'Good Evening'; }
This simple Droplet will display a Good Morning/Afternoon/Evening message depending on the time of day.
$HourOfDay = date("G"); if ($HourOfDay < 12) { return 'Good Morning'; } elseif ($HourOfDay < 18) { return 'Good Afternoon'; } else { return 'Good Evening'; }
Example
[[greeting]]