X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fprofile_advanced.php;h=004a58524b53385c03e32b43feca2759fb59301d;hb=a9690dfe2d9358fcbb156644df2d12099ff798c4;hp=c1dfad66f4e2c6f2dbc4e75a9887f3edf45417bc;hpb=85f709320b588f3231875d097217bd9abd223c9f;p=friendica.git
diff --git a/include/profile_advanced.php b/include/profile_advanced.php
old mode 100644
new mode 100755
index c1dfad66f4..004a58524b
--- a/include/profile_advanced.php
+++ b/include/profile_advanced.php
@@ -2,257 +2,80 @@
function advanced_profile(&$a) {
-$o .= '';
+ $o .= '';
-$o .= '
-
$lbl_birthday
-EOT;
+ $tpl = get_markup_template('profile_advanced.tpl');
+
+ $profile = array();
+
+ $profile['fullname'] = array( t('Full Name:'), $a->profile['name'] ) ;
+
+ if($a->profile['gender']) $profile['gender'] = array( t('Gender:'), $a->profile['gender'] );
+
-// If no year, add an arbitrary one so just we can parse the month and day.
+ if(($a->profile['dob']) && ($a->profile['dob'] != '0000-00-00')) {
+
+ $year_bd_format = t('j F, Y');
+ $short_bd_format = t('j F');
-$year_bd_format = t('j F, Y');
-$short_bd_format = t('j F');
+
+ $val = ((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)));
+
+ $profile['birthday'] = array( t('Birthday:'), $val);
-$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
";
+ }
-$o .= '