Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/31/2012 08:42:53 PM (13 years ago)
Author:
boonebgorges
Message:

Markup enhancements for profile visibility

  • Removes an orphaned 'label' element
  • Replaces some 'label' elements with 'fieldset' and 'legend' for greater accuracy
  • Changes some div elements into paragraphs, so that text does not appear outside the context of semantic elements
  • Modifications to the visibility options toggle JavaScript, for better differentiation and smoothness

Fixes #4224
Props hnla

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/members/single/profile/edit.php

    r6015 r6051  
    115115               
    116116                <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    117                     <div class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
     117                    <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    118118                        <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _e( 'Change', 'buddypress' ); ?></a>
    119                     </div>
     119                    </p>
    120120                   
    121121                    <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
    122                         <label for="field-visibility"><?php _e( 'Who can see this field?', 'buddypress' ) ?></label>
     122                        <fieldset>
     123                            <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
    123124                       
    124                         <?php bp_profile_visibility_radio_buttons() ?>
     125                            <?php bp_profile_visibility_radio_buttons() ?>
    125126                       
     127                        </fieldset>
    126128                        <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
    127129                    </div>
Note: See TracChangeset for help on using the changeset viewer.