X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fprofile_advanced.php;h=ccecb95dee7056b024c3698547c65d4d235084ec;hb=e5a7b3e24b5eccf31be7ef5b78580b599a94952f;hp=22e035fe64758178de83b3bb47ef9ffa6560d227;hpb=273594af62c960b5a52da5ec1cf6d6bd450415ba;p=friendica.git
diff --git a/include/profile_advanced.php b/include/profile_advanced.php
index 22e035fe64..ccecb95dee 100644
--- a/include/profile_advanced.php
+++ b/include/profile_advanced.php
@@ -2,257 +2,78 @@
function advanced_profile(&$a) {
-$o .= '';
+ $o .= '';
-$o .= '
-
$lbl_birthday
-EOT;
+ if($age = age($a->profile['dob'],$a->profile['timezone'],'')) $profile['age'] = array( t('Age:'), $age );
+
-// If no year, add an arbitrary one so just we can parse the month and day.
+ if($a->profile['marital']) $profile['marital'] = array( t('Status:'), $a->profile['marital']);
-$year_bd_format = t('j F, Y');
-$short_bd_format = t('j F');
-$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['with']) $profile['marital']['with'] = $a->profile['with'];
-$o .= '