X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fprofile_advanced.php;h=05fd56d023f9d7a8b06df2f44f779cf042e17ca6;hb=cbe4e2bf8c7b6fea2e700811a15b427e6141c9dd;hp=c1dfad66f4e2c6f2dbc4e75a9887f3edf45417bc;hpb=0ddf84eb5a93729fbadc434f67fd92e098e7117e;p=friendica.git
diff --git a/include/profile_advanced.php b/include/profile_advanced.php
index c1dfad66f4..05fd56d023 100644
--- a/include/profile_advanced.php
+++ b/include/profile_advanced.php
@@ -2,257 +2,92 @@
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 .= '