]> git.mxchange.org Git - friendica.git/blobdiff - include/profile_advanced.php
Merge pull request #1518 from tugelbend/develop
[friendica.git] / include / profile_advanced.php
index ffb45090b9b8c5f876c30b2272ba4b48287f9bd5..05fd56d023f9d7a8b06df2f44f779cf042e17ca6 100644 (file)
@@ -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
         ));
     }