Skip to:
Content

BuddyPress.org


Ignore:
File:
1 edited

Legend:

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

    r10968 r11182  
    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
Note: See TracChangeset for help on using the changeset viewer.