Changeset 13822 for trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/group-settings.php
- Timestamp:
- 04/29/2024 06:50:42 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin/group-settings.php
r13156 r13822 10 10 ?> 11 11 12 <h2 class="bp-screen-reader-text"><?php _e( 'Manage Group Settings', 'buddypress' ); ?></h2>12 <h2 class="bp-screen-reader-text"><?php esc_html_e( 'Manage Group Settings', 'buddypress' ); ?></h2> 13 13 14 14 <?php … … 23 23 <fieldset class="group-create-privacy"> 24 24 25 <legend><?php _e( 'Privacy Options', 'buddypress' ); ?></legend>25 <legend><?php esc_html_e( 'Privacy Options', 'buddypress' ); ?></legend> 26 26 27 27 <div class="radio"> 28 28 29 <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>29 <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 esc_html_e( 'This is a public group', 'buddypress' ); ?></label> 30 30 31 31 <ul id="public-group-description"> 32 <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>33 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>34 <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>32 <li><?php esc_html_e( 'Any site member can join this group.', 'buddypress' ); ?></li> 33 <li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li> 34 <li><?php esc_html_e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li> 35 35 </ul> 36 36 37 <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>37 <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 esc_html_e( 'This is a private group', 'buddypress' ); ?></label> 38 38 39 39 <ul id="private-group-description"> 40 <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>41 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>42 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>40 <li><?php esc_html_e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li> 41 <li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li> 42 <li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li> 43 43 </ul> 44 44 45 <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>45 <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 esc_html_e('This is a hidden group', 'buddypress' ); ?></label> 46 46 47 47 <ul id="hidden-group-description"> 48 <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>49 <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>50 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>48 <li><?php esc_html_e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li> 49 <li><?php esc_html_e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li> 50 <li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li> 51 51 </ul> 52 52 … … 59 59 60 60 <fieldset class="group-create-types"> 61 <legend><?php _e( 'Group Types', 'buddypress' ); ?></legend>61 <legend><?php esc_html_e( 'Group Types', 'buddypress' ); ?></legend> 62 62 63 <p><?php _e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p>63 <p><?php esc_html_e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p> 64 64 65 65 <?php foreach ( $group_types as $type ) : ?> 66 66 <div class="checkbox"> 67 <label for="<?php printf( 'group-type-%s', $type->name); ?>">68 <input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php checked( bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ); ?>/> <?php echo esc_html( $type->labels['name'] ); ?>67 <label for="<?php printf( 'group-type-%s', esc_attr( $type->name ) ); ?>"> 68 <input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', esc_attr( $type->name ) ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php checked( bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ); ?>/> <?php echo esc_html( $type->labels['name'] ); ?> 69 69 <?php 70 70 if ( ! empty( $type->description ) ) { 71 printf( __( '– %s', 'buddypress' ), '<span class="bp-group-type-desc">' . esc_html( $type->description ) . '</span>' );71 printf( esc_html__( '– %s', 'buddypress' ), '<span class="bp-group-type-desc">' . esc_html( $type->description ) . '</span>' ); 72 72 } 73 73 ?> … … 86 86 <fieldset class="group-create-invitations"> 87 87 88 <legend><?php _e( 'Group Invitations', 'buddypress' ); ?></legend>88 <legend><?php esc_html_e( 'Group Invitations', 'buddypress' ); ?></legend> 89 89 90 <p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>90 <p><?php esc_html_e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p> 91 91 92 92 <div class="radio"> 93 93 94 <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>94 <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 esc_html_e( 'All group members', 'buddypress' ); ?></label> 95 95 96 <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>96 <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 esc_html_e( 'Group admins and mods only', 'buddypress' ); ?></label> 97 97 98 <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>98 <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 esc_html_e( 'Group admins only', 'buddypress' ); ?></label> 99 99 100 100 </div>
Note: See TracChangeset
for help on using the changeset viewer.