This function has been deprecated.
bp_group_admin_memberlist( bool $admin_list = false, bool $group = false )
Since BuddyPress 1.0, this generated the group settings admin/member screen.
Description
As of BuddyPress 1.5 (r4489), and because this function outputs HTML, it was moved into /bp-default/groups/single/admin.php.
Parameters
- $admin_list
-
(Optional)
Default value: false
- $group
-
(Optional)
Default value: false
Source
File: bp-groups/bp-groups-template.php
3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 | function bp_group_admin_memberlist( $admin_list = false, $group = false ) { global $groups_template ; _deprecated_function( __FUNCTION__ , '1.5' , 'No longer used. See /bp-default/groups/single/admin.php' ); if ( empty ( $group ) ) { $group =& $groups_template ->group; } if ( $admins = groups_get_group_admins( $group ->id ) ) : ?> <ul id= "admins-list" class = "item-list<?php if ( !empty( $admin_list ) ) : ?> single-line<?php endif; ?>" > <?php foreach ( ( array ) $admins as $admin ) { ?> <?php if ( ! empty ( $admin_list ) ) : ?> <li> <?php echo bp_core_fetch_avatar( array ( 'item_id' => $admin ->user_id, 'type' => 'thumb' , 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile photo of %s' , 'buddyboss' ), bp_core_get_user_displayname( $admin ->user_id ) ) ) ) ?> <h5> <?php echo bp_core_get_userlink( $admin ->user_id ); ?> <span class = "small" > <a class = "button confirm admin-demote-to-member" href= "<?php bp_group_member_demote_link($admin->user_id) ?>" ><?php _e( 'Demote to member' , 'buddyboss' ) ?></a> </span> </h5> </li> <?php else : ?> <li> <?php echo bp_core_fetch_avatar( array ( 'item_id' => $admin ->user_id, 'type' => 'thumb' , 'alt' => sprintf( __( 'Profile photo of %s' , 'buddyboss' ), bp_core_get_user_displayname( $admin ->user_id ) ) ) ) ?> <h5><?php echo bp_core_get_userlink( $admin ->user_id ) ?></h5> <span class = "activity" > <?php echo bp_core_get_last_activity( strtotime ( $admin ->date_modified ), __( 'joined %s' , 'buddyboss' ) ); ?> </span> <?php if ( bp_is_active( 'friends' ) ) : ?> <div class = "action" > <?php bp_add_friend_button( $admin ->user_id ); ?> </div> <?php endif ; ?> </li> <?php endif ; } ?> </ul> <?php else : ?> <div id= "message" class = "info" > <p><?php _e( 'This group has no organizers' , 'buddyboss' ); ?></p> </div> <?php endif ; } |
Changelog
Version | Description |
---|---|
BuddyPress 1.0.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.