Skip to:
Content

Ignore:
Timestamp:
10/04/2016 02:11:28 AM (3 years ago)
Author:
mercime
Message:

Alert screen readers about new messages inserted through template_notices.

See #3263.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/register.php

    r10962 r11171  
    2525
    2626        <?php if ( 'registration-disabled' == bp_get_current_signup_step() ) : ?>
    27             <?php
    28 
    29             /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    30             do_action( 'template_notices' ); ?>
     27
     28            <div id="template-notices" role="alert" aria-atomic="true">
     29                <?php
     30
     31                /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     32                do_action( 'template_notices' ); ?>
     33
     34            </div>
     35
    3136            <?php
    3237
     
    5257        <?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
    5358
    54             <?php
    55 
    56             /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    57             do_action( 'template_notices' ); ?>
     59            <div id="template-notices" role="alert" aria-atomic="true">
     60                <?php
     61
     62                /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     63                do_action( 'template_notices' ); ?>
     64
     65            </div>
    5866
    5967            <p><?php _e( 'Registering for this site is easy. Just fill in the fields below, and we\'ll get a new account set up for you in no time.', 'buddypress' ); ?></p>
     
    360368        <?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
    361369
    362             <?php
    363 
    364             /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    365             do_action( 'template_notices' ); ?>
     370            <div id="template-notices" role="alert" aria-atomic="true">
     371                <?php
     372
     373                /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     374                do_action( 'template_notices' ); ?>
     375
     376            </div>
     377
    366378            <?php
    367379
     
    373385            do_action( 'bp_before_registration_confirmed' ); ?>
    374386
    375             <?php if ( bp_registration_needs_activation() ) : ?>
    376                 <p><?php _e( 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress' ); ?></p>
    377             <?php else : ?>
    378                 <p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ); ?></p>
    379             <?php endif; ?>
     387            <div id="template-notices" role="alert" aria-atomic="true">
     388                <?php if ( bp_registration_needs_activation() ) : ?>
     389                    <p><?php _e( 'You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress' ); ?></p>
     390                <?php else : ?>
     391                    <p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ); ?></p>
     392                <?php endif; ?>
     393            </div>
    380394
    381395            <?php
Note: See TracChangeset for help on using the changeset viewer.