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/registration/register.php

    r5837 r6051  
    156156                               
    157157                                <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
    158                                     <div class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
     158                                    <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    159159                                        <?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">Change</a>
    160                                     </div>
     160                                    </p>
    161161                                   
    162162                                    <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
    163                                         <label for="field-visibility"><?php _e( 'Who can see this field?', 'buddypress' ) ?></label>
     163                                        <fieldset>
     164                                            <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
    164165                                       
    165                                         <?php bp_profile_visibility_radio_buttons() ?>
     166                                            <?php bp_profile_visibility_radio_buttons() ?>
    166167                                       
     168                                        </fieldset>
    167169                                        <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
     170                                       
    168171                                    </div>
    169172                                <?php else : ?>
    170                                     <div class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
     173                                    <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
    171174                                        <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
    172                                     </div>         
     175                                    </p>           
    173176                                <?php endif ?>
    174177
Note: See TracChangeset for help on using the changeset viewer.