Skip to:
Content

BuddyPress.org

Changeset 10111


Ignore:
Timestamp:
09/17/2015 03:46:50 PM (10 years ago)
Author:
mercime
Message:

Friends Widget: Add 'id' attribute to input field and bind to label.

Accessibility fix to correct the label 'for' value and to match the
the newly created 'id' value of the checkbox input field to link
widget title to Members directory.

See #6625.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/bp-friends-widgets.php

    r9995 r10111  
    190190        ?>
    191191
    192         <p><label for="<?php echo $this->get_field_name( 'link_title' ) ?>"><input type="checkbox" name="<?php echo $this->get_field_name('link_title') ?>" value="1" <?php checked( $link_title ) ?> /> <?php _e( 'Link widget title to Members directory', 'buddypress' ) ?></label></p>
     192        <p><label for="<?php echo $this->get_field_id( 'link_title' ) ?>"><input type="checkbox" name="<?php echo $this->get_field_name('link_title') ?>" id="<?php echo $this->get_field_id( 'link_title' ) ?>" value="1" <?php checked( $link_title ) ?> /> <?php _e( 'Link widget title to Members directory', 'buddypress' ) ?></label></p>
    193193
    194194        <p><label for="bp-core-widget-friends-max"><?php _e( 'Max friends to show:', 'buddypress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'max_friends' ); ?>" name="<?php echo $this->get_field_name( 'max_friends' ); ?>" type="text" value="<?php echo absint( $max_friends ); ?>" style="width: 30%" /></label></p>
Note: See TracChangeset for help on using the changeset viewer.