From 52038c6b8812ea6eeac4dc3fdfc0f7315b4ecd72 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 25 Oct 2011 15:36:49 -0700 Subject: [PATCH] event notification stuff --- boot.php | 34 +++++++++++++++++++++++-------- view/theme/duepuntozero/style.css | 13 ++++++++++++ 2 files changed, 38 insertions(+), 9 deletions(-) diff --git a/boot.php b/boot.php index cb4ccb6d81..b60411625a 100644 --- a/boot.php +++ b/boot.php @@ -9,7 +9,7 @@ require_once('include/nav.php'); require_once('include/cache.php'); define ( 'FRIENDIKA_PLATFORM', 'Free Friendika'); -define ( 'FRIENDIKA_VERSION', '2.3.1144' ); +define ( 'FRIENDIKA_VERSION', '2.3.1145' ); define ( 'DFRN_PROTOCOL_VERSION', '2.21' ); define ( 'DB_UPDATE_VERSION', 1098 ); @@ -997,20 +997,23 @@ function get_birthdays() { if($r && count($r)) { $total = 0; - foreach($r as $rr) + $now = strtotime('now'); + $istoday = false; + foreach($r as $rr) { if(strlen($rr['name'])) $total ++; - + if((strtotime($rr['start'] . ' +00:00') < $now) && (strtotime($rr['finish'] . ' +00:00') > $now)) + $istoday = true; + } + $classtoday = $istoday ? ' birthday-today ' : ''; if($total) { - $o .= ''; + $o .= '
' . t('Birthday Reminders') . ' ' . '(' . $total . ')' . '
'; $o .= '