Ticket #5697: patch-li-class-visibility-level.patch
File patch-li-class-visibility-level.patch, 1.1 KB (added by , 10 years ago) |
---|
-
bp-xprofile-template.php
708 708 'field_id' => bp_get_the_profile_field_id(), 709 709 'before' => '<ul class="radio">', 710 710 'after' => '</ul>', 711 'before_radio' => '<li >',711 'before_radio' => '<li class="%s">', 712 712 'after_radio' => '</li>', 713 713 'class' => 'bp-xprofile-visibility' 714 714 ), 'xprofile_visibility_radio_buttons' ); … … 729 729 730 730 <?php foreach( bp_xprofile_get_visibility_levels() as $level ) : ?> 731 731 732 <?php echo $r['before_radio']; ?>732 <?php printf( $r['before_radio'], $level['id'] ); ?> 733 733 734 734 <label for="<?php echo esc_attr( 'see-field_' . $r['field_id'] . '_' . $level['id'] ); ?>"> 735 735 <input type="radio" id="<?php echo esc_attr( 'see-field_' . $r['field_id'] . '_' . $level['id'] ); ?>" name="<?php echo esc_attr( 'field_' . $r['field_id'] . '_visibility' ); ?>" value="<?php echo esc_attr( $level['id'] ); ?>" <?php checked( $level['id'], bp_get_the_profile_field_visibility_level() ); ?> />