[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * BP Nouveau Group's edit settings template. 4 * 5 * @since 3.0.0 6 * @version 3.2.0 7 */ 8 ?> 9 10 <?php if ( bp_is_group_create() ) : ?> 11 12 <h3 class="bp-screen-title creation-step-name"> 13 <?php esc_html_e( 'Select Group Settings', 'buddypress' ); ?> 14 </h3> 15 16 <?php else : ?> 17 18 <h2 class="bp-screen-title"> 19 <?php esc_html_e( 'Change Group Settings', 'buddypress' ); ?> 20 </h2> 21 22 <?php endif; ?> 23 24 <div class="group-settings-selections"> 25 26 <fieldset class="radio group-status-type"> 27 <legend><?php esc_html_e( 'Privacy Options', 'buddypress' ); ?></legend> 28 29 <label for="group-status-public"> 30 <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' ); ?> 31 </label> 32 33 <ul id="public-group-description"> 34 <li><?php esc_html_e( 'Any site member can join this group.', 'buddypress' ); ?></li> 35 <li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li> 36 <li><?php esc_html_e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li> 37 </ul> 38 39 <label for="group-status-private"> 40 <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' ); ?> 41 </label> 42 43 <ul id="private-group-description"> 44 <li><?php esc_html_e( 'Only people who request membership and are accepted can join the group.', 'buddypress' ); ?></li> 45 <li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li> 46 <li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li> 47 </ul> 48 49 <label for="group-status-hidden"> 50 <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' ); ?> 51 </label> 52 53 <ul id="hidden-group-description"> 54 <li><?php esc_html_e( 'Only people who are invited can join the group.', 'buddypress' ); ?></li> 55 <li><?php esc_html_e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li> 56 <li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li> 57 </ul> 58 59 </fieldset> 60 61 <?php 62 // Group type selection 63 $group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' ); 64 if ( $group_types ) : ?> 65 66 <fieldset class="group-create-types"> 67 <legend><?php esc_html_e( 'Group Types', 'buddypress' ); ?></legend> 68 69 <p tabindex="0"><?php esc_html_e( 'Select the types this group should be a part of.', 'buddypress' ); ?></p> 70 71 <?php foreach ( $group_types as $type ) : ?> 72 <div class="checkbox"> 73 <label for="<?php printf( 'group-type-%s', $type->name ); ?>"> 74 <input type="checkbox" name="group-types[]" id="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php bp_nouveau_group_type_checked( $type ); ?>/> <?php echo esc_html( $type->labels['name'] ); ?> 75 <?php 76 if ( ! empty( $type->description ) ) { 77 printf( '– %s', '<span class="bp-group-type-desc">' . esc_html( $type->description ) . '</span>' ); 78 } 79 ?> 80 </label> 81 </div> 82 83 <?php endforeach; ?> 84 85 </fieldset> 86 87 <?php endif; ?> 88 89 <?php if ( bp_is_active( 'groups', 'invitations' ) ): ?> 90 91 <fieldset class="radio group-invitations"> 92 <legend><?php esc_html_e( 'Group Invitations', 'buddypress' ); ?></legend> 93 94 <p tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p> 95 96 <label for="group-invite-status-members"> 97 <input type="radio" name="group-invite-status" id="group-invite-status-members" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> /> 98 <?php esc_html_e( 'All group members', 'buddypress' ); ?> 99 </label> 100 101 <label for="group-invite-status-mods"> 102 <input type="radio" name="group-invite-status" id="group-invite-status-mods" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> /> 103 <?php esc_html_e( 'Group admins and mods only', 'buddypress' ); ?> 104 </label> 105 106 <label for="group-invite-status-admins"> 107 <input type="radio" name="group-invite-status" id="group-invite-status-admins" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> /> 108 <?php esc_html_e( 'Group admins only', 'buddypress' ); ?> 109 </label> 110 111 </fieldset> 112 113 <?php endif; ?> 114 115 </div><!-- // .group-settings-selections -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Sep 9 01:00:54 2024 | Cross-referenced by PHPXref 0.7.1 |