- Timestamp:
- 03/23/2015 08:24:15 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/classes/class-bp-xprofile-group.php
r9486 r9635 520 520 $title = __( 'Add New Field Group', 'buddypress' ); 521 521 $action = "users.php?page=bp-profile-setup&mode=add_group"; 522 $button = __( ' Create Field Group', 'buddypress' );522 $button = __( 'Save', 'buddypress' ); 523 523 } else { 524 524 $title = __( 'Edit Field Group', 'buddypress' ); 525 525 $action = "users.php?page=bp-profile-setup&mode=edit_group&group_id=" . $this->id; 526 $button = __( ' Save Changes', 'buddypress' );526 $button = __( 'Update', 'buddypress' ); 527 527 } ?> 528 528 … … 533 533 <h2><?php echo esc_html( $title ); ?></h2> 534 534 535 <?php if ( !empty( $message ) ) : 536 $type = ( 'error' == $type ) ? 'error' : 'updated'; ?> 537 538 <div id="message" class="<?php echo esc_attr( $type ); ?> fade"> 535 <?php if ( !empty( $message ) ) : ?> 536 537 <div id="message" class="error fade"> 539 538 <p><?php echo esc_html( $message ); ?></p> 540 539 </div> … … 544 543 <form id="bp-xprofile-add-field-group" action="<?php echo esc_url( $action ); ?>" method="post"> 545 544 <div id="poststuff"> 546 <div id="post-body" class="metabox-holder columns- 2">545 <div id="post-body" class="metabox-holder columns-<?php echo ( 1 == get_current_screen()->get_columns() ) ? '1' : '2'; ?>"> 547 546 <div id="post-body-content"> 548 547 <div id="titlediv"> 549 <div id="titlewrap">548 <div class="titlewrap"> 550 549 <label id="title-prompt-text" for="title"><?php esc_html_e( 'Field Group Name', 'buddypress') ?></label> 551 550 <input type="text" name="group_name" id="title" value="<?php echo esc_attr( $this->name ); ?>" autocomplete="off" /> 552 551 </div> 553 552 </div> 554 555 <div id="postdiv"> 556 <div class="postbox"> 557 <div id="titlediv"><h3 class="hndle"><?php _e( 'Group Description', 'buddypress' ); ?></h3></div> 558 <div class="inside"> 559 <textarea name="group_description" id="group_description" rows="8" cols="60"><?php echo esc_textarea( $this->description ); ?></textarea> 553 <div class="postbox"> 554 <h3><?php _e( 'Field Group Description', 'buddypress' ); ?></h3> 555 <div class="inside"> 556 <textarea name="group_description" id="group_description" rows="8" cols="60"><?php echo esc_textarea( $this->description ); ?></textarea> 557 </div> 558 </div> 559 </div><!-- #post-body-content --> 560 561 <div id="postbox-container-1" class="postbox-container"> 562 563 <?php 564 565 /** 566 * Fires before XProfile Group submit metabox. 567 * 568 * @since BuddyPress (2.1.0) 569 * 570 * @param BP_XProfile_Group $this Current XProfile group. 571 */ 572 do_action( 'xprofile_group_before_submitbox', $this ); 573 ?> 574 575 <div id="submitdiv" class="postbox"> 576 <h3><?php _e( 'Submit', 'buddypress' ); ?></h3> 577 <div class="inside"> 578 <div id="submitcomment" class="submitbox"> 579 <div id="major-publishing-actions"> 580 581 <?php 582 583 /** 584 * Fires at the beginning of the XProfile Group publishing actions section. 585 * 586 * @since BuddyPress (2.1.0) 587 * 588 * @param BP_XProfile_Group $this Current XProfile group. 589 */ 590 do_action( 'xprofile_group_submitbox_start', $this ); 591 ?> 592 593 <input type="hidden" name="group_order" id="group_order" value="<?php echo esc_attr( $this->group_order ); ?>" /> 594 <div id="publishing-action"> 595 <input type="submit" name="save_group" value="<?php echo esc_attr( $button ); ?>" class="button-primary"/> 596 </div> 597 <div id="delete-action"> 598 <a href="users.php?page=bp-profile-setup" class="deletion"><?php _e( 'Cancel', 'buddypress' ); ?></a> 599 </div> 600 <div class="clear"></div> 601 </div> 560 602 </div> 561 603 </div> 562 604 </div> 563 </div> 564 <div id="postbox-container-1" class="postbox-container"> 565 <div id="side-sortables" class="meta-box-sortables ui-sortable"> 566 567 <?php 568 569 /** 570 * Fires before XProfile Group submit metabox. 571 * 572 * @since BuddyPress (2.1.0) 573 * 574 * @param BP_XProfile_Group $this Current XProfile group. 575 */ 576 do_action( 'xprofile_group_before_submitbox', $this ); 577 ?> 578 579 <div id="submitdiv" class="postbox"> 580 <div id="handlediv"><h3 class="hndle"><?php _e( 'Save', 'buddypress' ); ?></h3></div> 581 <div class="inside"> 582 <div id="submitcomment" class="submitbox"> 583 <div id="major-publishing-actions"> 584 585 <?php 586 587 /** 588 * Fires at the beginning of the XProfile Group publishing actions section. 589 * 590 * @since BuddyPress (2.1.0) 591 * 592 * @param BP_XProfile_Group $this Current XProfile group. 593 */ 594 do_action( 'xprofile_group_submitbox_start', $this ); 595 ?> 596 597 <div id="delete-action"> 598 <a href="users.php?page=bp-profile-setup" class="submitdelete deletion"><?php _e( 'Cancel', 'buddypress' ); ?></a> 599 </div> 600 <div id="publishing-action"> 601 <input type="submit" name="save_group" value="<?php echo esc_attr( $button ); ?>" class="button-primary"/> 602 </div> 603 <input type="hidden" name="group_order" id="group_order" value="<?php echo esc_attr( $this->group_order ); ?>" /> 604 <div class="clear"></div> 605 </div> 606 </div> 607 </div> 608 </div> 609 610 <?php 611 612 /** 613 * Fires after XProfile Group submit metabox. 614 * 615 * @since BuddyPress (2.1.0) 616 * 617 * @param BP_XProfile_Group $this Current XProfile group. 618 */ 619 do_action( 'xprofile_group_after_submitbox', $this ); 620 ?> 621 </div> 605 606 <?php 607 608 /** 609 * Fires after XProfile Group submit metabox. 610 * 611 * @since BuddyPress (2.1.0) 612 * 613 * @param BP_XProfile_Group $this Current XProfile group. 614 */ 615 do_action( 'xprofile_group_after_submitbox', $this ); 616 ?> 622 617 </div> 623 618 </div>
Note: See TracChangeset
for help on using the changeset viewer.