Skip to:
Content

BuddyPress.org

Changeset 11173


Ignore:
Timestamp:
10/05/2016 07:26:47 PM (10 years ago)
Author:
mercime
Message:

Accessibility: Add fieldsets for radio buttons in Site privacy sections.

Fixes #7271.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-template.php

    r11150 r11173  
    11121112        ?>
    11131113
    1114         <p>
    1115                 <label for="blog_public_on"><?php _e('Privacy:', 'buddypress') ?></label>
    1116                 <?php _e( 'I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?>
     1114        <fieldset class="create-site">
     1115                <legend class="label"><?php _e('Privacy: I would like my site to appear in search engines, and in public listings around this network', 'buddypress') ?></legend>
    11171116
    11181117                <label class="checkbox" for="blog_public_on">
     
    11241123                        <strong><?php _e( 'No' , 'buddypress'); ?></strong>
    11251124                </label>
    1126         </p>
     1125        </fieldset>
    11271126
    11281127        <?php
  • trunk/src/bp-templates/bp-legacy/buddypress/members/register.php

    r11171 r11173  
    303303                                                <input type="text" name="signup_blog_title" id="signup_blog_title" value="<?php bp_signup_blog_title_value(); ?>" />
    304304
    305                                                 <span class="label"><?php _e( 'I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?></span>
    306                                                 <?php
    307 
    308                                                 /**
    309                                                  * Fires and displays any member registration blog privacy errors.
    310                                                  *
    311                                                  * @since 1.1.0
    312                                                  */
    313                                                 do_action( 'bp_signup_blog_privacy_errors' ); ?>
    314 
    315                                                 <label for="signup_blog_privacy_public"><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_public" value="public"<?php if ( 'public' == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes', 'buddypress' ); ?></label>
    316                                                 <label for="signup_blog_privacy_private"><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_private" value="private"<?php if ( 'private' == bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'No', 'buddypress' ); ?></label>
     305                                                <fieldset class="register-site">
     306                                                        <legend class="label"><?php _e( 'Privacy: I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?></legend>
     307                                                        <?php
     308
     309                                                        /**
     310                                                         * Fires and displays any member registration blog privacy errors.
     311                                                         *
     312                                                         * @since 1.1.0
     313                                                         */
     314                                                        do_action( 'bp_signup_blog_privacy_errors' ); ?>
     315
     316                                                        <label for="signup_blog_privacy_public"><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_public" value="public"<?php if ( 'public' == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes', 'buddypress' ); ?></label>
     317                                                        <label for="signup_blog_privacy_private"><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_private" value="private"<?php if ( 'private' == bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'No', 'buddypress' ); ?></label>
     318                                                </fieldset>
    317319
    318320                                                <?php
  • trunk/src/bp-templates/bp-legacy/css/buddypress-rtl.css

    r11160 r11173  
    864864}
    865865
     866fieldset.register-site {
     867        margin-top: 1em;
     868}
     869
     870fieldset.create-site {
     871        margin-bottom: 2em;
     872}
     873
     874fieldset.create-site legend {
     875        margin-bottom: 1em;
     876}
     877
     878fieldset.create-site label {
     879        margin-left: 3em;
     880}
     881
    866882.bp-screen-reader-text {
    867883        position: absolute;
  • trunk/src/bp-templates/bp-legacy/css/buddypress.css

    r11138 r11173  
    864864}
    865865
     866fieldset.register-site {
     867        margin-top: 1em;
     868}
     869
     870fieldset.create-site {
     871        margin-bottom: 2em;
     872}
     873
     874fieldset.create-site legend {
     875        margin-bottom: 1em;
     876}
     877
     878fieldset.create-site label {
     879        margin-right: 3em;
     880}
     881
    866882.bp-screen-reader-text {
    867883        position: absolute;
Note: See TracChangeset for help on using the changeset viewer.