Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/23/2017 09:05:04 PM (7 years ago)
Author:
mercime
Message:

xProfile: Move descriptions to right beside respective form controls.

See #7348.

File:
1 edited

Legend:

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

    r10828 r11617  
    8484        do_action( bp_get_the_profile_field_errors_action() ); ?>
    8585
    86         <select <?php echo $this->get_edit_field_html_elements( $r ); ?>>
     86        <select <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3">
    8787            <?php bp_the_profile_field_options( array(
    8888                'user_id' => $user_id
    8989            ) ); ?>
    9090        </select>
     91
     92        <?php if ( bp_get_the_profile_field_description() ) : ?>
     93            <p class="description" id="<?php bp_the_profile_field_input_name(); ?>-3"><?php bp_the_profile_field_description(); ?></p>
     94        <?php endif; ?>
    9195
    9296        <?php if ( ! bp_get_the_profile_field_is_required() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.