mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Add config option to show age for birthdays
This commit is contained in:
parent
3100e3407c
commit
94f678548b
@ -1923,7 +1923,9 @@ class calendar_bo
|
|||||||
'month' => $m,
|
'month' => $m,
|
||||||
'occurence' => 0,
|
'occurence' => 0,
|
||||||
'name' => lang('Birthday').' '.($pers['n_given'] ? $pers['n_given'] : $pers['n_prefix']).' '.$pers['n_middle'].' '.
|
'name' => lang('Birthday').' '.($pers['n_given'] ? $pers['n_given'] : $pers['n_prefix']).' '.$pers['n_middle'].' '.
|
||||||
$pers['n_family'].($y && !$GLOBALS['egw_info']['server']['hide_birthdays'] ? ' ('.$y.')' : ''),
|
$pers['n_family'].
|
||||||
|
($GLOBALS['egw_info']['server']['hide_birthdays'] == 'age' ? ' '.($year - $y): '').
|
||||||
|
($y && in_array($GLOBALS['egw_info']['server']['hide_birthdays'], array('','age')) ? ' ('.$y.')' : ''),
|
||||||
'birthyear' => $y, // this can be used to identify birthdays from holidays
|
'birthyear' => $y, // this can be used to identify birthdays from holidays
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -91,6 +91,7 @@
|
|||||||
<select id="newsettings[hide_birthdays]">
|
<select id="newsettings[hide_birthdays]">
|
||||||
<option value="">Yes</option>
|
<option value="">Yes</option>
|
||||||
<option value="dateonly">Show only the date, not the year</option>
|
<option value="dateonly">Show only the date, not the year</option>
|
||||||
|
<option value="age">Show year and age</option>
|
||||||
<option value="yes">No</option>
|
<option value="yes">No</option>
|
||||||
</select>
|
</select>
|
||||||
</row>
|
</row>
|
||||||
|
Loading…
Reference in New Issue
Block a user