aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-17 00:32:24 -0700
committerFriendika <info@friendika.com>2011-03-17 00:32:24 -0700
commit3d323fd2608d58164f2fb1889f508b2796190f23 (patch)
treec57c8da9a99e13d76f9e3eba9b921708af4bbd2f /boot.php
parentb3050d3bc8fc812f0579982e1c866ab07499e0a8 (diff)
downloadvolse-hubzilla-3d323fd2608d58164f2fb1889f508b2796190f23.tar.gz
volse-hubzilla-3d323fd2608d58164f2fb1889f508b2796190f23.tar.bz2
volse-hubzilla-3d323fd2608d58164f2fb1889f508b2796190f23.zip
condense birthday display
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index d02ecd344..330c965f4 100644
--- a/boot.php
+++ b/boot.php
@@ -2423,7 +2423,13 @@ function get_birthdays() {
);
if($r && count($r)) {
- $o .= '<div id="birthday-wrapper"><div id="birthday-title">' . t('Birthdays this week:') . '</div>';
+ $total = 0;
+ foreach($r as $rr)
+ if(strlen($rr['name']))
+ $total ++;
+
+ $o .= '<div id="birthday-notice" class="birthday-notice fakelink" onclick=openClose(\'birthday-wrapper\'); >' . t('Birthday Reminders') . ' ' . '(' . $total . ')' . '</div>';
+ $o .= '<div id="birthday-wrapper" style="display: none;" ><div id="birthday-title">' . t('Birthdays this week:') . '</div>';
$o .= '<div id="birthday-adjust">' . t("\x28Adjusted for local time\x29") . '</div>';
$o .= '<div id="birthday-title-end"></div>';
@@ -2439,7 +2445,7 @@ function get_birthdays() {
. '</div>' ;
}
- $o .= '</div>';
+ $o .= '</div></div>';
}
return $o;