]> git.mxchange.org Git - friendica.git/commitdiff
Some changes to the labels and an edit profile button.
authorBeanow <beanow@project-virality.com>
Thu, 3 Jul 2014 16:39:22 +0000 (18:39 +0200)
committerBeanow <beanow@project-virality.com>
Thu, 3 Jul 2014 16:39:22 +0000 (18:39 +0200)
include/profile_advanced.php
mod/profiles.php

index 8dfb1beecc3744d2661efb34dddb490cf01619f8..05fd56d023f9d7a8b06df2f44f779cf042e17ca6 100644 (file)
@@ -79,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
         ));
     }
 
index 7903b8b604c8e083f5bf5479e8100852306336b1..423804437ac62569e1f9712503f2bd48372dc995 100644 (file)
@@ -648,14 +648,13 @@ function profiles_content(&$a) {
                        '$cr_prof' => t('Create a new profile using these settings'),
                        '$cl_prof' => t('Clone this profile'),
                        '$del_prof' => t('Delete this profile'),
-                       '$lbl_basic_section' => t('Edit basic information'),
-                       '$lbl_picture_section' => t('Edit profile picture'),
-                       '$lbl_location_section' => t('Edit location'),
-                       '$lbl_contacting_section' => t('Edit contacting information'),
-                       '$lbl_status_section' => t('Edit status information'),
-                       '$lbl_about_section' => t('Edit additional information'),
-                       '$lbl_interests_section' => t('Edit interests'),
-                       '$lbl_keywords_section' => t('Edit keywords'),
+                       '$lbl_basic_section' => t('Basic information'),
+                       '$lbl_picture_section' => t('Profile picture'),
+                       '$lbl_location_section' => t('Location'),
+                       '$lbl_preferences_section' => t('Preferences'),
+                       '$lbl_status_section' => t('Status information'),
+                       '$lbl_about_section' => t('Additional information'),
+                       '$lbl_interests_section' => t('Interests'),
                        '$lbl_profile_photo' => t('Upload Profile Photo'),
                        '$lbl_profname' => t('Profile Name:'),
                        '$lbl_fullname' => t('Your Full Name:'),