Skip to:
Content
Pages
Categories
Search
Top
Bottom

Xprofile Visibilty Options is not Compatible with BuddyPress


  • tkaprol
    Participant

    @tkaprol

    Hi,

    I’m trying to create a Bootstrap theme for BuddyPress. I wondered that XProfile Visibility Options capsulated with a label.

    While using for attribute, it’s not necessary that use radio button inside label.

    http://stackoverflow.com/questions/774054/should-i-put-input-tag-inside-label-tag

    That issue causes issues on radio buttons when Bootstrap used.

    It would be more controllable and compatible with Bootstrap if input tag moved right before label tag.

    Line 802 @ bp-xprofile/bp-xprofile-template.php

    <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() ); ?> />
    <label for="<?php echo esc_attr( 'see-field_' . $r['field_id'] . '_' . $level['id'] ); ?>">
    						<span class="field-visibility-text"><?php echo esc_html( $level['label'] ); ?></span>
    					</label>
  • The topic ‘Xprofile Visibilty Options is not Compatible with BuddyPress’ is closed to new replies.
Skip to toolbar