Skip to:
Content

BuddyPress.org

Changeset 9236


Ignore:
Timestamp:
12/17/2014 03:11:28 PM (12 years ago)
Author:
boonebgorges
Message:

Add actions on the Profile Fields admin page.

Also cleans up a bit of code formatting for the <legend> elemnts on this
screen.

Props slaFFik.
Fixes #5673.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-admin.php

    r9190 r9236  
    119119
    120120                                                                <?php endif; ?>
     121
     122                                                                <?php do_action( 'xprofile_admin_group_action', $group ); ?>
    121123
    122124                                                        </div>
     
    380382
    381383        <fieldset id="field_<?php echo esc_attr( $field->id ); ?>" class="sortable<?php echo ' ' . $field->type; if ( !empty( $class ) ) echo ' ' . $class; ?>">
    382                 <legend><span><?php bp_the_profile_field_name(); ?> <?php if( !$field->can_delete ) : ?> <?php _e( '(Primary)', 'buddypress' ); endif; ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(Required)', 'buddypress' ) ?><?php endif; ?></span></legend>
     384                <legend>
     385                        <span>
     386                                <?php bp_the_profile_field_name(); ?>
     387                                <?php if ( ! $field->can_delete ) : ?> <?php _e( '(Primary)', 'buddypress' ); endif; ?>
     388                                <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(Required)', 'buddypress' ) ?><?php endif; ?>
     389                                <?php do_action( 'xprofile_admin_field_name_legend', $field ); ?>
     390                        </span>
     391                </legend>
    383392                <div class="field-wrapper">
    384393
     
    409418
    410419                                <?php endif; ?>
     420
     421                                <?php do_action( 'xprofile_admin_field_action', $field ); ?>
     422
    411423                        </div>
    412424                </div>
Note: See TracChangeset for help on using the changeset viewer.