Skip to:
Content

BuddyPress.org


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.