Skip to:
Content

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

Accessibility: Use fieldsets to group radio buttons in Manage > Settings.

Fixes #6882.

File:
1 edited

Legend:

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

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