Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/21/2014 11:08:04 PM (11 years ago)
Author:
johnjamesjacoby
Message:

First pass at Profile Settings for improved profile field visibility UX:

  • Adds /members/single/settings/profile.php template to bp-legacy and bp-default.
  • Introduces bp-xprofile.settings.php for Settings specific functionality going forward.
  • Introduces actions & screens for handling output and saving of profile visibility data.
  • Introduces _is_ function for identifying the new component/action URL.
  • See #5352. (still more @todo...)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-screens.php

    r7889 r7960  
    209209    bp_core_load_template( apply_filters( 'xprofile_template_change_avatar', 'members/single/home' ) );
    210210}
     211
     212/**
     213 * Show the xprofile settings template
     214 *
     215 * @since BuddyPress (2.0.0)
     216 */
     217function bp_xprofile_screen_settings() {
     218
     219    // Redirect if no privacy settings page is accessible
     220    if ( bp_action_variables() || ! bp_is_active( 'xprofile' ) ) {
     221        bp_do_404();
     222        return;
     223    }
     224
     225    // Load the template
     226    bp_core_load_template( apply_filters( 'bp_settings_screen_xprofile', '/members/single/plugin' ) );
     227}
Note: See TracChangeset for help on using the changeset viewer.