Skip to:
Content

BuddyPress.org

Changeset 10313


Ignore:
Timestamp:
10/27/2015 12:33:09 AM (4 years ago)
Author:
mercime
Message:

xProfile: Add 'for' attributes for Member Type checkboxes.

Fixes #6655.

File:
1 edited

Legend:

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

    r10282 r10313  
    13261326                    <?php foreach ( $member_types as $member_type ) : ?>
    13271327                    <li>
    1328                         <label>
    1329                             <input name="member-types[]" class="member-type-selector" type="checkbox" value="<?php echo $member_type->name; ?>" <?php checked( in_array( $member_type->name, $field_member_types ) ); ?>/>
     1328                        <label for="member-type-<?php echo $member_type->labels['name']; ?>">
     1329                            <input name="member-types[]" id="member-type-<?php echo $member_type->labels['name']; ?>" class="member-type-selector" type="checkbox" value="<?php echo $member_type->name; ?>" <?php checked( in_array( $member_type->name, $field_member_types ) ); ?>/>
    13301330                            <?php echo $member_type->labels['name']; ?>
    13311331                        </label>
     
    13341334
    13351335                    <li>
    1336                         <label>
    1337                             <input name="member-types[]" class="member-type-selector" type="checkbox" value="null" <?php checked( in_array( 'null', $field_member_types ) ); ?>/>
     1336                        <label for="member-type-none">
     1337                            <input name="member-types[]" id="member-type-none" class="member-type-selector" type="checkbox" value="null" <?php checked( in_array( 'null', $field_member_types ) ); ?>/>
    13381338                            <?php _e( 'Users with no member type', 'buddypress' ); ?>
    13391339                        </label>
Note: See TracChangeset for help on using the changeset viewer.