X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fprofile_advanced.php;h=8dfb1beecc3744d2661efb34dddb490cf01619f8;hb=d905f0a3e3001496df120b685b6f2d42cc8598d2;hp=c1dfad66f4e2c6f2dbc4e75a9887f3edf45417bc;hpb=85f709320b588f3231875d097217bd9abd223c9f;p=friendica.git
diff --git a/include/profile_advanced.php b/include/profile_advanced.php
index c1dfad66f4..8dfb1beecc 100644
--- a/include/profile_advanced.php
+++ b/include/profile_advanced.php
@@ -2,257 +2,89 @@
function advanced_profile(&$a) {
-$o .= '';
+ $o = '';
-$o .= '
-
$lbl_birthday
-EOT;
+ $profile['birthday'] = array( t('Birthday:'), $val);
-// If no year, add an arbitrary one so just we can parse the month and day.
+ }
-$year_bd_format = t('j F, Y');
-$short_bd_format = t('j F');
+ if($age = age($a->profile['dob'],$a->profile['timezone'],'')) $profile['age'] = array( t('Age:'), $age );
+
-$o .= '
'
- . ((intval($a->profile['dob']))
- ? day_translate(datetime_convert('UTC','UTC',$a->profile['dob'] . ' 00:00 +00:00',$year_bd_format))
- : day_translate(datetime_convert('UTC','UTC','2001-' . substr($a->profile['dob'],6) . ' 00:00 +00:00',$short_bd_format)))
- . "
\r\n
";
+ if($a->profile['marital']) $profile['marital'] = array( t('Status:'), $a->profile['marital']);
-$o .= '