Skip to:
Content

BuddyPress.org

Changeset 10185


Ignore:
Timestamp:
10/05/2015 12:06:48 AM (4 years ago)
Author:
mercime
Message:

Add label tags for checkboxes in Group invites screen.

Props ankit-k-gupta, hnla, mercime.
Fixes #6605.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-template.php

    r10184 r10185  
    50395039            for ( $i = 0, $count = count( $friends ); $i < $count; ++$i ) {
    50405040                $checked = in_array( (int) $friends[ $i ]['id'], (array) $invites );
    5041                 $items[] = '<' . $r['separator'] . '><input' . checked( $checked ) . ' type="checkbox" name="friends[]" id="f-' . esc_attr( $friends[ $i ]['id'] ) . '" value="' . esc_attr( $friends[ $i ]['id'] ) . '" /> ' . esc_html( $friends[ $i ]['full_name'] ) . '</' . $r['separator'] . '>';
     5041                $items[] = '<' . $r['separator'] . '><label for="f-' . esc_attr( $friends[ $i ]['id'] ) . '"><input' . checked( $checked ) . ' type="checkbox" name="friends[]" id="f-' . esc_attr( $friends[ $i ]['id'] ) . '" value="' . esc_attr( $friends[ $i ]['id'] ) . '" /> ' . esc_html( $friends[ $i ]['full_name'] ) . '</label></' . $r['separator'] . '>';
    50425042            }
    50435043        }
Note: See TracChangeset for help on using the changeset viewer.