Changeset 7271
- Timestamp:
- 07/11/2013 05:28:38 PM (11 years ago)
- Location:
- trunk/bp-xprofile
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-admin.php
r7010 r7271 70 70 <h2> 71 71 <?php _e( 'Profile Fields', 'buddypress'); ?> 72 <a id="add_group" class="add-new-h2" href=" admin.php?page=bp-profile-setup&mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a>72 <a id="add_group" class="add-new-h2" href="users.php?page=bp-profile-setup&mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a> 73 73 </h2> 74 74 … … 111 111 <div class="tab-toolbar"> 112 112 <div class="tab-toolbar-left"> 113 <a class="button-primary" href=" admin.php?page=bp-profile-setup&group_id=<?php echo esc_attr( $group->id ); ?>&mode=add_field"><?php _e( 'Add New Field', 'buddypress' ); ?></a>114 <a class="button edit" href=" admin.php?page=bp-profile-setup&mode=edit_group&group_id=<?php echo esc_attr( $group->id ); ?>"><?php _e( 'Edit Group', 'buddypress' ); ?></a>113 <a class="button-primary" href="users.php?page=bp-profile-setup&group_id=<?php echo esc_attr( $group->id ); ?>&mode=add_field"><?php _e( 'Add New Field', 'buddypress' ); ?></a> 114 <a class="button edit" href="users.php?page=bp-profile-setup&mode=edit_group&group_id=<?php echo esc_attr( $group->id ); ?>"><?php _e( 'Edit Group', 'buddypress' ); ?></a> 115 115 116 116 <?php if ( $group->can_delete ) : ?> 117 117 118 <a class="confirm submitdelete deletion ajax-option-delete" href=" admin.php?page=bp-profile-setup&mode=delete_group&group_id=<?php echo esc_attr( $group->id ); ?>"><?php _e( 'Delete Group', 'buddypress' ); ?></a>118 <a class="confirm submitdelete deletion ajax-option-delete" href="users.php?page=bp-profile-setup&mode=delete_group&group_id=<?php echo esc_attr( $group->id ); ?>"><?php _e( 'Delete Group', 'buddypress' ); ?></a> 119 119 120 120 <?php endif; ?> … … 160 160 161 161 <div id="message" class="error"><p><?php _e( 'You have no groups.', 'buddypress' ); ?></p></div> 162 <p><a href=" admin.php?page=bp-profile-setup&mode=add_group"><?php _e( 'Add New Group', 'buddypress' ); ?></a></p>162 <p><a href="users.php?page=bp-profile-setup&mode=add_group"><?php _e( 'Add New Group', 'buddypress' ); ?></a></p> 163 163 164 164 <?php endif; ?> … … 454 454 455 455 <div class="actions"> 456 <a class="button edit" href=" admin.php?page=bp-profile-setup&group_id=<?php echo esc_attr( $admin_group->id ); ?>&field_id=<?php echo esc_attr( $field->id ); ?>&mode=edit_field"><?php _e( 'Edit', 'buddypress' ); ?></a>456 <a class="button edit" href="users.php?page=bp-profile-setup&group_id=<?php echo esc_attr( $admin_group->id ); ?>&field_id=<?php echo esc_attr( $field->id ); ?>&mode=edit_field"><?php _e( 'Edit', 'buddypress' ); ?></a> 457 457 458 458 <?php if ( $field->can_delete ) : ?> 459 459 460 <a class="confirm submit-delete deletion" href=" admin.php?page=bp-profile-setup&field_id=<?php echo esc_attr( $field->id ); ?>&mode=delete_field"><?php _e( 'Delete', 'buddypress' ); ?></a>460 <a class="confirm submit-delete deletion" href="users.php?page=bp-profile-setup&field_id=<?php echo esc_attr( $field->id ); ?>&mode=delete_field"><?php _e( 'Delete', 'buddypress' ); ?></a> 461 461 462 462 <?php endif; ?> -
trunk/bp-xprofile/bp-xprofile-classes.php
r7265 r7271 353 353 if ( empty( $this->id ) ) { 354 354 $title = __( 'Add New Field Group', 'buddypress' ); 355 $action = " admin.php?page=bp-profile-setup&mode=add_group";355 $action = "users.php?page=bp-profile-setup&mode=add_group"; 356 356 $button = __( 'Create Field Group', 'buddypress' ); 357 357 } else { 358 358 $title = __( 'Edit Field Group', 'buddypress' ); 359 $action = " admin.php?page=bp-profile-setup&mode=edit_group&group_id=" . $this->id;359 $action = "users.php?page=bp-profile-setup&mode=edit_group&group_id=" . $this->id; 360 360 $button = __( 'Save Changes', 'buddypress' ); 361 361 } ?> … … 404 404 <div id="major-publishing-actions"> 405 405 <div id="delete-action"> 406 <a href=" admin.php?page=bp-profile-setup" class="submitdelete deletion"><?php _e( 'Cancel', 'buddypress' ); ?></a>406 <a href="users.php?page=bp-profile-setup" class="submitdelete deletion"><?php _e( 'Cancel', 'buddypress' ); ?></a> 407 407 </div> 408 408 <div id="publishing-action"> … … 785 785 <input type="<?php echo $default_input; ?>" name="isDefault_<?php echo esc_attr( $type ); ?>_option<?php echo esc_attr( $default_name ); ?>" <?php checked( (int) $options[$i]->is_default_option, true ); ?> value="<?php echo esc_attr( $j ); ?>" /> 786 786 <span><?php _e( 'Default Value', 'buddypress' ); ?></span> 787 <a href="<?php echo esc_url( ' admin.php?page=bp-profile-setup&mode=delete_option&option_id=' . $options[$i]->id ); ?>" class="ajax-option-delete" id="delete-<?php echo esc_attr( $options[$i]->id ); ?>">[x]</a>787 <a href="<?php echo esc_url( 'users.php?page=bp-profile-setup&mode=delete_option&option_id=' . $options[$i]->id ); ?>" class="ajax-option-delete" id="delete-<?php echo esc_attr( $options[$i]->id ); ?>">[x]</a> 788 788 </p> 789 789 … … 817 817 if ( empty( $this->id ) ) { 818 818 $title = __( 'Add Field', 'buddypress' ); 819 $action = " admin.php?page=bp-profile-setup&group_id=" . $this->group_id . "&mode=add_field#tabs-" . $this->group_id;819 $action = "users.php?page=bp-profile-setup&group_id=" . $this->group_id . "&mode=add_field#tabs-" . $this->group_id; 820 820 821 821 if ( !empty( $_POST['saveField'] ) ) { … … 829 829 } else { 830 830 $title = __( 'Edit Field', 'buddypress' ); 831 $action = " admin.php?page=bp-profile-setup&mode=edit_field&group_id=" . $this->group_id . "&field_id=" . $this->id . "#tabs-" . $this->group_id;831 $action = "users.php?page=bp-profile-setup&mode=edit_field&group_id=" . $this->group_id . "&field_id=" . $this->id . "#tabs-" . $this->group_id; 832 832 } ?> 833 833 … … 926 926 <input type="hidden" name="field_order" id="field_order" value="<?php echo esc_attr( $this->field_order ); ?>" /> 927 927 <input type="submit" value="<?php _e( 'Save', 'buddypress' ); ?>" name="saveField" id="saveField" style="font-weight: bold" class="button-primary" /> 928 <?php _e( 'or', 'buddypress' ); ?> <a href=" admin.php?page=bp-profile-setup" class="deletion"><?php _e( 'Cancel', 'buddypress' ); ?></a>928 <?php _e( 'or', 'buddypress' ); ?> <a href="users.php?page=bp-profile-setup" class="deletion"><?php _e( 'Cancel', 'buddypress' ); ?></a> 929 929 </p> 930 930
Note: See TracChangeset
for help on using the changeset viewer.