Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/23/2017 09:05:04 PM (8 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-textarea.php

    r10417 r11617  
    8282            ?>
    8383
    84             <textarea <?php echo $this->get_edit_field_html_elements( $r ); ?>><?php bp_the_profile_field_edit_value(); ?></textarea>
     84            <textarea <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3"><?php bp_the_profile_field_edit_value(); ?></textarea>
    8585
    8686            <?php
     
    118118            );
    119119        }
     120
     121        if ( bp_get_the_profile_field_description() ) : ?>
     122            <p class="description" id="<?php bp_the_profile_field_input_name(); ?>-3"><?php bp_the_profile_field_description(); ?></p>
     123        <?php endif;
    120124    }
    121125
Note: See TracChangeset for help on using the changeset viewer.