Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2016 05:17:19 PM (8 years ago)
Author:
dcavins
Message:

Profile inputs: Add wrapper divs around options.

Add a wrapper div around radio button options,
checkbox options, and datebook selects in
extended profile form inputs.

See #7083.

Props dcavins, imath, offereins.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-radiobutton.php

    r10740 r10855  
    112112        $options      = $this->field_obj->get_children();
    113113
    114         $html = sprintf( '<div id="%s">', esc_attr( 'field_' . $this->field_obj->id ) );
     114        $html = '';
    115115
    116116        for ( $k = 0, $count = count( $options ); $k < $count; ++$k ) {
     
    155155        }
    156156
    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        );
    158161    }
    159162
Note: See TracChangeset for help on using the changeset viewer.