Skip to:
Content

BuddyPress.org

Changeset 11171


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

Alert screen readers about new messages inserted through template_notices.

See #3263.

Location:
trunk/src/bp-templates/bp-legacy/buddypress
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/index.php

    r11128 r11171  
    3333    <?php endif; ?>
    3434
    35     <?php
    36 
    37     /**
    38      * Fires towards the top of template pages for notice display.
    39      *
    40      * @since 1.0.0
    41      */
    42     do_action( 'template_notices' ); ?>
     35    <div id="template-notices" role="alert" aria-atomic="true">
     36        <?php
     37
     38        /**
     39         * Fires towards the top of template pages for notice display.
     40         *
     41         * @since 1.0.0
     42         */
     43        do_action( 'template_notices' ); ?>
     44
     45    </div>
    4346
    4447    <div class="item-list-tabs activity-type-tabs" aria-label="<?php esc_attr_e( 'Sitewide activities navigation', 'buddypress' ); ?>" role="navigation">
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/single/home.php

    r10150 r11171  
    99?>
    1010<div id="buddypress">
    11     <?php
    1211
    13     /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    14     do_action( 'template_notices' ); ?>
     12    <div id="template-notices" role="alert" aria-atomic="true">
     13        <?php
     14
     15        /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     16        do_action( 'template_notices' ); ?>
     17
     18    </div>
    1519
    1620    <div class="activity no-ajax">
  • trunk/src/bp-templates/bp-legacy/buddypress/blogs/create.php

    r10181 r11171  
    1414do_action( 'bp_before_create_blog_content_template' ); ?>
    1515
    16 <?php
     16<div id="template-notices" role="alert" aria-atomic="true">
     17    <?php
    1718
    18 /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    19 do_action( 'template_notices' ); ?>
     19    /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     20    do_action( 'template_notices' ); ?>
     21
     22</div>
    2023
    2124<?php
  • trunk/src/bp-templates/bp-legacy/buddypress/forums/index.php

    r11128 r11171  
    169169                    <h5><?php _e( 'Create New Topic:', 'buddypress' ); ?></h5>
    170170
     171                    <div id="template-notices" role="alert" aria-atomic="true">
    171172                    <?php
    172173
    173                     /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    174                     do_action( 'template_notices' ); ?>
     174                        /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     175                        do_action( 'template_notices' ); ?>
     176
     177                    </div>
    175178
    176179                    <label for="topic_title"><?php _e( 'Title:', 'buddypress' ); ?></label>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php

    r11166 r11171  
    4444        </div>
    4545
    46         <?php
    47 
    48         /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    49         do_action( 'template_notices' ); ?>
     46        <div id="template-notices" role="alert" aria-atomic="true">
     47            <?php
     48
     49            /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     50            do_action( 'template_notices' ); ?>
     51
     52        </div>
    5053
    5154        <div class="item-body" id="group-create-body">
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/groups-loop.php

    r11145 r11171  
    5151    do_action( 'bp_before_directory_groups_list' ); ?>
    5252
    53     <ul id="groups-list" class="item-list">
     53    <ul id="groups-list" class="item-list" aria-live="assertive" aria-atomic="true" aria-relevant="all">
    5454
    5555    <?php while ( bp_groups() ) : bp_the_group(); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/index.php

    r11166 r11171  
    4949    <form action="" method="post" id="groups-directory-form" class="dir-form">
    5050
    51         <?php
     51        <div id="template-notices" role="alert" aria-atomic="true">
     52            <?php
    5253
    53         /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    54         do_action( 'template_notices' ); ?>
     54            /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     55            do_action( 'template_notices' ); ?>
     56
     57        </div>
    5558
    5659        <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Groups directory main navigation', 'buddypress' ); ?>">
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/manage-members.php

    r11138 r11171  
    231231            <?php endif; ?>
    232232
    233             <ul id="members-list" class="item-list">
     233            <ul id="members-list" class="item-list" aria-live="assertive" aria-relevant="all">
    234234                <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
    235235
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php

    r11146 r11171  
    119119 * @since 1.2.0
    120120 */
    121 do_action( 'bp_after_group_header' );
     121do_action( 'bp_after_group_header' ); ?>
    122122
    123 /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    124 do_action( 'template_notices' ); ?>
     123<div id="template-notices" role="alert" aria-atomic="true">
     124    <?php
     125
     126    /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     127    do_action( 'template_notices' ); ?>
     128
     129</div>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/group-header.php

    r11146 r11171  
    118118 * @since 1.2.0
    119119 */
    120 do_action( 'bp_after_group_header' );
     120do_action( 'bp_after_group_header' );  ?>
    121121
    122 /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    123 do_action( 'template_notices' );
    124 ?>
     122<div id="template-notices" role="alert" aria-atomic="true">
     123    <?php
     124
     125    /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     126    do_action( 'template_notices' ); ?>
     127
     128</div>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/activate.php

    r10181 r11171  
    2222    <div class="page" id="activate-page">
    2323
    24         <?php
     24        <div id="template-notices" role="alert" aria-atomic="true">
     25            <?php
    2526
    26         /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    27         do_action( 'template_notices' ); ?>
     27            /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     28            do_action( 'template_notices' ); ?>
     29
     30        </div>
    2831
    2932        <?php
  • trunk/src/bp-templates/bp-legacy/buddypress/members/members-loop.php

    r11008 r11171  
    4747    do_action( 'bp_before_directory_members_list' ); ?>
    4848
    49     <ul id="members-list" class="item-list">
     49    <ul id="members-list" class="item-list" aria-live="assertive" aria-relevant="all">
    5050
    5151    <?php while ( bp_members() ) : bp_the_member(); ?>
  • 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
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php

    r11098 r11171  
    9898do_action( 'bp_after_member_header' ); ?>
    9999
    100 <?php
     100<div id="template-notices" role="alert" aria-atomic="true">
     101    <?php
    101102
    102 /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    103 do_action( 'template_notices' ); ?>
     103    /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     104    do_action( 'template_notices' ); ?>
     105
     106</div>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/member-header.php

    r11098 r11171  
    9595do_action( 'bp_after_member_header' ); ?>
    9696
    97 <?php
     97<div id="template-notices" role="alert" aria-atomic="true">
     98    <?php
    9899
    99 /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    100 do_action( 'template_notices' ); ?>
     100    /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     101    do_action( 'template_notices' ); ?>
     102
     103</div>
Note: See TracChangeset for help on using the changeset viewer.