From: Friendika Date: Tue, 25 Oct 2011 22:36:49 +0000 (-0700) Subject: event notification stuff X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=52038c6b8812ea6eeac4dc3fdfc0f7315b4ecd72;p=friendica.git event notification stuff --- 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 .= '