X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fprofile_advanced.php;h=05fd56d023f9d7a8b06df2f44f779cf042e17ca6;hb=cbe4e2bf8c7b6fea2e700811a15b427e6141c9dd;hp=ffb45090b9b8c5f876c30b2272ba4b48287f9bd5;hpb=d27c6de84e28f8094c695b3857dc69f103cffa08;p=friendica.git diff --git a/include/profile_advanced.php b/include/profile_advanced.php index ffb45090b9..05fd56d023 100644 --- a/include/profile_advanced.php +++ b/include/profile_advanced.php @@ -59,6 +59,11 @@ function advanced_profile(&$a) { if($txt = prepare_text($a->profile['interest'])) $profile['interest'] = array( t('Hobbies/Interests:'), $txt); + if($txt = prepare_text($a->profile['likes'])) $profile['likes'] = array( t('Likes:'), $txt); + + if($txt = prepare_text($a->profile['dislikes'])) $profile['dislikes'] = array( t('Dislikes:'), $txt); + + if($txt = prepare_text($a->profile['contact'])) $profile['contact'] = array( t('Contact information and Social Networks:'), $txt); if($txt = prepare_text($a->profile['music'])) $profile['music'] = array( t('Musical interests:'), $txt); @@ -74,10 +79,13 @@ function advanced_profile(&$a) { if($txt = prepare_text($a->profile['work'])) $profile['work'] = array( t('Work/employment:'), $txt); if($txt = prepare_text($a->profile['education'])) $profile['education'] = array( t('School/education:'), $txt ); - + + if ($a->profile['uid'] == local_user()) + $profile['edit'] = array($a->get_baseurl(). '/profiles/'.$a->profile['id'], t('Edit profile'),"", t('Edit profile')); + return replace_macros($tpl, array( - '$title' => t('Profile'), - '$profile' => $profile, + '$title' => t('Profile'), + '$profile' => $profile )); }