bp_groups_admin_edit_metabox_settings( object $item )
Markup for the single group’s Settings metabox.
Description
Parameters
- $item
-
(Required) Information about the current group.
Source
File: bp-groups/bp-groups-admin.php
function bp_groups_admin_edit_metabox_settings( $item ) { $invite_status = bp_group_get_invite_status( $item->id ); $activity_feed_status = bp_group_get_activity_feed_status( $item->id ); $media_status = bp_group_get_media_status( $item->id ); $album_status = bp_group_get_album_status( $item->id ); ?> <div class="bp-groups-settings-section" id="bp-groups-settings-section-status"> <fieldset> <legend><?php _e( 'Group Privacy', 'buddyboss' ); ?></legend> <label for="bp-group-status-public"><input type="radio" name="group-status" id="bp-group-status-public" value="public" <?php checked( $item->status, 'public' ) ?> /><?php _e( 'Public', 'buddyboss' ) ?></label> <label for="bp-group-status-private"><input type="radio" name="group-status" id="bp-group-status-private" value="private" <?php checked( $item->status, 'private' ) ?> /><?php _e( 'Private', 'buddyboss' ) ?></label> <label for="bp-group-status-hidden"><input type="radio" name="group-status" id="bp-group-status-hidden" value="hidden" <?php checked( $item->status, 'hidden' ) ?> /><?php _e( 'Hidden', 'buddyboss' ) ?></label> </fieldset> </div> <div class="bp-groups-settings-section" id="bp-groups-settings-section-invite-status"> <fieldset> <legend><?php _e( 'Who can invite others to join this group?', 'buddyboss' ); ?></legend> <label for="bp-group-invite-status-members"><input type="radio" name="group-invite-status" id="bp-group-invite-status-members" value="members" <?php checked( $invite_status, 'members' ) ?> /><?php _e( 'All Members', 'buddyboss' ) ?></label> <label for="bp-group-invite-status-mods"><input type="radio" name="group-invite-status" id="bp-group-invite-status-mods" value="mods" <?php checked( $invite_status, 'mods' ) ?> /><?php _e( 'Organizers and Moderators', 'buddyboss' ) ?></label> <label for="bp-group-invite-status-admins"><input type="radio" name="group-invite-status" id="bp-group-invite-status-admins" value="admins" <?php checked( $invite_status, 'admins' ) ?> /><?php _e( 'Organizers', 'buddyboss' ) ?></label> </fieldset> </div> <div class="bp-groups-settings-section" id="bp-groups-settings-section-activity-feed-status"> <fieldset> <legend><?php _e( 'Who can post into this group?', 'buddyboss' ); ?></legend> <label for="bp-group-activity-feed-status-members"><input type="radio" name="group-activity-feed-status" id="bp-group-activity-feed-status-members" value="members" <?php checked( $activity_feed_status, 'members' ) ?> /><?php _e( 'All group members', 'buddyboss' ) ?></label> <label for="bp-group-activity-feed-status-mods"><input type="radio" name="group-activity-feed-status" id="bp-group-activity-feed-status-mods" value="mods" <?php checked( $activity_feed_status, 'mods' ) ?> /><?php _e( 'Organizers and Moderators only', 'buddyboss' ) ?></label> <label for="bp-group-activity-feed-status-admins"><input type="radio" name="group-activity-feed-status" id="bp-group-activity-feed-status-admins" value="admins" <?php checked( $activity_feed_status, 'admins' ) ?> /><?php _e( 'Organizers only', 'buddyboss' ) ?></label> </fieldset> </div> <?php if ( bp_is_active( 'media' ) && bp_is_group_media_support_enabled() ) : ?> <div class="bp-groups-settings-section" id="bp-groups-settings-section-album-status"> <fieldset> <legend><?php _e( 'Who can manage media in this group?', 'buddyboss' ); ?></legend> <label for="bp-group-media-status-members"><input type="radio" name="group-media-status" id="bp-group-media-status-members" value="members" <?php checked( $media_status, 'members' ) ?> /><?php _e( 'All Members', 'buddyboss' ) ?></label> <label for="bp-group-media-status-mods"><input type="radio" name="group-media-status" id="bp-group-media-status-mods" value="mods" <?php checked( $media_status, 'mods' ) ?> /><?php _e( 'Organizers and Moderators', 'buddyboss' ) ?></label> <label for="bp-group-media-status-admins"><input type="radio" name="group-media-status" id="bp-group-media-status-admins" value="admins" <?php checked( $media_status, 'admins' ) ?> /><?php _e( 'Organizers', 'buddyboss' ) ?></label> </fieldset> </div> <?php endif; ?> <?php if ( bp_is_active( 'media' ) && bp_is_group_albums_support_enabled() ) : ?> <div class="bp-groups-settings-section" id="bp-groups-settings-section-album-status"> <fieldset> <legend><?php _e( 'Who can manage albums in this group?', 'buddyboss' ); ?></legend> <label for="bp-group-album-status-members"><input type="radio" name="group-album-status" id="bp-group-album-status-members" value="members" <?php checked( $album_status, 'members' ) ?> /><?php _e( 'All Members', 'buddyboss' ) ?></label> <label for="bp-group-album-status-mods"><input type="radio" name="group-album-status" id="bp-group-album-status-mods" value="mods" <?php checked( $album_status, 'mods' ) ?> /><?php _e( 'Organizers and Moderators', 'buddyboss' ) ?></label> <label for="bp-group-album-status-admins"><input type="radio" name="group-album-status" id="bp-group-album-status-admins" value="admins" <?php checked( $album_status, 'admins' ) ?> /><?php _e( 'Organizers', 'buddyboss' ) ?></label> </fieldset> </div> <?php endif; ?> <?php }
Changelog
Version | Description |
---|---|
BuddyPress 1.7.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.