Ticket #6625: bp-friends-widgets-select-id-for.patch
File bp-friends-widgets-select-id-for.patch, 1.4 KB (added by , 10 years ago) |
---|
-
src/bp-friends/bp-friends-widgets.php
194 194 <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> 195 195 196 196 <p> 197 <label for=" bp-core-widget-friends-default"><?php _e( 'Default friends to show:', 'buddypress' ); ?>198 <select name="<?php echo $this->get_field_name( 'friend_default' ) ?>" >197 <label for="<?php echo $this->get_field_id( 'friend_default' ) ?>"><?php _e( 'Default friends to show:', 'buddypress' ); ?></label> 198 <select name="<?php echo $this->get_field_name( 'friend_default' ) ?>" id="<?php echo $this->get_field_id( 'friend_default' ) ?>"> 199 199 <option value="newest" <?php selected( $friend_default, 'newest' ); ?>><?php _e( 'Newest', 'buddypress' ) ?></option> 200 200 <option value="active" <?php selected( $friend_default, 'active' );?>><?php _e( 'Active', 'buddypress' ) ?></option> 201 201 <option value="popular" <?php selected( $friend_default, 'popular' ); ?>><?php _e( 'Popular', 'buddypress' ) ?></option> 202 202 </select> 203 </label>204 203 </p> 205 204 206 205 <?php