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