Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/26/2009 07:28:06 AM (16 years ago)
Author:
apeatling
Message:

Updated admin menu/submenu syntax. Props markjaquith.

File:
1 edited

Legend:

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

    r1907 r1960  
    135135        if ( !$this->id ) {
    136136            $title = __('Add New Field Group', 'buddypress');
    137             $action = "admin.php?page=" . BP_PLUGIN_DIR . "/bp-xprofile.php&mode=add_group";
     137            $action = "admin.php?page=bp-profile-setup&mode=add_group";
    138138        } else {
    139139            $title = __('Edit Field Group', 'buddypress');
    140             $action = "admin.php?page=" . BP_PLUGIN_DIR . "/bp-xprofile.php&mode=edit_group&group_id=" . $this->id;         
     140            $action = "admin.php?page=bp-profile-setup&mode=edit_group&group_id=" . $this->id;         
    141141        }
    142142    ?>
     
    491491                           <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name ?>" <?php if ( (int) $options[$i]->is_default_option ) {?> checked="checked"<?php } ?> " value="<?php echo $j ?>" /> <?php _e( 'Default Value', 'buddypress' ) ?>
    492492                            <?php if ( $j != 1 &&
    493                                 $options[$i]->id != -1 ) : ?><a href="admin.php?page=<?php echo BP_PLUGIN_DIR ?>/bp-xprofile.php&amp;mode=delete_option&amp;option_id=<?php echo $options[$i]->id ?>" class="ajax-option-delete" id="delete-<?php echo $options[$i]->id ?>">[x]</a><?php endif ?></p>
     493                                $options[$i]->id != -1 ) : ?><a href="admin.php?page=bp-profile-setup&amp;mode=delete_option&amp;option_id=<?php echo $options[$i]->id ?>" class="ajax-option-delete" id="delete-<?php echo $options[$i]->id ?>">[x]</a><?php endif ?></p>
    494494                        </p>
    495495                    <?php } // end for ?>
     
    517517        if ( !$this->id ) {
    518518            $title = __('Add Field', 'buddypress');
    519             $action = "admin.php?page=" . BP_PLUGIN_DIR . "/bp-xprofile.php&amp;group_id=" . $this->group_id . "&amp;mode=add_field";
     519            $action = "admin.php?page=bp-profile-setup&amp;group_id=" . $this->group_id . "&amp;mode=add_field";
    520520
    521521            $this->name         = $_POST['title'];
     
    526526        } else {
    527527            $title = __('Edit Field', 'buddypress');
    528             $action = "admin.php?page=" . BP_PLUGIN_DIR . "/bp-xprofile.php&amp;mode=edit_field&amp;group_id=" . $this->group_id . "&amp;field_id=" . $this->id;           
     528            $action = "admin.php?page=bp-profile-setup&amp;mode=edit_field&amp;group_id=" . $this->group_id . "&amp;field_id=" . $this->id;         
    529529        }
    530530    ?>
     
    584584                <p class="submit">
    585585                        &nbsp;<input type="submit" value="<?php _e("Save", 'buddypress') ?> &raquo;" name="saveField" id="saveField" style="font-weight: bold" />
    586                          <?php _e('or', 'buddypress') ?> <a href="admin.php?page=<?php echo BP_PLUGIN_DIR ?>/bp-xprofile.php" style="color: red"><?php _e( 'Cancel', 'buddypress' ) ?></a>
     586                         <?php _e('or', 'buddypress') ?> <a href="admin.php?page=bp-profile-setup" style="color: red"><?php _e( 'Cancel', 'buddypress' ) ?></a>
    587587                </p>
    588588           
Note: See TracChangeset for help on using the changeset viewer.