/** * Fires after the display of member profile edit content. * * @since 1.1.0 */ do_action('bp_before_profile_edit_content'); if (bp_has_profile('profile_group_id=' . bp_get_current_profile_group_id())) { while (bp_profile_groups()) { bp_the_profile_group(); ?> <form action="<?php bp_the_profile_group_edit_form_action(); ?> " method="post" id="profile-edit-form" class="standard-form <?php bp_the_profile_group_slug(); ?> "> <?php /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */ do_action('bp_before_profile_field_content'); ?> <h2><?php printf(__("Editing '%s' Profile Group", 'buddypress'), bp_get_the_profile_group_name()); ?> </h2> <?php if (bp_profile_has_multiple_groups()) {
<?php do_action( 'bp_before_profile_edit_content' ) ?> <?php if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <form action="<?php bp_the_profile_group_edit_form_action() ?>" method="post" id="profile-edit-form" class="standard-form <?php bp_the_profile_group_slug() ?>"> <?php do_action( 'bp_before_profile_field_content' ) ?> <h4><?php printf( __( "Editing '%s' Profile Group", "buddypress" ), bp_get_the_profile_group_name() ); ?></h4> <ul class="button-nav"> <?php bp_profile_group_tabs(); ?> </ul> <div class="clear"></div> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div<?php bp_field_css_class( 'editfield' ) ?>> <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?> <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label> <input type="text" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>" value="<?php bp_the_profile_field_edit_value() ?>" /> <?php endif; ?> <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?> <label for="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ) ?><?php endif; ?></label> <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name() ?>" id="<?php bp_the_profile_field_input_name() ?>"><?php bp_the_profile_field_edit_value() ?></textarea>
<?php do_action( 'bp_before_profile_loop_content' ) ?> <?php if ( function_exists('xprofile_get_profile') ) : ?> <?php if ( bp_has_profile() ) : ?> <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php if ( bp_profile_group_has_fields() ) : ?> <?php do_action( 'bp_before_profile_field_content' ) ?> <div class="bp-widget <?php bp_the_profile_group_slug() ?>"> <?php if ( 1 != bp_get_the_profile_group_id() ) : ?> <h4><?php bp_the_profile_group_name() ?></h4> <?php endif; ?> <table class="profile-fields zebra"> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <?php if ( bp_field_has_data() ) : ?> <tr<?php bp_field_css_class() ?>> <td class="label"> <?php bp_the_profile_field_name() ?> </td> <td class="data"> <?php bp_the_profile_field_value() ?> </td>
function bp_mtc_screen_two_content() { global $bp, $wpdb, $creds, $profile_template, $groups; ?> <p>Please select any tags that you would like to include in your followed content.</p> <?php if (bp_has_profile()) { while (bp_profile_groups()) { bp_the_profile_group(); if ('mtc' == bp_get_the_profile_group_name()) { ?> <form action="<?php bp_the_profile_group_edit_form_action(); ?> " method="post" id="profile-edit-form" class="standard-form <?php bp_the_profile_group_slug(); ?> "> <?php while (bp_profile_fields()) { bp_the_profile_field(); ?> <fieldset<?php bp_field_css_class('editfield'); ?> > <div class="checkbox"> <span class="label"><?php bp_the_profile_field_name(); ?> <?php if (bp_get_the_profile_field_is_required()) { _e('(required)', 'buddypress'); } ?> </span> <?php bp_the_profile_field_options(); ?> </div> <?php do_action('bp_custom_profile_edit_fields'); ?> <p class="description"><?php bp_the_profile_field_description(); ?> </p> </fieldset> <?php } ?> <div class="submit"> <input type="submit" name="profile-group-edit-submit" id="profile-group-edit-submit" value="<?php _e('Save selection', 'buddypress'); ?> " /> </div> <input type="hidden" name="field_ids" id="field_ids" value="<?php bp_the_profile_group_field_ids(); ?> " /> <?php wp_nonce_field('bp_xprofile_edit'); ?> </form> <?php } } } ?> <?php /* if ( function_exists('xprofile_get_profile') ) : if ( bp_has_profile() ) : while ( bp_profile_groups() ) : bp_the_profile_group(); print_r(bp_get_the_profile_group_name()); endwhile; endif; endif; */ ?> <?php }