condense birthday display
This commit is contained in:
parent
b3050d3bc8
commit
3d323fd260
10
boot.php
10
boot.php
|
@ -2423,7 +2423,13 @@ function get_birthdays() {
|
||||||
);
|
);
|
||||||
|
|
||||||
if($r && count($r)) {
|
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-adjust">' . t("\x28Adjusted for local time\x29") . '</div>';
|
||||||
$o .= '<div id="birthday-title-end"></div>';
|
$o .= '<div id="birthday-title-end"></div>';
|
||||||
|
|
||||||
|
@ -2439,7 +2445,7 @@ function get_birthdays() {
|
||||||
. '</div>' ;
|
. '</div>' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
$o .= '</div>';
|
$o .= '</div></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user