Changeset 1823
- Timestamp:
- 09/08/2009 06:57:08 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile/bp-xprofile-templatetags.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-templatetags.php
r1801 r1823 398 398 } 399 399 400 $html .= '<option' . $selected . ' value="' . attribute_escape( $options[$k]->name ) . '">' . attribute_escape( $options[$k]->name ) . '</option>'; 400 401 402 $html .= apply_filters( 'bp_get_the_profile_field_options_select', '<option' . $selected . ' value="' . attribute_escape( $options[$k]->name ) . '">' . attribute_escape( $options[$k]->name ) . '</option>', $options[$k] ); 401 403 } 402 404 break; 403 405 404 406 case 'radio': 405 for ( $k = 0; $k < count($options); $k++ ) { 406 407 for ( $k = 0; $k < count($options); $k++ ) { 407 408 $option_value = BP_XProfile_ProfileData::get_value_byid($options[$k]->parent_id); 408 409 … … 419 420 } 420 421 421 $html .= '<label><input' . $selected . ' type="radio" name="field_' . $field->id . '" id="option_' . $options[$k]->id . '" value="' . attribute_escape( $options[$k]->name ) . '"> ' . attribute_escape( $options[$k]->name ) . '</label>';422 $html .= apply_filters( 'bp_get_the_profile_field_options_radio', '<label><input' . $selected . ' type="radio" name="field_' . $field->id . '" id="option_' . $options[$k]->id . '" value="' . attribute_escape( $options[$k]->name ) . '"> ' . attribute_escape( $options[$k]->name ) . '</label>', $options[$k] ); 422 423 } 423 424 break; … … 434 435 $option_values = maybe_unserialize($option_values); 435 436 436 for ( $k = 0; $k < count($options); $k++ ) { 437 for ( $k = 0; $k < count($options); $k++ ) { 437 438 for ( $j = 0; $j < count($option_values); $j++ ) { 438 439 if ( $option_values[$j] == $options[$k]->name || @in_array( $options[$k]->name, $value ) || $options[$k]->is_default_option ) { … … 442 443 } 443 444 444 $html .= '<label><input' . $selected . ' type="checkbox" name="field_' . $field->id . '[]" id="field_' . $options[$k]->id . '_' . $k . '" value="' . attribute_escape( $options[$k]->name ) . '"> ' . attribute_escape( $options[$k]->name ) . '</label>';445 $html .= apply_filters( 'bp_get_the_profile_field_options_checkbox', '<label><input' . $selected . ' type="checkbox" name="field_' . $field->id . '[]" id="field_' . $options[$k]->id . '_' . $k . '" value="' . attribute_escape( $options[$k]->name ) . '"> ' . attribute_escape( $options[$k]->name ) . '</label>', $options[$k] ); 445 446 $selected = ''; 446 447 } … … 520 521 break; 521 522 } 523 524 apply_filters( 'bp_get_the_profile_field_datebox', $html, $day, $month, $year, $default_select ); 522 525 523 526 break; … … 565 568 566 569 if ( $groups[$i]->fields ) 567 echo '<li' . $selected . '><a href="' . $bp->displayed_user->domain . $bp->profile->slug . '/edit/group/' . $groups[$i]->id . '">' . $groups[$i]->name. '</a></li>';570 echo '<li' . $selected . '><a href="' . $bp->displayed_user->domain . $bp->profile->slug . '/edit/group/' . $groups[$i]->id . '">' . attribute_escape( $groups[$i]->name ) . '</a></li>'; 568 571 } 569 572
Note: See TracChangeset
for help on using the changeset viewer.