Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/09/2016 07:44:28 PM (3 years ago)
Author:
mercime
Message:

Accessibility: Add headings in Groups-Manage screens.

Headings for screen readers are added in all the Group management
screens except for the Cover Image heading which has been bumped up
and moved above and outside its form.

See #7216.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php

    r10969 r11005  
    1313    </ul>
    1414</div><!-- .item-list-tabs -->
     15
     16<?php /* Add headings before respective forms. */ ?>
     17
     18<?php if ( bp_is_group_admin_screen( 'edit-details' ) ) : ?>
     19    <h2 class="bp-screen-reader-text"><?php _e( 'Manage Group Details', 'buddypress' ); ?></h2>
     20
     21<?php elseif ( bp_is_group_admin_screen( 'group-settings' ) ) : ?>
     22    <h2 class="bp-screen-reader-text"><?php _e( 'Manage Group Settings', 'buddypress' ); ?></h2>
     23
     24<?php elseif ( bp_is_group_admin_screen( 'manage-members' ) ) : ?>
     25    <h2 class="bp-screen-reader-text"><?php _e( 'Manage Members', 'buddypress' ); ?></h2>
     26
     27<?php elseif ( bp_is_group_admin_screen( 'group-avatar' ) ) : ?>
     28    <h2 class="bp-screen-reader-text"><?php _e( 'Group Avatar', 'buddypress' ); ?></h2>
     29
     30<?php elseif ( bp_is_group_admin_screen( 'group-cover-image' ) ) : ?>
     31    <h2><?php _e( 'Cover Image', 'buddypress' ); ?></h2>
     32
     33<?php elseif ( bp_is_group_admin_screen( 'membership-requests' ) ) : ?>
     34    <h2 class="bp-screen-reader-text"><?php _e( 'Manage Membership Requests', 'buddypress' ); ?></h2>
     35
     36<?php elseif ( bp_is_group_admin_screen( 'delete-group' ) ) : ?>
     37    <h2 class="bp-screen-reader-text"><?php _e( 'Delete Group', 'buddypress' ); ?></h2>
     38
     39<?php endif; ?>
    1540
    1641<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">
     
    227252<?php /* Group Cover image Settings */ ?>
    228253<?php if ( bp_is_group_admin_screen( 'group-cover-image' ) ) : ?>
    229 
    230     <h4><?php _e( 'Change Cover Image', 'buddypress' ); ?></h4>
    231254
    232255    <?php
Note: See TracChangeset for help on using the changeset viewer.