X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fprofile_advanced.php;h=8c2acd8e7639441573689a1efc3076af36ed274f;hb=1180919c898155126b098d0a44de6d96feb9aef6;hp=22e035fe64758178de83b3bb47ef9ffa6560d227;hpb=5792b3d3580b9f09460305858293398d8d8a9abf;p=friendica.git
diff --git a/include/profile_advanced.php b/include/profile_advanced.php
index 22e035fe64..8c2acd8e76 100644
--- a/include/profile_advanced.php
+++ b/include/profile_advanced.php
@@ -2,257 +2,79 @@
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'],5) . ' 00:00 +00:00',$short_bd_format)));
-$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
";
+ $profile['birthday'] = array( t('Birthday:'), $val);
-$o .= '