Skip to:
Content

BuddyPress.org

Changeset 10968


Ignore:
Timestamp:
07/25/2016 02:53:04 AM (3 years ago)
Author:
mercime
Message:

Accessibility: Use fieldsets to group radio buttons in Group > Create.

Fixes #6881.

File:
1 edited

Legend:

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

    r10827 r10968  
    9999                do_action( 'bp_before_group_settings_creation_step' ); ?>
    100100
    101                 <h4><?php _e( 'Privacy Options', 'buddypress' ); ?></h4>
    102 
    103                 <div class="radio">
    104 
    105                     <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>
    106 
    107                     <ul id="public-group-description">
    108                         <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>
    109                         <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
    110                         <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
    111                     </ul>
    112 
    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 
    123                     <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>
    124 
    125                     <ul id="hidden-group-description">
    126                         <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
    127                         <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
    128                         <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    129                     </ul>
    130 
    131                 </div>
    132 
    133                 <h4><?php _e( 'Group Invitations', 'buddypress' ); ?></h4>
    134 
    135                 <p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>
    136 
    137                 <div class="radio">
    138 
    139                     <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>
    140 
    141                     <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>
    142 
    143                     <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>
    144 
    145                 </div>
     101                <fieldset class="group-create-privacy">
     102
     103                    <legend><?php _e( 'Privacy Options', 'buddypress' ); ?></legend>
     104
     105                    <div class="radio">
     106
     107                        <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>
     108
     109                        <ul id="public-group-description">
     110                            <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>
     111                            <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
     112                            <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
     113                        </ul>
     114
     115                        <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>
     116
     117                        <ul id="private-group-description">
     118                            <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
     119                            <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
     120                            <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
     121                        </ul>
     122
     123                        <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>
     124
     125                        <ul id="hidden-group-description">
     126                            <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
     127                            <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
     128                            <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
     129                        </ul>
     130
     131                    </div>
     132
     133                </fieldset>
     134
     135                <fieldset class="group-create-invitations">
     136
     137                    <legend><?php _e( 'Group Invitations', 'buddypress' ); ?></legend>
     138
     139                    <p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>
     140
     141                    <div class="radio">
     142
     143                        <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>
     144
     145                        <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>
     146
     147                        <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>
     148
     149                    </div>
     150
     151                </fieldset>
    146152
    147153                <?php if ( bp_is_active( 'forums' ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.