]> git.mxchange.org Git - friendica.git/commitdiff
Extend profile editor information.
authorBeanow <beanow@project-virality.com>
Fri, 27 Jun 2014 23:31:11 +0000 (01:31 +0200)
committerBeanow <beanow@project-virality.com>
Fri, 27 Jun 2014 23:31:11 +0000 (01:31 +0200)
* Labels for splitting fields into sections.
* Security token for profile_photo action.

mod/profiles.php

index c47d9ad5159c02a58b7d1615cc64c5c4d4b12c5d..7903b8b604c8e083f5bf5479e8100852306336b1 100644 (file)
@@ -137,6 +137,8 @@ function profiles_init(&$a) {
 
                profile_load($a,$a->user['nickname'],$r[0]['id']);
        }
+       
+       
 
 }
 
@@ -636,6 +638,7 @@ function profiles_content(&$a) {
                $o .= replace_macros($tpl,array(
                        '$multi_profiles' => feature_enabled(local_user(),'multi_profiles'),
                        '$form_security_token' => get_form_security_token("profile_edit"),
+                       '$form_security_token_photo' => get_form_security_token("profile_photo"),
                        '$profile_clone_link' => 'profiles/clone/' . $r[0]['id'] . '?t=' . get_form_security_token("profile_clone"),
                        '$profile_drop_link' => 'profiles/drop/' . $r[0]['id'] . '?t=' . get_form_security_token("profile_drop"),
                        '$banner' => t('Edit Profile Details'),
@@ -645,6 +648,15 @@ 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_profile_photo' => t('Upload Profile Photo'),
                        '$lbl_profname' => t('Profile Name:'),
                        '$lbl_fullname' => t('Your Full Name:'),
                        '$lbl_title' => t('Title/Description:'),