diff --git src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php
index 736c66c..9ea6e14 100644
|
|
class BP_XProfile_Field_Type_Checkbox extends BP_XProfile_Field_Type { |
67 | 67 | } ?> |
68 | 68 | |
69 | 69 | <div class="checkbox"> |
70 | | <label for="<?php bp_the_profile_field_input_name(); ?>"> |
| 70 | <label for="<?php bp_the_profile_field_input_name(); ?>" class="option-group-label"> |
71 | 71 | <?php bp_the_profile_field_name(); ?> |
72 | 72 | <?php bp_the_profile_field_required_label(); ?> |
73 | 73 | </label> |
… |
… |
class BP_XProfile_Field_Type_Checkbox extends BP_XProfile_Field_Type { |
138 | 138 | $selected = ' checked="checked"'; |
139 | 139 | } |
140 | 140 | |
141 | | $new_html = sprintf( '<label for="%3$s"><input %1$s type="checkbox" name="%2$s" id="%3$s" value="%4$s">%5$s</label>', |
| 141 | $new_html = sprintf( '<label for="%3$s" class="option-label"><input %1$s type="checkbox" name="%2$s" id="%3$s" value="%4$s">%5$s</label>', |
142 | 142 | $selected, |
143 | 143 | esc_attr( "field_{$this->field_obj->id}[]" ), |
144 | 144 | esc_attr( "field_{$options[$k]->id}_{$k}" ), |
diff --git src/bp-xprofile/classes/class-bp-xprofile-field-type-radiobutton.php src/bp-xprofile/classes/class-bp-xprofile-field-type-radiobutton.php
index aa3bc0b..ed59424 100644
|
|
class BP_XProfile_Field_Type_Radiobutton extends BP_XProfile_Field_Type { |
66 | 66 | |
67 | 67 | <div class="radio"> |
68 | 68 | |
69 | | <label for="<?php bp_the_profile_field_input_name(); ?>"> |
| 69 | <label for="<?php bp_the_profile_field_input_name(); ?>" class="option-group-label"> |
70 | 70 | <?php bp_the_profile_field_name(); ?> |
71 | 71 | <?php bp_the_profile_field_required_label(); ?> |
72 | 72 | </label> |
… |
… |
class BP_XProfile_Field_Type_Radiobutton extends BP_XProfile_Field_Type { |
131 | 131 | $selected = ' checked="checked"'; |
132 | 132 | } |
133 | 133 | |
134 | | $new_html = sprintf( '<label for="%3$s"><input %1$s type="radio" name="%2$s" id="%3$s" value="%4$s">%5$s</label>', |
| 134 | $new_html = sprintf( '<label for="%3$s" class="option-label"><input %1$s type="radio" name="%2$s" id="%3$s" value="%4$s">%5$s</label>', |
135 | 135 | $selected, |
136 | 136 | esc_attr( "field_{$this->field_obj->id}" ), |
137 | 137 | esc_attr( "option_{$options[$k]->id}" ), |