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 34d752d..d986cd0 100644
|
|
class BP_XProfile_Field_Type_Checkbox extends BP_XProfile_Field_Type { |
176 | 176 | $html .= apply_filters( 'bp_get_the_profile_field_options_checkbox', $new_html, $options[$k], $this->field_obj->id, $selected, $k ); |
177 | 177 | } |
178 | 178 | |
179 | | echo $html; |
| 179 | printf( '<div id="%1$s" class="input-options checkbox-options">%2$s</div>', |
| 180 | esc_attr( 'field_' . $this->field_obj->id ), |
| 181 | $html |
| 182 | ); |
180 | 183 | } |
181 | 184 | |
182 | 185 | /** |
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 afe37d8..f8e0d5d 100644
|
|
class BP_XProfile_Field_Type_Radiobutton extends BP_XProfile_Field_Type { |
111 | 111 | $option_value = BP_XProfile_ProfileData::get_value_byid( $this->field_obj->id, $args['user_id'] ); |
112 | 112 | $options = $this->field_obj->get_children(); |
113 | 113 | |
114 | | $html = sprintf( '<div id="%s">', esc_attr( 'field_' . $this->field_obj->id ) ); |
| 114 | $html = ''; |
115 | 115 | |
116 | 116 | for ( $k = 0, $count = count( $options ); $k < $count; ++$k ) { |
117 | 117 | |
… |
… |
class BP_XProfile_Field_Type_Radiobutton extends BP_XProfile_Field_Type { |
154 | 154 | $html .= apply_filters( 'bp_get_the_profile_field_options_radio', $new_html, $options[$k], $this->field_obj->id, $selected, $k ); |
155 | 155 | } |
156 | 156 | |
157 | | echo $html . '</div>'; |
| 157 | printf( '<div id="%1$s" class="input-options radio-button-options">%2$s</div>', |
| 158 | esc_attr( 'field_' . $this->field_obj->id ), |
| 159 | $html |
| 160 | ); |
158 | 161 | } |
159 | 162 | |
160 | 163 | /** |