Skip to:
Content

Ignore:
Location:
trunk/src/bp-templates/bp-legacy
Files:
11 added
75 edited

Legend:

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

    r10993 r11202  
    106106            // Group buttons.
    107107            if ( bp_is_active( 'groups' ) ) {
    108                 add_action( 'bp_group_header_actions',          'bp_group_join_button',               5 );
    109                 add_action( 'bp_group_header_actions',          'bp_group_new_topic_button',         20 );
    110                 add_action( 'bp_directory_groups_actions',      'bp_group_join_button'                  );
    111                 add_action( 'bp_groups_directory_group_filter', 'bp_legacy_theme_group_create_nav', 999 );
     108                add_action( 'bp_group_header_actions',          'bp_group_join_button',               5           );
     109                add_action( 'bp_group_header_actions',          'bp_group_new_topic_button',         20           );
     110                add_action( 'bp_directory_groups_actions',      'bp_group_join_button'                            );
     111                add_action( 'bp_groups_directory_group_filter', 'bp_legacy_theme_group_create_nav', 999           );
     112                add_action( 'bp_after_group_admin_content',     'bp_legacy_groups_admin_screen_hidden_input'      );
     113                add_action( 'bp_before_group_admin_form',       'bp_legacy_theme_group_manage_members_add_search' );
    112114            }
    113115
     
    607609
    608610/**
     611 * Renders the group ID hidden input on group admin screens.
     612 *
     613 * @since 2.7.0
     614 *
     615 * @return string html
     616 */
     617function bp_legacy_groups_admin_screen_hidden_input() {
     618    ?>
     619    <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id(); ?>" />
     620    <?php
     621}
     622
     623/**
    609624 * Add the Create a Site button to the Sites directory title.
    610625 *
     
    14341449        return;
    14351450
    1436     if ( ! $group = groups_get_group( array( 'group_id' => $group_id ) ) )
     1451    if ( ! $group = groups_get_group( $group_id ) )
    14371452        return;
    14381453
     
    14441459                _e( 'Error joining group', 'buddypress' );
    14451460            } else {
    1446                 echo '<a id="group-' . esc_attr( $group->id ) . '" class="leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>';
     1461                echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>';
    14471462            }
    14481463
     
    14571472                    _e( 'Error requesting membership', 'buddypress' );
    14581473                } else {
    1459                     echo '<a id="group-' . esc_attr( $group->id ) . '" class="leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>';
     1474                    echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button leave-group" rel="leave" title="' . __( 'Leave Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>';
    14601475                }
    14611476
     
    14781493            _e( 'Error leaving group', 'buddypress' );
    14791494        } elseif ( 'public' == $group->status ) {
    1480             echo '<a id="group-' . esc_attr( $group->id ) . '" class="join-group" rel="join" title="' . __( 'Join Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ) . '">' . __( 'Join Group', 'buddypress' ) . '</a>';
     1495            echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button join-group" rel="join" title="' . __( 'Join Group', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'join', 'groups_join_group' ) . '">' . __( 'Join Group', 'buddypress' ) . '</a>';
    14811496        } elseif ( 'private' == $group->status ) {
    1482             echo '<a id="group-' . esc_attr( $group->id ) . '" class="request-membership" rel="join" title="' . __( 'Request Membership', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_request_membership' ) . '">' . __( 'Request Membership', 'buddypress' ) . '</a>';
     1497            echo '<a id="group-' . esc_attr( $group->id ) . '" class="group-button request-membership" rel="join" title="' . __( 'Request Membership', 'buddypress' ) . '" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'request-membership', 'groups_request_membership' ) . '">' . __( 'Request Membership', 'buddypress' ) . '</a>';
    14831498        }
    14841499    }
     
    19001915    ';
    19011916}
     1917
     1918/**
     1919 * Add a search box to a single group's manage members screen.
     1920 *
     1921 * @since 2.7.0
     1922 *
     1923 * @return string HTML for the search form.
     1924 */
     1925function bp_legacy_theme_group_manage_members_add_search() {
     1926    if ( bp_is_action_variable( 'manage-members' ) ) :
     1927        ?>
     1928        <div id="members-dir-search" class="dir-search no-ajax" role="search">
     1929            <?php bp_directory_members_search_form(); ?>
     1930        </div>
     1931        <?php
     1932    endif;
     1933}
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/comment.php

    r10993 r11202  
    2626    <div class="acomment-meta">
    2727        <?php
    28         /* translators: 1: user profile link, 2: user name, 3: activity permalink, 4: activity timestamp */
    29         printf( __( '<a href="%1$s">%2$s</a> replied <a href="%3$s" class="activity-time-since"><span class="time-since">%4$s</span></a>', 'buddypress' ), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_comment_permalink(), bp_get_activity_comment_date_recorded() );
     28        /* translators: 1: user profile link, 2: user name, 3: activity permalink, 4: ISO8601 timestamp, 5: activity relative timestamp */
     29        printf( __( '<a href="%1$s">%2$s</a> replied <a href="%3$s" class="activity-time-since"><span class="time-since" data-livestamp="%4$s">%5$s</span></a>', 'buddypress' ), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_comment_permalink(), bp_core_get_iso8601_date( bp_get_activity_comment_date_recorded() ), bp_get_activity_comment_date_recorded() );
    3030        ?>
    3131    </div>
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/index.php

    r10993 r11202  
    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' ); ?>
    43 
    44     <div class="item-list-tabs activity-type-tabs" role="navigation">
     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>
     46
     47    <div class="item-list-tabs activity-type-tabs" aria-label="<?php esc_attr_e( 'Sitewide activities navigation', 'buddypress' ); ?>" role="navigation">
    4548        <ul>
    4649            <?php
     
    138141    </div><!-- .item-list-tabs -->
    139142
    140     <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     143    <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Activity secondary navigation', 'buddypress' ); ?>" role="navigation">
    141144        <ul>
    142145            <li class="feed"><a href="<?php bp_sitewide_activity_feed_link(); ?>" title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>
     
    181184    do_action( 'bp_before_directory_activity_list' ); ?>
    182185
    183     <div class="activity">
     186    <div class="activity" aria-live="polite" aria-atomic="true" aria-relevant="all">
    184187
    185188        <?php bp_get_template_part( 'activity/activity-loop' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/single/home.php

    r10993 r11202  
    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

    r10993 r11202  
    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/blogs/index.php

    r10993 r11202  
    3434    do_action( 'bp_before_directory_blogs_content' ); ?>
    3535
    36     <div id="blog-dir-search" class="dir-search" role="search">
    37         <?php bp_directory_blogs_search_form(); ?>
    38     </div><!-- #blog-dir-search -->
     36    <?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
     37    <?php if ( has_filter( 'bp_directory_blogs_search_form' ) ) : ?>
     38
     39        <div id="blog-dir-search" class="dir-search" role="search">
     40            <?php bp_directory_blogs_search_form(); ?>
     41        </div><!-- #blog-dir-search -->
     42
     43    <?php else : ?>
     44
     45        <?php bp_get_template_part( 'common/search/dir-search-form' ); ?>
     46
     47    <?php endif; ?>
    3948
    4049    <?php
     
    4958    <form action="" method="post" id="blogs-directory-form" class="dir-form">
    5059
    51         <div class="item-list-tabs" role="navigation">
     60        <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Sites directory main navigation', 'buddypress' ); ?>" role="navigation">
    5261            <ul>
    5362                <li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>/<?php bp_blogs_root_slug(); ?>"><?php printf( __( 'All Sites %s', 'buddypress' ), '<span>' . bp_get_total_blog_count() . '</span>' ); ?></a></li>
     
    7180        </div><!-- .item-list-tabs -->
    7281
    73         <div class="item-list-tabs" id="subnav" role="navigation">
     82        <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Sites directory secondary navigation', 'buddypress' ); ?>" role="navigation">
    7483            <ul>
    7584
     
    104113            </ul>
    105114        </div>
     115
     116        <h2 class="bp-screen-reader-text"><?php
     117            /* translators: accessibility text */
     118            _e( 'Sites directory', 'buddypress' );
     119        ?></h2>
    106120
    107121        <div id="blogs-dir-list" class="blogs dir-list">
  • trunk/src/bp-templates/bp-legacy/buddypress/forums/index.php

    r10993 r11202  
    3030        do_action( 'bp_before_directory_forums_content' ); ?>
    3131
    32         <div id="forums-dir-search" class="dir-search" role="search">
    33 
    34             <?php bp_directory_forums_search_form(); ?>
    35 
    36         </div>
     32        <?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
     33        <?php if ( has_filter( 'bp_directory_forums_search_form' ) ) : ?>
     34
     35            <div id="forums-dir-search" class="dir-search" role="search">
     36                <?php bp_directory_forums_search_form(); ?>
     37            </div>
     38
     39        <?php else: ?>
     40
     41            <?php bp_get_template_part( 'common/search/dir-search-form' ); ?>
     42
     43        <?php endif; ?>
     44
    3745    </form>
    3846
     
    4856    <form action="" method="post" id="forums-directory-form" class="dir-form">
    4957
    50         <div class="item-list-tabs" role="navigation">
     58        <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Forums directory main navigation', 'buddypress' ); ?>" role="navigation">
    5159            <ul>
    5260                <li class="selected" id="forums-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_forums_root_slug() ); ?>"><?php printf( __( 'All Topics %s', 'buddypress' ), '<span>' . bp_get_forum_topic_count() . '</span>' ); ?></a></li>
     
    7078        </div>
    7179
    72         <div class="item-list-tabs" id="subnav" role="navigation">
     80        <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Forums secondary navigation', 'buddypress' ); ?>" role="navigation">
    7381            <ul>
    7482
     
    161169                    <h5><?php _e( 'Create New Topic:', 'buddypress' ); ?></h5>
    162170
     171                    <div id="template-notices" role="alert" aria-atomic="true">
    163172                    <?php
    164173
    165                     /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    166                     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>
    167178
    168179                    <label for="topic_title"><?php _e( 'Title:', 'buddypress' ); ?></label>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php

    r10993 r11202  
    3636        do_action( 'bp_before_create_group' ); ?>
    3737
    38         <div class="item-list-tabs no-ajax" id="group-create-tabs" role="navigation">
     38        <div class="item-list-tabs no-ajax" id="group-create-tabs">
    3939            <ul>
    4040
     
    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">
     
    5356            <?php /* Group creation step 1: Basic group details */ ?>
    5457            <?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?>
     58
     59                <h2 class="bp-screen-reader-text"><?php
     60                    /* translators: accessibility text */
     61                    _e( 'Group Details', 'buddypress' );
     62                ?></h2>
    5563
    5664                <?php
     
    8997            <?php /* Group creation step 2: Group settings */ ?>
    9098            <?php if ( bp_is_group_creation_step( 'group-settings' ) ) : ?>
     99
     100                <h2 class="bp-screen-reader-text"><?php
     101                    /* translators: accessibility text */
     102                    _e( 'Group Settings', 'buddypress' );
     103                ?></h2>
    91104
    92105                <?php
     
    133146                </fieldset>
    134147
     148                <?php // Group type selection ?>
     149                <?php if ( $group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' ) ): ?>
     150
     151                    <fieldset class="group-create-types">
     152                        <legend><?php _e( 'Group Types', 'buddypress' ); ?></legend>
     153
     154                        <p><?php _e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p>
     155
     156                        <?php foreach ( $group_types as $type ) : ?>
     157                            <div class="checkbox">
     158                                <label for="<?php printf( 'group-type-%s', $type->name ); ?>"><input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php checked( true, ! empty( $type->create_screen_checked ) ); ?> /> <?php echo esc_html( $type->labels['name'] ); ?>
     159                                    <?php
     160                                        if ( ! empty( $type->description ) ) {
     161                                            /* translators: Group type description shown when creating a group. */
     162                                            printf( __( '&ndash; %s', 'buddypress' ), '<span class="bp-group-type-desc">' . esc_html( $type->description ) . '</span>' );
     163                                        }
     164                                    ?>
     165                                </label>
     166                            </div>
     167
     168                        <?php endforeach; ?>
     169
     170                    </fieldset>
     171
     172                <?php endif; ?>
     173
    135174                <fieldset class="group-create-invitations">
    136175
     
    185224            <?php /* Group creation step 3: Avatar Uploads */ ?>
    186225            <?php if ( bp_is_group_creation_step( 'group-avatar' ) ) : ?>
     226
     227                <h2 class="bp-screen-reader-text"><?php
     228                    /* translators: accessibility text */
     229                    _e( 'Group Avatar', 'buddypress' );
     230                ?></h2>
    187231
    188232                <?php
     
    266310            <?php if ( bp_is_group_creation_step( 'group-cover-image' ) ) : ?>
    267311
     312                <h2 class="bp-screen-reader-text"><?php
     313                    /* translators: accessibility text */
     314                    _e( 'Cover Image', 'buddypress' );
     315                ?></h2>
     316
    268317                <?php
    269318
     
    296345            <?php /* Group creation step 5: Invite friends to group */ ?>
    297346            <?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?>
     347
     348                <h2 class="bp-screen-reader-text"><?php
     349                    /* translators: accessibility text */
     350                    _e( 'Group Invites', 'buddypress' );
     351                ?></h2>
    298352
    299353                <?php
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/groups-loop.php

    r10993 r11202  
    1919 */
    2020do_action( 'bp_before_groups_loop' ); ?>
     21
     22<?php if ( bp_get_current_group_directory_type() ) : ?>
     23    <p class="current-group-type"><?php bp_current_group_directory_type_message() ?></p>
     24<?php endif; ?>
    2125
    2226<?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) ) ) : ?>
     
    4751    do_action( 'bp_before_directory_groups_list' ); ?>
    4852
    49     <ul id="groups-list" class="item-list">
     53    <ul id="groups-list" class="item-list" aria-live="assertive" aria-atomic="true" aria-relevant="all">
    5054
    5155    <?php while ( bp_groups() ) : bp_the_group(); ?>
     
    6064            <div class="item">
    6165                <div class="item-title"><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a></div>
    62                 <div class="item-meta"><span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span></div>
     66                <div class="item-meta"><span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span></div>
    6367
    6468                <div class="item-desc"><?php bp_group_description_excerpt(); ?></div>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/index.php

    r10993 r11202  
    3434    do_action( 'bp_before_directory_groups_content' ); ?>
    3535
    36     <div id="group-dir-search" class="dir-search" role="search">
    37         <?php bp_directory_groups_search_form(); ?>
    38     </div><!-- #group-dir-search -->
     36    <?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
     37    <?php if ( has_filter( 'bp_directory_groups_search_form' ) ) : ?>
     38
     39        <div id="group-dir-search" class="dir-search" role="search">
     40            <?php bp_directory_groups_search_form(); ?>
     41        </div><!-- #group-dir-search -->
     42
     43    <?php else: ?>
     44
     45        <?php bp_get_template_part( 'common/search/dir-search-form' ); ?>
     46
     47    <?php endif; ?>
    3948
    4049    <form action="" method="post" id="groups-directory-form" class="dir-form">
    4150
    42         <?php
     51        <div id="template-notices" role="alert" aria-atomic="true">
     52            <?php
    4353
    44         /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    45         do_action( 'template_notices' ); ?>
     54            /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     55            do_action( 'template_notices' ); ?>
    4656
    47         <div class="item-list-tabs" role="navigation">
     57        </div>
     58
     59        <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Groups directory main navigation', 'buddypress' ); ?>">
    4860            <ul>
    4961                <li class="selected" id="groups-all"><a href="<?php bp_groups_directory_permalink(); ?>"><?php printf( __( 'All Groups %s', 'buddypress' ), '<span>' . bp_get_total_group_count() . '</span>' ); ?></a></li>
     
    6577        </div><!-- .item-list-tabs -->
    6678
    67         <div class="item-list-tabs" id="subnav" role="navigation">
     79        <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Groups directory secondary navigation', 'buddypress' ); ?>" role="navigation">
    6880            <ul>
    6981                <?php
     
    98110            </ul>
    99111        </div>
     112
     113        <h2 class="bp-screen-reader-text"><?php
     114            /* translators: accessibility text */
     115            _e( 'Groups directory', 'buddypress' );
     116        ?></h2>
    100117
    101118        <div id="groups-dir-list" class="groups dir-list">
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/activity.php

    r10993 r11202  
    88
    99?>
    10 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     10<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Group secondary navigation', 'buddypress' ); ?>" role="navigation">
    1111    <ul>
    1212        <li class="feed"><a href="<?php bp_group_activity_feed_link(); ?>" title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>
     
    7373do_action( 'bp_before_group_activity_content' ); ?>
    7474
    75 <div class="activity single-group">
     75<div class="activity single-group" aria-live="polite" aria-atomic="true" aria-relevant="all">
    7676
    7777    <?php bp_get_template_part( 'activity/activity-loop' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php

    r10993 r11202  
    88
    99?>
    10 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     10<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Group secondary navigation', 'buddypress' ); ?>" role="navigation">
    1111    <ul>
    1212        <?php bp_group_admin_tabs(); ?>
     
    1414</div><!-- .item-list-tabs -->
    1515
     16<?php
     17/**
     18 * Fires before the group admin form and content.
     19 *
     20 * @since 2.7.0
     21 */
     22do_action( 'bp_before_group_admin_form' ); ?>
     23
    1624<form action="<?php bp_group_admin_form_action(); ?>" name="group-settings-form" id="group-settings-form" class="standard-form" method="post" enctype="multipart/form-data">
    1725
    18 <?php
     26    <?php
     27    /**
     28     * Fires inside the group admin form and before the content.
     29     *
     30     * @since 1.1.0
     31     */
     32    do_action( 'bp_before_group_admin_content' ); ?>
    1933
    20 /**
    21  * Fires inside the group admin form and before the content.
    22  *
    23  * @since 1.1.0
    24  */
    25 do_action( 'bp_before_group_admin_content' ); ?>
     34    <?php /* Fetch the template for the current admin screen being viewed */ ?>
    2635
    27 <?php /* Edit Group Details */ ?>
    28 <?php if ( bp_is_group_admin_screen( 'edit-details' ) ) : ?>
     36    <?php if ( bp_is_group_admin_screen( bp_action_variable() ) ) : ?>
     37
     38        <?php bp_get_template_part( 'groups/single/admin/' . bp_action_variable() ); ?>
     39
     40    <?php endif; ?>
    2941
    3042    <?php
    3143
    3244    /**
    33      * Fires before the display of group admin details.
     45     * Fires inside the group admin template.
     46     *
     47     * Allows plugins to add custom group edit screens.
    3448     *
    3549     * @since 1.1.0
    3650     */
    37     do_action( 'bp_before_group_details_admin' ); ?>
    38 
    39     <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>
    40     <input type="text" name="group-name" id="group-name" value="<?php bp_group_name(); ?>" aria-required="true" />
    41 
    42     <label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label>
    43     <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_group_description_editable(); ?></textarea>
     51    do_action( 'groups_custom_edit_steps' ); ?>
    4452
    4553    <?php
    4654
    4755    /**
    48      * Fires after the group description admin details.
    49      *
    50      * @since 1.0.0
    51      */
    52     do_action( 'groups_custom_group_fields_editable' ); ?>
    53 
    54     <p>
    55         <label for="group-notify-members">
    56             <input type="checkbox" name="group-notify-members" id="group-notify-members" value="1" /> <?php _e( 'Notify group members of these changes via email', 'buddypress' ); ?>
    57         </label>
    58     </p>
    59 
    60     <?php
    61 
    62     /**
    63      * Fires after the display of group admin details.
     56     * Fires inside the group admin form and after the content.
    6457     *
    6558     * @since 1.1.0
    6659     */
    67     do_action( 'bp_after_group_details_admin' ); ?>
     60    do_action( 'bp_after_group_admin_content' ); ?>
    6861
    69     <p><input type="submit" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?>" id="save" name="save" /></p>
    70     <?php wp_nonce_field( 'groups_edit_group_details' ); ?>
    71 
    72 <?php endif; ?>
    73 
    74 <?php /* Manage Group Settings */ ?>
    75 <?php if ( bp_is_group_admin_screen( 'group-settings' ) ) : ?>
    76 
    77     <?php
    78 
    79     /**
    80      * Fires before the group settings admin display.
    81      *
    82      * @since 1.1.0
    83      */
    84     do_action( 'bp_before_group_settings_admin' ); ?>
    85 
    86     <?php if ( bp_is_active( 'forums' ) ) : ?>
    87 
    88         <?php if ( bp_forums_is_installed_correctly() ) : ?>
    89 
    90             <div class="checkbox">
    91                 <label for="group-show-forum"><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php bp_group_show_forum_setting(); ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ); ?></label>
    92             </div>
    93 
    94             <hr />
    95 
    96         <?php endif; ?>
    97 
    98     <?php endif; ?>
    99 
    100     <fieldset class="group-create-privacy">
    101 
    102         <legend><?php _e( 'Privacy Options', 'buddypress' ); ?></legend>
    103 
    104         <div class="radio">
    105 
    106             <label for="group-status-public"><input type="radio" name="group-status" id="group-status-public" value="public"<?php if ( 'public' == bp_get_new_group_status() || !bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="public-group-description" /> <?php _e( 'This is a public group', 'buddypress' ); ?></label>
    107 
    108             <ul id="public-group-description">
    109                 <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>
    110                 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    111                 <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
    112             </ul>
    113 
    114             <label for="group-status-private"><input type="radio" name="group-status" id="group-status-private" value="private"<?php if ( 'private' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="private-group-description" /> <?php _e( 'This is a private group', 'buddypress' ); ?></label>
    115 
    116             <ul id="private-group-description">
    117                 <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
    118                 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    119                 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    120             </ul>
    121 
    122             <label for="group-status-hidden"><input type="radio" name="group-status" id="group-status-hidden" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> aria-describedby="hidden-group-description" /> <?php _e('This is a hidden group', 'buddypress' ); ?></label>
    123 
    124             <ul id="hidden-group-description">
    125                 <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
    126                 <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
    127                 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    128             </ul>
    129 
    130         </div>
    131 
    132     </fieldset>
    133 
    134     <fieldset class="group-create-invitations">
    135 
    136         <legend><?php _e( 'Group Invitations', 'buddypress' ); ?></legend>
    137 
    138         <p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>
    139 
    140         <div class="radio">
    141 
    142             <label for="group-invite-status-members"><input type="radio" name="group-invite-status" id="group-invite-status-members" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> /> <?php _e( 'All group members', 'buddypress' ); ?></label>
    143 
    144             <label for="group-invite-status-mods"><input type="radio" name="group-invite-status" id="group-invite-status-mods" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> /> <?php _e( 'Group admins and mods only', 'buddypress' ); ?></label>
    145 
    146             <label for="group-invite-status-admins"><input type="radio" name="group-invite-status" id="group-invite-status-admins" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> /> <?php _e( 'Group admins only', 'buddypress' ); ?></label>
    147 
    148         </div>
    149 
    150     </fieldset>
    151 
    152     <?php
    153 
    154     /**
    155      * Fires after the group settings admin display.
    156      *
    157      * @since 1.1.0
    158      */
    159     do_action( 'bp_after_group_settings_admin' ); ?>
    160 
    161     <p><input type="submit" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?>" id="save" name="save" /></p>
    162     <?php wp_nonce_field( 'groups_edit_group_settings' ); ?>
    163 
    164 <?php endif; ?>
    165 
    166 <?php /* Group Avatar Settings */ ?>
    167 <?php if ( bp_is_group_admin_screen( 'group-avatar' ) ) : ?>
    168 
    169     <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
    170 
    171             <p><?php _e("Upload an image to use as a profile photo for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p>
    172 
    173             <p>
    174                 <label for="file" class="bp-screen-reader-text"><?php
    175                     /* translators: accessibility text */
    176                     _e( 'Select an image', 'buddypress' );
    177                 ?></label>
    178                 <input type="file" name="file" id="file" />
    179                 <input type="submit" name="upload" id="upload" value="<?php esc_attr_e( 'Upload Image', 'buddypress' ); ?>" />
    180                 <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    181             </p>
    182 
    183             <?php if ( bp_get_group_has_avatar() ) : ?>
    184 
    185                 <p><?php _e( "If you'd like to remove the existing group profile photo but not upload a new one, please use the delete group profile photo button.", 'buddypress' ); ?></p>
    186 
    187                 <?php bp_button( array( 'id' => 'delete_group_avatar', 'component' => 'groups', 'wrapper_id' => 'delete-group-avatar-button', 'link_class' => 'edit', 'link_href' => bp_get_group_avatar_delete_link(), 'link_text' => __( 'Delete Group Profile Photo', 'buddypress' ) ) ); ?>
    188 
    189             <?php endif; ?>
    190 
    191             <?php
    192             /**
    193              * Load the Avatar UI templates
    194              *
    195              * @since  2.3.0
    196              */
    197             bp_avatar_get_templates(); ?>
    198 
    199             <?php wp_nonce_field( 'bp_avatar_upload' ); ?>
    200 
    201     <?php endif; ?>
    202 
    203     <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    204 
    205         <h4><?php _e( 'Crop Profile Photo', 'buddypress' ); ?></h4>
    206 
    207         <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php esc_attr_e( 'Profile photo to crop', 'buddypress' ); ?>" />
    208 
    209         <div id="avatar-crop-pane">
    210             <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php esc_attr_e( 'Profile photo preview', 'buddypress' ); ?>" />
    211         </div>
    212 
    213         <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php esc_attr_e( 'Crop Image', 'buddypress' ); ?>" />
    214 
    215         <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" />
    216         <input type="hidden" id="x" name="x" />
    217         <input type="hidden" id="y" name="y" />
    218         <input type="hidden" id="w" name="w" />
    219         <input type="hidden" id="h" name="h" />
    220 
    221         <?php wp_nonce_field( 'bp_avatar_cropstore' ); ?>
    222 
    223     <?php endif; ?>
    224 
    225 <?php endif; ?>
    226 
    227 <?php /* Group Cover image Settings */ ?>
    228 <?php if ( bp_is_group_admin_screen( 'group-cover-image' ) ) : ?>
    229 
    230     <h4><?php _e( 'Change Cover Image', 'buddypress' ); ?></h4>
    231 
    232     <?php
    233 
    234     /**
    235      * Fires before the display of profile cover image upload content.
    236      *
    237      * @since 2.4.0
    238      */
    239     do_action( 'bp_before_group_settings_cover_image' ); ?>
    240 
    241     <p><?php _e( 'The Cover Image will be used to customize the header of your group.', 'buddypress' ); ?></p>
    242 
    243     <?php bp_attachments_get_template_part( 'cover-images/index' ); ?>
    244 
    245     <?php
    246 
    247     /**
    248      * Fires after the display of group cover image upload content.
    249      *
    250      * @since 2.4.0
    251      */
    252     do_action( 'bp_after_group_settings_cover_image' ); ?>
    253 
    254 <?php endif; ?>
    255 
    256 <?php /* Manage Group Members */ ?>
    257 <?php if ( bp_is_group_admin_screen( 'manage-members' ) ) : ?>
    258 
    259     <?php
    260 
    261     /**
    262      * Fires before the group manage members admin display.
    263      *
    264      * @since 1.1.0
    265      */
    266     do_action( 'bp_before_group_manage_members_admin' ); ?>
    267 
    268     <div class="bp-widget">
    269         <h4><?php _e( 'Administrators', 'buddypress' ); ?></h4>
    270 
    271         <?php if ( bp_has_members( '&include='. bp_group_admin_ids() ) ) : ?>
    272 
    273         <ul id="admins-list" class="item-list single-line">
    274 
    275             <?php while ( bp_members() ) : bp_the_member(); ?>
    276             <li>
    277                 <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ); ?>
    278                 <h5>
    279                     <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a>
    280                     <?php if ( count( bp_group_admin_ids( false, 'array' ) ) > 1 ) : ?>
    281                     <span class="small">
    282                         <a class="button confirm admin-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a>
    283                     </span>
    284                     <?php endif; ?>
    285                 </h5>
    286             </li>
    287             <?php endwhile; ?>
    288 
    289         </ul>
    290 
    291         <?php endif; ?>
    292 
    293     </div>
    294 
    295     <?php if ( bp_group_has_moderators() ) : ?>
    296         <div class="bp-widget">
    297             <h4><?php _e( 'Moderators', 'buddypress' ); ?></h4>
    298 
    299             <?php if ( bp_has_members( '&include=' . bp_group_mod_ids() ) ) : ?>
    300                 <ul id="mods-list" class="item-list single-line">
    301 
    302                     <?php while ( bp_members() ) : bp_the_member(); ?>
    303                     <li>
    304                         <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ); ?>
    305                         <h5>
    306                             <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a>
    307                             <span class="small">
    308                                 <a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => bp_get_member_user_id() ) ); ?>" class="button confirm mod-promote-to-admin"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>
    309                                 <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a>
    310                             </span>
    311                         </h5>
    312                     </li>
    313                     <?php endwhile; ?>
    314 
    315                 </ul>
    316 
    317             <?php endif; ?>
    318         </div>
    319     <?php endif ?>
    320 
    321 
    322     <div class="bp-widget">
    323         <h4><?php _e( "Members", 'buddypress' ); ?></h4>
    324 
    325         <?php if ( bp_group_has_members( 'per_page=15&exclude_banned=0' ) ) : ?>
    326 
    327             <?php if ( bp_group_member_needs_pagination() ) : ?>
    328 
    329                 <div class="pagination no-ajax">
    330 
    331                     <div id="member-count" class="pag-count">
    332                         <?php bp_group_member_pagination_count(); ?>
    333                     </div>
    334 
    335                     <div id="member-admin-pagination" class="pagination-links">
    336                         <?php bp_group_member_admin_pagination(); ?>
    337                     </div>
    338 
    339                 </div>
    340 
    341             <?php endif; ?>
    342 
    343             <ul id="members-list" class="item-list single-line">
    344                 <?php while ( bp_group_members() ) : bp_group_the_member(); ?>
    345 
    346                     <li class="<?php bp_group_member_css_class(); ?>">
    347                         <?php bp_group_member_avatar_mini(); ?>
    348 
    349                         <h5>
    350                             <?php bp_group_member_link(); ?>
    351 
    352                             <?php if ( bp_get_group_member_is_banned() ) _e( '(banned)', 'buddypress' ); ?>
    353 
    354                             <span class="small">
    355 
    356                             <?php if ( bp_get_group_member_is_banned() ) : ?>
    357 
    358                                 <a href="<?php bp_group_member_unban_link(); ?>" class="button confirm member-unban" title="<?php esc_attr_e( 'Unban this member', 'buddypress' ); ?>"><?php _e( 'Remove Ban', 'buddypress' ); ?></a>
    359 
    360                             <?php else : ?>
    361 
    362                                 <a href="<?php bp_group_member_ban_link(); ?>" class="button confirm member-ban"><?php _e( 'Kick &amp; Ban', 'buddypress' ); ?></a>
    363                                 <a href="<?php bp_group_member_promote_mod_link(); ?>" class="button confirm member-promote-to-mod"><?php _e( 'Promote to Mod', 'buddypress' ); ?></a>
    364                                 <a href="<?php bp_group_member_promote_admin_link(); ?>" class="button confirm member-promote-to-admin"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>
    365 
    366                             <?php endif; ?>
    367 
    368                                 <a href="<?php bp_group_member_remove_link(); ?>" class="button confirm"><?php _e( 'Remove from group', 'buddypress' ); ?></a>
    369 
    370                                 <?php
    371 
    372                                 /**
    373                                  * Fires inside the display of a member admin item in group management area.
    374                                  *
    375                                  * @since 1.1.0
    376                                  */
    377                                 do_action( 'bp_group_manage_members_admin_item' ); ?>
    378 
    379                             </span>
    380                         </h5>
    381                     </li>
    382 
    383                 <?php endwhile; ?>
    384             </ul>
    385 
    386             <?php if ( bp_group_member_needs_pagination() ) : ?>
    387 
    388                 <div class="pagination no-ajax">
    389 
    390                     <div id="member-count" class="pag-count">
    391                         <?php bp_group_member_pagination_count(); ?>
    392                     </div>
    393 
    394                     <div id="member-admin-pagination" class="pagination-links">
    395                         <?php bp_group_member_admin_pagination(); ?>
    396                     </div>
    397 
    398                 </div>
    399 
    400             <?php endif; ?>
    401 
    402         <?php else: ?>
    403 
    404             <div id="message" class="info">
    405                 <p><?php _e( 'This group has no members.', 'buddypress' ); ?></p>
    406             </div>
    407 
    408         <?php endif; ?>
    409 
    410     </div>
    411 
    412     <?php
    413 
    414     /**
    415      * Fires after the group manage members admin display.
    416      *
    417      * @since 1.1.0
    418      */
    419     do_action( 'bp_after_group_manage_members_admin' ); ?>
    420 
    421 <?php endif; ?>
    422 
    423 <?php /* Manage Membership Requests */ ?>
    424 <?php if ( bp_is_group_admin_screen( 'membership-requests' ) ) : ?>
    425 
    426     <?php
    427 
    428     /**
    429      * Fires before the display of group membership requests admin.
    430      *
    431      * @since 1.1.0
    432      */
    433     do_action( 'bp_before_group_membership_requests_admin' ); ?>
    434 
    435         <div class="requests">
    436 
    437             <?php bp_get_template_part( 'groups/single/requests-loop' ); ?>
    438 
    439         </div>
    440 
    441     <?php
    442 
    443     /**
    444      * Fires after the display of group membership requests admin.
    445      *
    446      * @since 1.1.0
    447      */
    448     do_action( 'bp_after_group_membership_requests_admin' ); ?>
    449 
    450 <?php endif; ?>
     62</form><!-- #group-settings-form -->
    45163
    45264<?php
    453 
    45465/**
    455  * Fires inside the group admin template.
     66 * Fires after the group admin form and content.
    45667 *
    457  * Allows plugins to add custom group edit screens.
    458  *
    459  * @since 1.1.0
     68 * @since 2.7.0
    46069 */
    461 do_action( 'groups_custom_edit_steps' ); ?>
    462 
    463 <?php /* Delete Group Option */ ?>
    464 <?php if ( bp_is_group_admin_screen( 'delete-group' ) ) : ?>
    465 
    466     <?php
    467 
    468     /**
    469      * Fires before the display of group delete admin.
    470      *
    471      * @since 1.1.0
    472      */
    473     do_action( 'bp_before_group_delete_admin' ); ?>
    474 
    475     <div id="message" class="info">
    476         <p><?php _e( 'WARNING: Deleting this group will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'buddypress' ); ?></p>
    477     </div>
    478 
    479     <label for="delete-group-understand"><input type="checkbox" name="delete-group-understand" id="delete-group-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-group-button').disabled = ''; } else { document.getElementById('delete-group-button').disabled = 'disabled'; }" /> <?php _e( 'I understand the consequences of deleting this group.', 'buddypress' ); ?></label>
    480 
    481     <?php
    482 
    483     /**
    484      * Fires after the display of group delete admin.
    485      *
    486      * @since 1.1.0
    487      */
    488     do_action( 'bp_after_group_delete_admin' ); ?>
    489 
    490     <div class="submit">
    491         <input type="submit" disabled="disabled" value="<?php esc_attr_e( 'Delete Group', 'buddypress' ); ?>" id="delete-group-button" name="delete-group-button" />
    492     </div>
    493 
    494     <?php wp_nonce_field( 'groups_delete_group' ); ?>
    495 
    496 <?php endif; ?>
    497 
    498 <?php /* This is important, don't forget it */ ?>
    499     <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id(); ?>" />
    500 
    501 <?php
    502 
    503 /**
    504  * Fires inside the group admin form and after the content.
    505  *
    506  * @since 1.1.0
    507  */
    508 do_action( 'bp_after_group_admin_content' ); ?>
    509 
    510 </form><!-- #group-settings-form -->
     70do_action( 'bp_after_group_admin_form' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/cover-image-header.php

    r10993 r11202  
    6060
    6161                <span class="highlight"><?php bp_group_type(); ?></span>
    62                 <span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span>
     62                <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span>
    6363
    6464                <?php bp_group_description(); ?>
    6565
     66                <?php bp_group_type_list(); ?>
    6667            </div>
    6768        </div><!-- #item-header-content -->
     
    118119 * @since 1.2.0
    119120 */
    120 do_action( 'bp_after_group_header' );
     121do_action( 'bp_after_group_header' ); ?>
    121122
    122 /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    123 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/forum.php

    r10993 r11202  
    2222else : ?>
    2323
    24     <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     24    <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Group secondary navigation', 'buddypress' ); ?>" role="navigation">
    2525        <ul>
    2626
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/forum/edit.php

    r10993 r11202  
    1818    <form action="<?php bp_forum_topic_action(); ?>" method="post" id="forum-topic-form" class="standard-form">
    1919
    20         <div class="item-list-tabs" id="subnav" role="navigation">
     20        <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Forums secondary navigation', 'buddypress' ); ?>" role="navigation">
    2121            <ul>
    2222                <li>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/forum/topic.php

    r10993 r11202  
    1515
    1616<form action="<?php bp_forum_topic_action(); ?>" method="post" id="forum-topic-form" class="standard-form">
    17     <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     17    <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Forums secondary navigation', 'buddypress' ); ?>" role="navigation">
    1818        <ul>
    1919            <?php if ( is_user_logged_in() ) : ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/group-header.php

    r10993 r11202  
    6969<div id="item-header-content">
    7070    <span class="highlight"><?php bp_group_type(); ?></span>
    71     <span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span>
     71    <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span>
    7272
    7373    <?php
     
    8383
    8484        <?php bp_group_description(); ?>
     85
     86        <?php bp_group_type_list(); ?>
    8587
    8688        <div id="item-buttons">
     
    116118 * @since 1.2.0
    117119 */
    118 do_action( 'bp_after_group_header' );
     120do_action( 'bp_after_group_header' );  ?>
    119121
    120 /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    121 do_action( 'template_notices' );
    122 ?>
     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/groups/single/home.php

    r10993 r11202  
    3737
    3838    <div id="item-nav">
    39         <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
     39        <div class="item-list-tabs no-ajax" id="object-nav" aria-label="<?php esc_attr_e( 'Group primary navigation', 'buddypress' ); ?>" role="navigation">
    4040            <ul>
    4141
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/invites-loop.php

    r10993 r11202  
    5959                <?php bp_group_invite_user_avatar(); ?>
    6060
    61                 <h4><?php bp_group_invite_user_link(); ?></h4>
     61                <h3><?php bp_group_invite_user_link(); ?></h3>
    6262                <span class="activity"><?php bp_group_invite_user_last_active(); ?></span>
    6363
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/members.php

    r10993 r11202  
    5757
    5858                <h5><?php bp_group_member_link(); ?></h5>
    59                 <span class="activity"><?php bp_group_member_joined_since(); ?></span>
     59                <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_member_joined_since( array( 'relative' => false ) ) ); ?>"><?php bp_group_member_joined_since(); ?></span>
    6060
    6161                <?php
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/request-membership.php

    r10993 r11202  
    1515
    1616<?php if ( !bp_group_has_requested_membership() ) : ?>
     17    <h2 class="bp-screen-reader-text"><?php
     18        /* translators: accessibility text */
     19        _e( 'Request form', 'buddypress' );
     20    ?></h2>
     21
    1722    <p><?php printf( __( "You are requesting to become a member of the group '%s'.", 'buddypress' ), bp_get_group_name( false ) ); ?></p>
    1823
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/send-invites.php

    r10993 r11202  
    1818if ( bp_get_new_group_invite_friend_list() ) : ?>
    1919
     20    <h2 class="bp-screen-reader-text"><?php _e( 'Send invites', 'buddypress' ); ?></h2>
     21
    2022    <?php /* 'send-invite-form' is important for AJAX support */ ?>
    2123    <form action="<?php bp_group_send_invite_form_action(); ?>" method="post" id="send-invite-form" class="standard-form">
    2224
    23         <div class="invite">
     25        <div class="invite" aria-live="polite" aria-atomic="false" aria-relevant="all">
    2426            <?php bp_get_template_part( 'groups/single/invites-loop' ); ?>
    2527        </div>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/activate.php

    r10993 r11202  
    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/index.php

    r10993 r11202  
    3434    do_action( 'bp_before_directory_members_content' ); ?>
    3535
    36     <div id="members-dir-search" class="dir-search" role="search">
    37         <?php bp_directory_members_search_form(); ?>
    38     </div><!-- #members-dir-search -->
     36    <?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
     37    <?php if ( has_filter( 'bp_directory_members_search_form' ) ) : ?>
     38
     39        <div id="members-dir-search" class="dir-search" role="search">
     40            <?php bp_directory_members_search_form(); ?>
     41        </div><!-- #members-dir-search -->
     42
     43    <?php else: ?>
     44
     45        <?php bp_get_template_part( 'common/search/dir-search-form' ); ?>
     46
     47    <?php endif; ?>
    3948
    4049    <?php
    41 
    4250    /**
    4351     * Fires before the display of the members list tabs.
     
    4957    <form action="" method="post" id="members-directory-form" class="dir-form">
    5058
    51         <div class="item-list-tabs" role="navigation">
     59        <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Members directory main navigation', 'buddypress' ); ?>" role="navigation">
    5260            <ul>
    5361                <li class="selected" id="members-all"><a href="<?php bp_members_directory_permalink(); ?>"><?php printf( __( 'All Members %s', 'buddypress' ), '<span>' . bp_get_total_member_count() . '</span>' ); ?></a></li>
    5462
    5563                <?php if ( is_user_logged_in() && bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    56                     <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/'; ?>"><?php printf( __( 'My Friends %s', 'buddypress' ), '<span>' . bp_get_total_friend_count( bp_loggedin_user_id() ) . '</span>' ); ?></a></li>
     64                    <li id="members-personal"><a href="<?php echo esc_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/my-friends/' ); ?>"><?php printf( __( 'My Friends %s', 'buddypress' ), '<span>' . bp_get_total_friend_count( bp_loggedin_user_id() ) . '</span>' ); ?></a></li>
    5765                <?php endif; ?>
    5866
     
    6977        </div><!-- .item-list-tabs -->
    7078
    71         <div class="item-list-tabs" id="subnav" role="navigation">
     79        <div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Members directory secondary navigation', 'buddypress' ); ?>" role="navigation">
    7280            <ul>
    7381                <?php
     
    102110            </ul>
    103111        </div>
     112
     113        <h2 class="bp-screen-reader-text"><?php
     114            /* translators: accessibility text */
     115            _e( 'Members directory', 'buddypress' );
     116        ?></h2>
    104117
    105118        <div id="members-dir-list" class="members dir-list">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/members-loop.php

    r10993 r11202  
    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(); ?>
     
    6868                </div>
    6969
    70                 <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
     70                <div class="item-meta"><span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_member_last_active( array( 'relative' => false ) ) ); ?>"><?php bp_member_last_active(); ?></span></div>
    7171
    7272                <?php
  • trunk/src/bp-templates/bp-legacy/buddypress/members/register.php

    r10993 r11202  
    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>
     
    295303                        <input type="text" name="signup_blog_title" id="signup_blog_title" value="<?php bp_signup_blog_title_value(); ?>" />
    296304
    297                         <span class="label"><?php _e( 'I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?></span>
    298                         <?php
    299 
    300                         /**
    301                          * Fires and displays any member registration blog privacy errors.
    302                          *
    303                          * @since 1.1.0
    304                          */
    305                         do_action( 'bp_signup_blog_privacy_errors' ); ?>
    306 
    307                         <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>
    308                         <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>
    309319
    310320                        <?php
     
    360370        <?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
    361371
    362             <?php
    363 
    364             /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    365             do_action( 'template_notices' ); ?>
     372            <div id="template-notices" role="alert" aria-atomic="true">
     373                <?php
     374
     375                /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     376                do_action( 'template_notices' ); ?>
     377
     378            </div>
     379
    366380            <?php
    367381
     
    373387            do_action( 'bp_before_registration_confirmed' ); ?>
    374388
    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; ?>
     389            <div id="template-notices" role="alert" aria-atomic="true">
     390                <?php if ( bp_registration_needs_activation() ) : ?>
     391                    <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>
     392                <?php else : ?>
     393                    <p><?php _e( 'You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress' ); ?></p>
     394                <?php endif; ?>
     395            </div>
    380396
    381397            <?php
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/activity.php

    r10993 r11202  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313
     
    6262do_action( 'bp_before_member_activity_content' ); ?>
    6363
    64 <div class="activity">
     64<div class="activity" aria-live="polite" aria-atomic="true" aria-relevant="all">
    6565
    6666    <?php bp_get_template_part( 'activity/activity-loop' ) ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/blogs.php

    r10993 r11202  
    99?>
    1010
    11 <div class="item-list-tabs" id="subnav" role="navigation">
     11<div class="item-list-tabs" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php

    r10993 r11202  
    4545                do_action( 'bp_member_header_actions' ); ?></div><!-- #item-buttons -->
    4646
    47             <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
     47            <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_user_last_activity( bp_displayed_user_id() ) ); ?>"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
    4848
    4949            <?php
     
    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/forums.php

    r10993 r11202  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313        <?php bp_get_options_nav(); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/friends.php

    r10993 r11202  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313        <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
     
    5353        do_action( 'bp_before_member_friends_content' ); ?>
    5454
     55        <?php if (is_user_logged_in() ) : ?>
     56            <h2 class="bp-screen-reader-text"><?php
     57                /* translators: accessibility text */
     58                _e( 'My friends', 'buddypress' );
     59            ?></h2>
     60        <?php else : ?>
     61            <h2 class="bp-screen-reader-text"><?php
     62                /* translators: accessibility text */
     63                _e( 'Friends', 'buddypress' );
     64            ?></h2>
     65        <?php endif ?>
     66
    5567        <div class="members friends">
    5668
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/friends/requests.php

    r10993 r11202  
    1515
    1616<?php if ( bp_has_members( 'type=alphabetical&include=' . bp_get_friendship_requests() ) ) : ?>
     17
     18    <h2 class="bp-screen-reader-text"><?php
     19        /* translators: accessibility text */
     20        _e( 'Friendship requests', 'buddypress' );
     21    ?></h2>
    1722
    1823    <div id="pag-top" class="pagination no-ajax">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups.php

    r10993 r11202  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313        <?php if ( bp_is_my_profile() ) bp_get_options_nav(); ?>
     
    5555        do_action( 'bp_before_member_groups_content' ); ?>
    5656
     57        <?php if ( is_user_logged_in() ) : ?>
     58            <h2 class="bp-screen-reader-text"><?php
     59                /* translators: accessibility text */
     60                _e( 'My groups', 'buddypress' );
     61            ?></h2>
     62        <?php else : ?>
     63            <h2 class="bp-screen-reader-text"><?php
     64                /* translators: accessibility text */
     65                _e( 'Member\'s groups', 'buddypress' );
     66            ?></h2>
     67        <?php endif; ?>
     68
    5769        <div class="groups mygroups">
    5870
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups/invites.php

    r10993 r11202  
    1515
    1616<?php if ( bp_has_groups( 'type=invites&user_id=' . bp_loggedin_user_id() ) ) : ?>
     17
     18    <h2 class="bp-screen-reader-text"><?php
     19        /* translators: accessibility text */
     20        _e( 'Group invitations', 'buddypress' );
     21    ?></h2>
    1722
    1823    <ul id="group-list" class="invites item-list">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/home.php

    r10993 r11202  
    3636
    3737    <div id="item-nav">
    38         <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
     38        <div class="item-list-tabs no-ajax" id="object-nav" aria-label="<?php esc_attr_e( 'Member primary navigation', 'buddypress' ); ?>" role="navigation">
    3939            <ul>
    4040
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/member-header.php

    r10993 r11202  
    3232    <?php endif; ?>
    3333
    34     <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
     34    <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_user_last_activity( bp_displayed_user_id() ) ); ?>"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
    3535
    3636    <?php
     
    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>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages.php

    r10993 r11202  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313
     
    3737         */
    3838        do_action( 'bp_before_member_messages_content' ); ?>
     39
     40        <?php if ( bp_is_messages_inbox() ) : ?>
     41            <h2 class="bp-screen-reader-text"><?php
     42                /* translators: accessibility text */
     43                _e( 'Messages inbox', 'buddypress' );
     44            ?></h2>
     45        <?php elseif ( bp_is_messages_sentbox() ) : ?>
     46            <h2 class="bp-screen-reader-text"><?php
     47                /* translators: accessibility text */
     48                _e( 'Sent Messages', 'buddypress' );
     49            ?></h2>
     50        <?php endif; ?>
    3951
    4052        <div class="messages">
     
    7284        do_action( 'bp_before_member_messages_content' ); ?>
    7385
     86        <h2 class="bp-screen-reader-text"><?php
     87            /* translators: accessibility text */
     88            _e( 'Sitewide Notices', 'buddypress' );
     89        ?></h2>
     90
    7491        <div class="messages">
    7592            <?php bp_get_template_part( 'members/single/messages/notices-loop' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/compose.php

    r10993 r11202  
    88
    99?>
     10<h2 class="bp-screen-reader-text"><?php
     11    /* translators: accessibility text */
     12    _e( 'Compose Message', 'buddypress' );
     13?></h2>
     14
    1015<form action="<?php bp_messages_form_action('compose' ); ?>" method="post" id="send_message_form" class="standard-form" enctype="multipart/form-data">
    1116
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/messages-loop.php

    r10993 r11202  
    1515
    1616<?php if ( bp_has_message_threads( bp_ajax_querystring( 'messages' ) ) ) : ?>
     17
     18    <h2 class="bp-screen-reader-text"><?php
     19        /* translators: accessibility text */
     20        _e( 'Starred messages', 'buddypress' );
     21    ?></h2>
    1722
    1823    <div class="pagination no-ajax" id="user-pag">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/single.php

    r10993 r11202  
    2121    <?php if ( bp_thread_has_messages() ) : ?>
    2222
    23         <h3 id="message-subject"><?php bp_the_thread_subject(); ?></h3>
     23        <h2 id="message-subject"><?php bp_the_thread_subject(); ?></h2>
    2424
    2525        <p id="message-recipients">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/notifications.php

    r10993 r11202  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313        <?php bp_get_options_nav(); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/notifications/read.php

    r10993 r11202  
    1010
    1111<?php if ( bp_has_notifications() ) : ?>
     12
     13    <h2 class="bp-screen-reader-text"><?php
     14        /* translators: accessibility text */
     15        _e( 'Notifications', 'buddypress' );
     16    ?></h2>
    1217
    1318    <div id="pag-top" class="pagination no-ajax">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/notifications/unread.php

    r10993 r11202  
    1010
    1111<?php if ( bp_has_notifications() ) : ?>
     12
     13    <h2 class="bp-screen-reader-text"><?php
     14        /* translators: accessibility text */
     15        _e( 'Unread notifications', 'buddypress' );
     16    ?></h2>
    1217
    1318    <div id="pag-top" class="pagination no-ajax">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/plugins.php

    r10993 r11202  
    1919        <?php if ( ! bp_is_current_component_core() ) : ?>
    2020
    21         <div class="item-list-tabs no-ajax" id="subnav">
     21        <div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    2222            <ul>
    2323                <?php bp_get_options_nav(); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile.php

    r10993 r11202  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313        <?php bp_get_options_nav(); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php

    r10993 r11202  
    2727
    2828        <?php if ( bp_profile_has_multiple_groups() ) : ?>
    29             <ul class="button-nav">
     29            <ul class="button-nav" aria-label="<?php esc_attr_e( 'Profile field groups', 'buddypress' ); ?>" role="navigation">
    3030
    3131                <?php bp_profile_group_tabs(); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php

    r10993 r11202  
    2626
    2727    <div class="bp-widget wp-profile">
    28         <h4><?php bp_is_my_profile() ? _e( 'My Profile', 'buddypress' ) : printf( __( "%s's Profile", 'buddypress' ), bp_get_displayed_user_fullname() ); ?></h4>
     28        <h2><?php bp_is_my_profile() ? _e( 'My Profile', 'buddypress' ) : printf( __( "%s's Profile", 'buddypress' ), bp_get_displayed_user_fullname() ); ?></h2>
    2929
    3030        <table class="wp-profile-fields">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings.php

    r10993 r11202  
    99?>
    1010
    11 <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
     11<div class="item-list-tabs no-ajax" id="subnav" aria-label="<?php esc_attr_e( 'Member secondary navigation', 'buddypress' ); ?>" role="navigation">
    1212    <ul>
    1313        <?php if ( bp_core_can_edit_settings() ) : ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/general.php

    r10993 r11202  
    99/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
    1010do_action( 'bp_before_member_settings_template' ); ?>
     11
     12<h2 class="bp-screen-reader-text"><?php
     13    /* translators: accessibility text */
     14    _e( 'Account settings', 'buddypress' );
     15?></h2>
    1116
    1217<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/general'; ?>" method="post" class="standard-form" id="settings-form">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/notifications.php

    r10993 r11202  
    99/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
    1010do_action( 'bp_before_member_settings_template' ); ?>
     11
     12<h2 class="bp-screen-reader-text"><?php
     13    /* translators: accessibility text */
     14    _e( 'Notification settings', 'buddypress' );
     15?></h2>
    1116
    1217<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/notifications'; ?>" method="post" class="standard-form" id="settings-form">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/profile.php

    r10993 r11202  
    1313 */
    1414do_action( 'bp_before_member_settings_template' ); ?>
     15
     16<h2 class="bp-screen-reader-text"><?php
     17    /* translators: accessibility text */
     18    _e( 'Profile visibility settings', 'buddypress' );
     19?></h2>
    1520
    1621<form action="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_settings_slug() . '/profile' ); ?>" method="post" class="standard-form" id="settings-form">
  • trunk/src/bp-templates/bp-legacy/css/buddypress-rtl.css

    r10993 r11202  
    647647    background: #fafafa;
    648648    border-radius: 0;
    649     color: #767676;
     649    color: #737373;
    650650    font: inherit;
    651651    font-size: 100%;
     
    844844}
    845845
     846#buddypress form.standard-form .main-column ul#friend-list h3,
    846847#buddypress form.standard-form .main-column ul#friend-list h4 {
    847848    clear:none;
     
    861862    cursor: default;
    862863    opacity: .4;
     864}
     865
     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;
    863880}
    864881
     
    10711088#buddypress table.forum tr.alt td {
    10721089    background: #f5f5f5;
     1090    color: #707070;
    10731091}
    10741092#buddypress table.notification-settings {
     
    11691187    display: inline-block;
    11701188    font-size: small;
    1171     opacity: 0.8;
    11721189    padding: 0;
    11731190}
     
    13051322}
    13061323#buddypress ul.item-list li div.item-title,
     1324#buddypress ul.item-list li h3,
    13071325#buddypress ul.item-list li h4 {
    13081326    font-weight: normal;
     
    13901408    background-color: #eee;
    13911409    color: #555;
    1392     opacity: .8;
     1410    opacity: .9;
    13931411    font-weight: bold;
    13941412}
     
    14181436    overflow: auto;
    14191437    list-style: none;
     1438}
     1439#buddypress .group-members-list {
     1440    width: 100%;
     1441    margin-top: 1em;
     1442    clear: both;
     1443    overflow: auto;
    14201444}
    14211445#buddypress #item-buttons:empty {
     
    15841608#buddypress .field-visibility-settings-toggle,
    15851609#buddypress .field-visibility-settings-notoggle {
    1586     color: #767676;
     1610    color: #707070;
    15871611}
    15881612#buddypress .field-visibility-settings-toggle a,
     
    16161640    border-bottom-left-radius: 0;
    16171641    background: #f5f5f5;
     1642    color: #707070;
    16181643}
    16191644#buddypress .tmce-active button.switch-tmce {
     
    16221647    border-bottom-left-radius: 0;
    16231648    background: #f5f5f5;
     1649    color: #707070;
    16241650}
    16251651#buddypress .standard-form .wp-editor-container textarea {
     
    16411667    display: inline-block;
    16421668    font-size: small;
    1643     opacity: 0.8;
    16441669    padding: 0;
    16451670}
     
    17431768        margin-bottom:1em;
    17441769    }
     1770    #buddypress form.standard-form .main-column ul#friend-list h3,
    17451771    #buddypress form.standard-form .main-column ul#friend-list h4{
    17461772        width:100%;
  • trunk/src/bp-templates/bp-legacy/css/buddypress.css

    r10993 r11202  
    647647    background: #fafafa;
    648648    border-radius: 0;
    649     color: #767676;
     649    color: #737373;
    650650    font: inherit;
    651651    font-size: 100%;
     
    844844}
    845845
     846#buddypress form.standard-form .main-column ul#friend-list h3,
    846847#buddypress form.standard-form .main-column ul#friend-list h4 {
    847848    clear:none;
     
    861862    cursor: default;
    862863    opacity: .4;
     864}
     865
     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;
    863880}
    864881
     
    10711088#buddypress table.forum tr.alt td {
    10721089    background: #f5f5f5;
     1090    color: #707070;
    10731091}
    10741092#buddypress table.notification-settings {
     
    11691187    display: inline-block;
    11701188    font-size: small;
    1171     opacity: 0.8;
    11721189    padding: 0;
    11731190}
     
    13051322}
    13061323#buddypress ul.item-list li div.item-title,
     1324#buddypress ul.item-list li h3,
    13071325#buddypress ul.item-list li h4 {
    13081326    font-weight: normal;
     
    13901408    background-color: #eee;
    13911409    color: #555;
    1392     opacity: .8;
     1410    opacity: .9;
    13931411    font-weight: bold;
    13941412}
     
    14181436    overflow: auto;
    14191437    list-style: none;
     1438}
     1439#buddypress .group-members-list {
     1440    width: 100%;
     1441    margin-top: 1em;
     1442    clear: both;
     1443    overflow: auto;
    14201444}
    14211445#buddypress #item-buttons:empty {
     
    15841608#buddypress .field-visibility-settings-toggle,
    15851609#buddypress .field-visibility-settings-notoggle {
    1586     color: #767676;
     1610    color: #707070;
    15871611}
    15881612#buddypress .field-visibility-settings-toggle a,
     
    16161640    border-bottom-right-radius: 0;
    16171641    background: #f5f5f5;
     1642    color: #707070;
    16181643}
    16191644#buddypress .tmce-active button.switch-tmce {
     
    16221647    border-bottom-right-radius: 0;
    16231648    background: #f5f5f5;
     1649    color: #707070;
    16241650}
    16251651#buddypress .standard-form .wp-editor-container textarea {
     
    16411667    display: inline-block;
    16421668    font-size: small;
    1643     opacity: 0.8;
    16441669    padding: 0;
    16451670}
     
    17431768        margin-bottom:1em;
    17441769    }
     1770    #buddypress form.standard-form .main-column ul#friend-list h3,
    17451771    #buddypress form.standard-form .main-column ul#friend-list h4{
    17461772        width:100%;
  • trunk/src/bp-templates/bp-legacy/css/twentyeleven-rtl.css

    r10993 r11202  
    11311131*-----------------------------------------
    11321132*/
    1133 .groups #group-settings-form h4 {
     1133.groups #group-settings-form h3 {
    11341134    background: #555;
    11351135    color: #fff;
  • trunk/src/bp-templates/bp-legacy/css/twentyeleven.css

    r10993 r11202  
    11311131*-----------------------------------------
    11321132*/
    1133 .groups #group-settings-form h4 {
     1133.groups #group-settings-form h3 {
    11341134    background: #555;
    11351135    color: #fff;
  • trunk/src/bp-templates/bp-legacy/css/twentyeleven.scss

    r10993 r11202  
    16071607.groups {
    16081608    #group-settings-form {
    1609         h4 {
     1609        h3 {
    16101610            background: $dark-background;
    16111611            color: $content-background;
  • trunk/src/bp-templates/bp-legacy/css/twentyfifteen-rtl.css

    r10993 r11202  
    336336}
    337337
     338#buddypress .item-list a.activity-time-since {
     339    color: #717171;
     340}
     341
    338342#buddypress ul.item-list li {
    339343    overflow: hidden !important;
     
    600604    background-color: #f7f7f7;
    601605    border: 1px solid rgba(234, 234, 234, 0.6);
     606    color: #717171;
    602607    padding: 0 0.2em;
    603608}
     
    674679}
    675680
     681#buddypress #activity-stream .activity-comments a {
     682    color: #717171;
     683}
     684
    676685#buddypress #activity-stream .activity-comments.has-comments {
    677686    border-right: 1px solid #eaeaea;
     
    713722#buddypress #activity-stream .activity-comments > ul .acomment-meta {
    714723    border-bottom: 1px solid #eaeaea;
     724    color: #737373;
    715725    font-style: italic;
    716726}
     
    10011011*-----------------------------------------
    10021012*/
    1003 .groups #group-settings-form h4 {
     1013.groups #group-settings-form h3 {
    10041014    background: #555;
    10051015    color: #fff;
     
    10481058.groups.group-settings #group-settings-form div.radio ul,
    10491059.groups.group-settings #create-group-form div.radio ul {
    1050     color: rgba(51, 51, 51, 0.6);
     1060    color: #767676;
    10511061    font-size: 14px;
    10521062    font-size: 1.4rem;
  • trunk/src/bp-templates/bp-legacy/css/twentyfifteen.css

    r10993 r11202  
    336336}
    337337
     338#buddypress .item-list a.activity-time-since {
     339    color: #717171;
     340}
     341
    338342#buddypress ul.item-list li {
    339343    overflow: hidden !important;
     
    600604    background-color: #f7f7f7;
    601605    border: 1px solid rgba(234, 234, 234, 0.6);
     606    color: #717171;
    602607    padding: 0 0.2em;
    603608}
     
    674679}
    675680
     681#buddypress #activity-stream .activity-comments a {
     682    color: #717171;
     683}
     684
    676685#buddypress #activity-stream .activity-comments.has-comments {
    677686    border-left: 1px solid #eaeaea;
     
    713722#buddypress #activity-stream .activity-comments > ul .acomment-meta {
    714723    border-bottom: 1px solid #eaeaea;
     724    color: #737373;
    715725    font-style: italic;
    716726}
     
    10011011*-----------------------------------------
    10021012*/
    1003 .groups #group-settings-form h4 {
     1013.groups #group-settings-form h3 {
    10041014    background: #555;
    10051015    color: #fff;
     
    10481058.groups.group-settings #group-settings-form div.radio ul,
    10491059.groups.group-settings #create-group-form div.radio ul {
    1050     color: rgba(51, 51, 51, 0.6);
     1060    color: #767676;
    10511061    font-size: 14px;
    10521062    font-size: 1.4rem;
  • trunk/src/bp-templates/bp-legacy/css/twentyfifteen.scss

    r10993 r11202  
    523523            @include default-font-sans();
    524524        }
     525
     526        a.activity-time-since {
     527            color: #717171;
     528        }
    525529    }
    526530}
     
    824828                    background-color: $light-background;
    825829                    border: 1px solid rgba($border-light, 0.6);
     830                    color: #717171;
    826831                    padding: 0 0.2em;
    827832                }
     
    904909            margin: $spacing-val-sm 0 0;
    905910
     911            a {
     912                color: #717171;
     913            }
     914
    906915            &.has-comments {
    907916                border-left: 1px solid $border-light;
     
    937946                }
    938947
    939                 .acomment-meta {border-bottom: 1px solid $border-light; font-style: italic;}
     948                .acomment-meta {
     949                    border-bottom: 1px solid $border-light;
     950                    color: #737373;
     951                    font-style: italic;
     952                }
    940953
    941954                // Display the user avatar stacked up to 30em
     
    12741287.groups {
    12751288    #group-settings-form {
    1276         h4 {
     1289        h3 {
    12771290            background: $dark-background;
    12781291            color: $content-background;
     
    13281341
    13291342            ul {
    1330                 color: rgba($body-text, 0.6);
     1343                color: #767676;
    13311344                @include font-size(14);
    13321345            }
  • trunk/src/bp-templates/bp-legacy/css/twentyfourteen-rtl.css

    r10993 r11202  
    124124}
    125125
     126#buddypress .item-list-tabs ul a {
     127    color: #1b6e08;
     128}
     129
    126130.directory #buddypress .item-list-tabs ul:before,
    127131.directory #buddypress .item-list-tabs ul:after {
     
    163167}
    164168
     169.directory #buddypress #subnav a {
     170    color: #1b6e08;
     171}
     172
    165173/* List last filters global */
    166174#buddypress #subnav li#activity-filter-select.last {
     
    213221    }
    214222    #buddypress #object-nav ul li:focus, #buddypress #object-nav ul li:hover {
    215         background: #bebebe;
     223        background: #f1f1f1;
    216224    }
    217225    #buddypress #object-nav ul li span {
     
    236244    #buddypress #item-body #subnav li:focus,
    237245    #buddypress #item-body #subnav li:hover {
    238         background: #bebebe;
     246        background: #f1f1f1;
    239247    }
    240248    #buddypress #item-body #subnav li.current {
     
    553561}
    554562
     563#buddypress .activity .activity-comments a {
     564    color: #1b6e08;
     565}
     566
    555567#buddypress .activity .activity-comments ul {
    556568    background: rgba(247, 247, 247, 0.6);
     
    561573    border-right: 1px solid rgba(0, 0, 0, 0.1);
    562574    padding-right: 2%;
     575}
     576
     577#buddypress .activity .activity-comments .acomment-meta {
     578    color: #737373;
    563579}
    564580
     
    805821#group-settings-form .radio ul,
    806822#create-group-form .radio ul {
    807     color: #787878;
     823    color: #6b6b6b;
    808824}
    809825
     
    814830
    815831/* Manage Members */
    816 .groups.manage-members #group-settings-form h4 {
     832.groups.manage-members #group-settings-form h3 {
    817833    margin-top: 40px;
    818834}
     
    841857.groups.manage-members #group-settings-form .item-list li h5 > a {
    842858    border-bottom: 0;
     859    color: #22830c;
    843860}
    844861
     
    9981015    */
    9991016#buddypress .profile .bp-widget h2 {
    1000     background: #999;
     1017    background: #949494;
    10011018    color: #fff;
    10021019    padding: 0.4em 0.2em;
     
    14601477}
    14611478
     1479#buddypress table .alt a {
     1480    color: #22820c;
     1481}
     1482
    14621483/*__ User Account tables __*/
    14631484/**
  • trunk/src/bp-templates/bp-legacy/css/twentyfourteen.css

    r10993 r11202  
    124124}
    125125
     126#buddypress .item-list-tabs ul a {
     127    color: #1b6e08;
     128}
     129
    126130.directory #buddypress .item-list-tabs ul:before,
    127131.directory #buddypress .item-list-tabs ul:after {
     
    163167}
    164168
     169.directory #buddypress #subnav a {
     170    color: #1b6e08;
     171}
     172
    165173/* List last filters global */
    166174#buddypress #subnav li#activity-filter-select.last {
     
    213221    }
    214222    #buddypress #object-nav ul li:focus, #buddypress #object-nav ul li:hover {
    215         background: #bebebe;
     223        background: #f1f1f1;
    216224    }
    217225    #buddypress #object-nav ul li span {
     
    236244    #buddypress #item-body #subnav li:focus,
    237245    #buddypress #item-body #subnav li:hover {
    238         background: #bebebe;
     246        background: #f1f1f1;
    239247    }
    240248    #buddypress #item-body #subnav li.current {
     
    553561}
    554562
     563#buddypress .activity .activity-comments a {
     564    color: #1b6e08;
     565}
     566
    555567#buddypress .activity .activity-comments ul {
    556568    background: rgba(247, 247, 247, 0.6);
     
    561573    border-left: 1px solid rgba(0, 0, 0, 0.1);
    562574    padding-left: 2%;
     575}
     576
     577#buddypress .activity .activity-comments .acomment-meta {
     578    color: #737373;
    563579}
    564580
     
    805821#group-settings-form .radio ul,
    806822#create-group-form .radio ul {
    807     color: #787878;
     823    color: #6b6b6b;
    808824}
    809825
     
    814830
    815831/* Manage Members */
    816 .groups.manage-members #group-settings-form h4 {
     832.groups.manage-members #group-settings-form h3 {
    817833    margin-top: 40px;
    818834}
     
    841857.groups.manage-members #group-settings-form .item-list li h5 > a {
    842858    border-bottom: 0;
     859    color: #22830c;
    843860}
    844861
     
    9981015    */
    9991016#buddypress .profile .bp-widget h2 {
    1000     background: #999;
     1017    background: #949494;
    10011018    color: #fff;
    10021019    padding: 0.4em 0.2em;
     
    14601477}
    14611478
     1479#buddypress table .alt a {
     1480    color: #22820c;
     1481}
     1482
    14621483/*__ User Account tables __*/
    14631484/**
  • trunk/src/bp-templates/bp-legacy/css/twentyfourteen.scss

    r10993 r11202  
    127127$dark-back-text-color:   #fff;
    128128$light-background:       #f7f7f7;
    129 $medium-background:      #999;
     129$medium-background:      #949494;
    130130$dark-background:        #000;
    131131$border-color:           #000; // border color can be varied using rgba
     
    287287                }
    288288            }
     289
     290            a {
     291                color: #1b6e08;
     292            }
    289293        }
    290294    }
     
    331335        ul {
    332336            border-bottom: 0;
     337        }
     338
     339        a {
     340            color: #1b6e08;
    333341        }
    334342
     
    418426                    &:focus,
    419427                    &:hover {
    420                         background: $nav-background-border;
     428                        background: lighten($nav-background-border, 20%);
    421429                    }
    422430
     
    447455                li:focus,
    448456                li:hover {
    449                     background: $nav-background-border;
     457                    background: lighten($nav-background-border, 20%);
    450458                }
    451459
     
    838846            }
    839847
     848            a {
     849                color: #1b6e08;
     850            }
     851
    840852            ul {
    841853                background: rgba($light-background, 0.6);
     
    846858                border-left: 1px solid $border-light;
    847859                padding-left: 2%;
     860            }
     861
     862            .acomment-meta {
     863                color: #737373;
    848864            }
    849865
     
    11371153
    11381154        ul {
    1139             color: lighten($body-text, 30%);
     1155            color: lighten($body-text, 25%);
    11401156        }
    11411157    }
     
    11481164    #group-settings-form {
    11491165
    1150         h4 {margin-top: $spacing-val-lg;}
     1166        h3 {margin-top: $spacing-val-lg;}
    11511167
    11521168        .item-list {
     
    11631179                    clear: none;
    11641180                    float: left;
    1165                     > a {border-bottom: 0;}
     1181
     1182                    > a {
     1183                        border-bottom: 0;
     1184                        color: #22830c;
     1185                    }
    11661186                }
    11671187
     
    18491869    table {
    18501870        border-color: $border-med;
     1871
     1872        .alt a {
     1873            color: #22820c;
     1874        }
    18511875    }
    18521876}
  • trunk/src/bp-templates/bp-legacy/css/twentysixteen-rtl.css

    r10993 r11202  
    150150}
    151151
     152#buddypress div.item-list-tabs ul li a {
     153    color: #0073c1;
     154}
     155
    152156#buddypress div.item-list-tabs ul li a span {
    153157    border-radius: 25%;
     
    199203        border-bottom: 1px solid #eaeaea;
    200204    }
    201 }
    202 
    203 #buddypress #object-nav ul li:not(.selected) a {
    204     opacity: 0.7;
    205205}
    206206
     
    652652}
    653653
     654#buddypress #activity-stream li .activity-content .activity-header a {
     655    color: #0075c4;
     656}
     657
    654658@media screen and (min-width: 46.25em) {
    655659    #buddypress #activity-stream li .activity-avatar {
     
    694698    background-color: #f7f7f7;
    695699    border: 1px solid rgba(234, 234, 234, 0.6);
     700    color: #727272;
    696701    margin-top: 0;
    697702    padding: 0 0.2em;
     
    768773#buddypress #activity-stream .activity-comments ul {
    769774    background: rgba(247, 247, 247, 0.6);
     775    color: #737373;
    770776    margin: 15px 2px 0 0;
     777}
     778
     779#buddypress #activity-stream .activity-comments ul a {
     780    color: #0077c7;
     781}
     782
     783#buddypress #activity-stream .activity-comments .acomment-meta {
     784    color: #737373;
    771785}
    772786
     
    10611075*-----------------------------------------
    10621076*/
    1063 .groups #group-settings-form h4 {
     1077.groups #group-settings-form h3 {
    10641078    background: #555;
    10651079    color: #fff;
     
    11941208    font-size: 12px;
    11951209    font-size: 0.75rem;
     1210}
     1211
     1212.bp-user #buddypress table a {
     1213    color: #0074c2;
    11961214}
    11971215
     
    16941712    border-color: rgba(212, 208, 186, 0.5);
    16951713    border-width: 1px;
     1714}
     1715
     1716#buddypress .standard-form select {
     1717    color: #737373;
    16961718}
    16971719
  • trunk/src/bp-templates/bp-legacy/css/twentysixteen.css

    r10993 r11202  
    150150}
    151151
     152#buddypress div.item-list-tabs ul li a {
     153    color: #0073c1;
     154}
     155
    152156#buddypress div.item-list-tabs ul li a span {
    153157    border-radius: 25%;
     
    199203        border-bottom: 1px solid #eaeaea;
    200204    }
    201 }
    202 
    203 #buddypress #object-nav ul li:not(.selected) a {
    204     opacity: 0.7;
    205205}
    206206
     
    652652}
    653653
     654#buddypress #activity-stream li .activity-content .activity-header a {
     655    color: #0075c4;
     656}
     657
    654658@media screen and (min-width: 46.25em) {
    655659    #buddypress #activity-stream li .activity-avatar {
     
    694698    background-color: #f7f7f7;
    695699    border: 1px solid rgba(234, 234, 234, 0.6);
     700    color: #727272;
    696701    margin-top: 0;
    697702    padding: 0 0.2em;
     
    768773#buddypress #activity-stream .activity-comments ul {
    769774    background: rgba(247, 247, 247, 0.6);
     775    color: #737373;
    770776    margin: 15px 0 0 2px;
     777}
     778
     779#buddypress #activity-stream .activity-comments ul a {
     780    color: #0077c7;
     781}
     782
     783#buddypress #activity-stream .activity-comments .acomment-meta {
     784    color: #737373;
    771785}
    772786
     
    10611075*-----------------------------------------
    10621076*/
    1063 .groups #group-settings-form h4 {
     1077.groups #group-settings-form h3 {
    10641078    background: #555;
    10651079    color: #fff;
     
    11941208    font-size: 12px;
    11951209    font-size: 0.75rem;
     1210}
     1211
     1212.bp-user #buddypress table a {
     1213    color: #0074c2;
    11961214}
    11971215
     
    16941712    border-color: rgba(212, 208, 186, 0.5);
    16951713    border-width: 1px;
     1714}
     1715
     1716#buddypress .standard-form select {
     1717    color: #737373;
    16961718}
    16971719
  • trunk/src/bp-templates/bp-legacy/css/twentysixteen.scss

    r10993 r11202  
    364364            li {
    365365                a {
     366                    color: #0073c1;
     367
    366368                    span {border-radius: 25%;}
    367369                }
     
    440442
    441443            li:not(.selected) {
    442                 a {opacity: 0.7;}
    443444
    444445                @media screen and (max-width: 38.75em) {
     
    979980                .activity-header {
    980981                    @include font-size(14);
     982
     983                    a {
     984                        color: #0075c4;
     985                    }
    981986                }
    982987            }
     
    10321037                    background-color: $light-background;
    10331038                    border: 1px solid rgba($border-light, 0.6);
     1039                    color: #727272;
    10341040                    margin-top: 0;
    10351041                    padding: 0 0.2em;
     
    11151121            ul {
    11161122                background: rgba($light-background, 0.6);
     1123                color: #737373;
    11171124                margin: 15px 0 0 2px;
     1125
     1126                a {
     1127                    color: #0077c7;
     1128                }
     1129            }
     1130
     1131            .acomment-meta {
     1132                color: #737373;
    11181133            }
    11191134
     
    14651480.groups {
    14661481    #group-settings-form {
    1467         h4 {
     1482        h3 {
    14681483            background: $dark-background;
    14691484            color: $content-background;
     
    16191634            th {@include font-size(14)}
    16201635            td {@include font-size(12)}
     1636            a { color: #0074c2; }
    16211637
    16221638            @include medium-up {
     
    21812197        }
    21822198
     2199        select {
     2200            color: #737373;
     2201        }
     2202
    21832203    } // close .standard-form
    21842204
  • trunk/src/bp-templates/bp-legacy/css/twentyten-rtl.css

    r10993 r11202  
    10791079*-----------------------------------------
    10801080*/
    1081 .groups #group-settings-form h4 {
     1081.groups #group-settings-form h3 {
    10821082    background: #555;
    10831083    color: #fff;
  • trunk/src/bp-templates/bp-legacy/css/twentyten.css

    r10993 r11202  
    10791079*-----------------------------------------
    10801080*/
    1081 .groups #group-settings-form h4 {
     1081.groups #group-settings-form h3 {
    10821082    background: #555;
    10831083    color: #fff;
  • trunk/src/bp-templates/bp-legacy/css/twentyten.scss

    r10993 r11202  
    15101510.groups {
    15111511    #group-settings-form {
    1512         h4 {
     1512        h3 {
    15131513            background: $dark-background;
    15141514            color: $content-background;
  • trunk/src/bp-templates/bp-legacy/css/twentythirteen-rtl.css

    r10993 r11202  
    160160}
    161161
    162 #buddypress #object-nav ul li:not(.selected) a {
    163     opacity: 0.7;
    164 }
    165 
    166162@media screen and (min-width: 38.75em) {
    167163    #buddypress #object-nav ul li {
     
    359355
    360356#buddypress .activity-meta .button:focus, #buddypress .activity-meta .button:hover {
    361     background: #e37a5a;
     357    background: #bd4b28;
    362358    color: #f7f5e7;
    363359}
    364360
    365361#buddypress .action .generic-button a:focus, #buddypress .action .generic-button a:hover {
    366     background: #e37a5a;
     362    background: #bd4b28;
    367363    color: #f7f5e7;
    368364}
     
    647643    background-color: #f7f7f7;
    648644    border: 1px solid rgba(234, 234, 234, 0.6);
     645    color: #727272;
    649646    margin-top: 0;
    650647    padding: 0 0.2em;
     648}
     649
     650#buddypress #activity-stream .activity-content .activity-header p a.activity-time-since {
     651    color: #727272;
    651652}
    652653
     
    722723    background: rgba(247, 247, 247, 0.6);
    723724    margin: 15px 2px 0 0;
     725}
     726
     727#buddypress #activity-stream .activity-comments a {
     728    color: #ac0404;
     729}
     730
     731#buddypress #activity-stream .activity-comments .acomment-meta {
     732    color: #737373;
    724733}
    725734
     
    10901099*-----------------------------------------
    10911100*/
    1092 .groups #group-settings-form h4 {
     1101.groups #group-settings-form h3 {
    10931102    background: #555;
    10941103    color: #fff;
  • trunk/src/bp-templates/bp-legacy/css/twentythirteen.css

    r10993 r11202  
    160160}
    161161
    162 #buddypress #object-nav ul li:not(.selected) a {
    163     opacity: 0.7;
    164 }
    165 
    166162@media screen and (min-width: 38.75em) {
    167163    #buddypress #object-nav ul li {
     
    359355
    360356#buddypress .activity-meta .button:focus, #buddypress .activity-meta .button:hover {
    361     background: #e37a5a;
     357    background: #bd4b28;
    362358    color: #f7f5e7;
    363359}
    364360
    365361#buddypress .action .generic-button a:focus, #buddypress .action .generic-button a:hover {
    366     background: #e37a5a;
     362    background: #bd4b28;
    367363    color: #f7f5e7;
    368364}
     
    647643    background-color: #f7f7f7;
    648644    border: 1px solid rgba(234, 234, 234, 0.6);
     645    color: #727272;
    649646    margin-top: 0;
    650647    padding: 0 0.2em;
     648}
     649
     650#buddypress #activity-stream .activity-content .activity-header p a.activity-time-since {
     651    color: #727272;
    651652}
    652653
     
    722723    background: rgba(247, 247, 247, 0.6);
    723724    margin: 15px 0 0 2px;
     725}
     726
     727#buddypress #activity-stream .activity-comments a {
     728    color: #ac0404;
     729}
     730
     731#buddypress #activity-stream .activity-comments .acomment-meta {
     732    color: #737373;
    724733}
    725734
     
    10901099*-----------------------------------------
    10911100*/
    1092 .groups #group-settings-form h4 {
     1101.groups #group-settings-form h3 {
    10931102    background: #555;
    10941103    color: #fff;
  • trunk/src/bp-templates/bp-legacy/css/twentythirteen.scss

    r10993 r11202  
    144144$border-light:       #eaeaea; // BP dividers
    145145$border-med:         #ddd;
    146 $background-hover:   #db572f; // 2013 link background hover
     146$background-hover:   #bd4b28; // 2013 link background hover
    147147$bp-button-hover:    #ededed; // this is the default BP button hover background
    148148$notice-error:       #c85a6e;
     
    349349            }
    350350
    351             li:not(.selected) {
    352                 a {opacity: 0.7;}
    353             }
    354 
    355351            @media screen and (min-width: 38.75em) {
    356352                li {
     
    598594            &:focus,
    599595            &:hover {
    600                 background: lighten($background-hover, 10%);
     596                background: $background-hover;
    601597                color: $cream-background;
    602598            }
     
    609605                &:focus,
    610606                &:hover {
    611                     background: lighten($background-hover, 10%);
     607                    background: $background-hover;
    612608                    color: $cream-background;
    613609                }
     
    939935                    background-color: $light-background;
    940936                    border: 1px solid rgba($border-light, 0.6);
     937                    color: #727272;
    941938                    margin-top: 0;
    942939                    padding: 0 0.2em;
     940
     941                    a.activity-time-since {
     942                        color: #727272;
     943                    }
    943944                }
    944945
     
    10231024                background: rgba($light-background, 0.6);
    10241025                margin: 15px 0 0 2px;
     1026            }
     1027
     1028            a {
     1029                color: #ac0404;
     1030            }
     1031
     1032            .acomment-meta {
     1033                color: #737373;
    10251034            }
    10261035
     
    14581467.groups {
    14591468    #group-settings-form {
    1460         h4 {
     1469        h3 {
    14611470            background: $dark-background;
    14621471            color: $content-background;
  • trunk/src/bp-templates/bp-legacy/css/twentytwelve-rtl.css

    r10993 r11202  
    771771}
    772772
     773#buddypress #activity-stream .activity-comments a {
     774    color: #737373;
     775}
     776
    773777#buddypress #activity-stream .activity-comments .ac-form {
    774778    border: 1px solid #d4d0ba;
     
    11061110*-----------------------------------------
    11071111*/
    1108 .groups #group-settings-form h4 {
     1112.groups #group-settings-form h3 {
    11091113    background: #555;
    11101114    color: #fff;
     
    13861390    border-radius: 2px;
    13871391    background-clip: padding-box;
    1388     color: #eee;
     1392    color: #f1f1f1;
    13891393    font-weight: bold;
    13901394    padding: 0.1em 0.5em;
  • trunk/src/bp-templates/bp-legacy/css/twentytwelve.css

    r10993 r11202  
    771771}
    772772
     773#buddypress #activity-stream .activity-comments a {
     774    color: #737373;
     775}
     776
    773777#buddypress #activity-stream .activity-comments .ac-form {
    774778    border: 1px solid #d4d0ba;
     
    11061110*-----------------------------------------
    11071111*/
    1108 .groups #group-settings-form h4 {
     1112.groups #group-settings-form h3 {
    11091113    background: #555;
    11101114    color: #fff;
     
    13861390    border-radius: 2px;
    13871391    background-clip: padding-box;
    1388     color: #eee;
     1392    color: #f1f1f1;
    13891393    font-weight: bold;
    13901394    padding: 0.1em 0.5em;
  • trunk/src/bp-templates/bp-legacy/css/twentytwelve.scss

    r10993 r11202  
    10991099                        @include font-size(12);
    11001100                    }
    1101 
    1102                 }
    1103 
     1101                }
     1102
     1103            }
     1104
     1105            a {
     1106                color: #737373;
    11041107            }
    11051108
     
    15221525.groups {
    15231526    #group-settings-form {
    1524         h4 {
     1527        h3 {
    15251528            background: $dark-background;
    15261529            color: $content-background;
     
    18021805                    background: lighten($dark-background, 10%);
    18031806                    @include border-radius(2px);
    1804                     color: #eee;
     1807                    color: #f1f1f1;
    18051808                    font-weight: bold;
    18061809                    padding: 0.1em 0.5em;
  • trunk/src/bp-templates/bp-legacy/js/buddypress.js

    r10993 r11202  
    309309        /* Favoriting activity stream items */
    310310        if ( target.hasClass('fav') || target.hasClass('unfav') ) {
     311            /* Bail if a request is in progress */
     312            if ( target.hasClass( 'loading' ) ) {
     313                return false;
     314            }
     315
    311316            type      = target.hasClass('fav') ? 'fav' : 'unfav';
    312317            parent    = target.closest('.activity-item');
     
    848853
    849854        var target = jq(event.target),
    850             css_id, object, template;
     855            css_id, object, template, search_terms;
    851856
    852857        if ( target.attr('type') === 'submit' ) {
     
    854859            object = css_id[0];
    855860            template = null;
     861            search_terms = target.parent().find( '#' + object + '_search' ).val();
    856862
    857863            // The Group Members page specifies its own template
     
    861867            }
    862868
    863             bp_filter_request( object, jq.cookie('bp-' + object + '-filter'), jq.cookie('bp-' + object + '-scope') , 'div.' + object, target.parent().children('label').children('input').val(), 1, jq.cookie('bp-' + object + '-extras'), null, template );
     869            bp_filter_request( object, jq.cookie('bp-' + object + '-filter'), jq.cookie('bp-' + object + '-scope') , 'div.' + object, search_terms, 1, jq.cookie('bp-' + object + '-extras'), null, template );
    864870
    865871            return false;
     
    871877    /* When a navigation tab is clicked - e.g. | All Groups | My Groups | */
    872878    jq('div.item-list-tabs').on( 'click', function(event) {
     879        // If on a directory page with a type filter, add no-ajax class.
     880        if ( jq( 'body' ).hasClass( 'type' ) && jq( 'body' ).hasClass( 'directory' ) ) {
     881            jq(this).addClass( 'no-ajax' );
     882        }
     883
    873884        if ( jq(this).hasClass('no-ajax')  || jq( event.target ).hasClass('no-ajax') )  {
    874885            return;
Note: See TracChangeset for help on using the changeset viewer.