X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fprofile_advanced.php;h=8dfb1beecc3744d2661efb34dddb490cf01619f8;hb=2d1b261fad5b92568b1572b36b3618d149323fa0;hp=41ad322b2c2e51fa29e6667aa397b5addb33c8f3;hpb=2ea2e7f4b4a1f890cfcba95e92bf81a273042196;p=friendica.git
diff --git a/include/profile_advanced.php b/include/profile_advanced.php
index 41ad322b2c..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'],5) . ' 00:00 +00:00',$short_bd_format)))
- . "
\r\n
";
+ if($a->profile['marital']) $profile['marital'] = array( t('Status:'), $a->profile['marital']);
-$o .= '