- // Wishes "Happy birthday" when required
- $profile = $user->profile();
- if (!is_null($profile)) {
- if ($profile->next_birthday == date('Y-m-d')) {
- $birthyear = (int)date('Y', strtotime($profile->birthdate));
- $curyear = (int)date('Y');
- $page->assign('birthday', $curyear - $birthyear);
- }
+ // Adds a reminder onebox to the page.
+ require_once 'reminder.inc.php';
+ if (($reminder = Reminder::GetCandidateReminder($user))) {
+ $reminder->Prepare($page);
+ }
+
+ // Wishes "Happy birthday" when required
+ $profile = $user->profile();
+ if (!is_null($profile)) {
+ if ($profile->next_birthday == date('Y-m-d')) {
+ $birthyear = (int)date('Y', strtotime($profile->birthdate));
+ $curyear = (int)date('Y');
+ $page->assign('birthday', $curyear - $birthyear);