Skip to:
Content

BuddyPress.org

Changeset 8606


Ignore:
Timestamp:
07/12/2014 01:32:08 AM (10 years ago)
Author:
boonebgorges
Message:

Add a CSS class to xprofile visibility radio buttons describing the visibility value

Fixes #5697

Props SGr33n

File:
1 edited

Legend:

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

    r8603 r8606  
    724724            'before'       => '<ul class="radio">',
    725725            'after'        => '</ul>',
    726             'before_radio' => '<li>',
     726            'before_radio' => '<li class="%s">',
    727727            'after_radio'  => '</li>',
    728728            'class'        => 'bp-xprofile-visibility'
     
    745745                <?php foreach( bp_xprofile_get_visibility_levels() as $level ) : ?>
    746746
    747                     <?php echo $r['before_radio']; ?>
     747                    <?php printf( $r['before_radio'], esc_attr( $level['id'] ) ); ?>
    748748
    749749                    <label for="<?php echo esc_attr( 'see-field_' . $r['field_id'] . '_' . $level['id'] ); ?>">
Note: See TracChangeset for help on using the changeset viewer.