diff --git src/bp-templates/bp-legacy/buddypress/groups/single/admin/manage-members.php src/bp-templates/bp-legacy/buddypress/groups/single/admin/manage-members.php
index f404f9b..3794d4e 100644
|
|
do_action( 'bp_before_group_manage_members_admin' ); ?> |
22 | 22 | <div class="bp-widget"> |
23 | 23 | <h3><?php _e( 'Administrators', 'buddypress' ); ?></h3> |
24 | 24 | |
25 | | <?php if ( bp_has_members( '&include='. bp_group_admin_ids() ) ) : ?> |
| 25 | <?php if ( bp_group_has_members( array( 'per_page' =>15, 'exclude_banned' => 0, 'group_role' => array( 'admin' ), 'type' => 'alphabetical' ) ) ) : ?> |
26 | 26 | |
27 | 27 | <ul id="admins-list" class="item-list single-line"> |
28 | 28 | |
29 | | <?php while ( bp_members() ) : bp_the_member(); ?> |
| 29 | <?php while ( bp_group_members() ) : bp_group_the_member(); ?> |
30 | 30 | <li> |
31 | | <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ); ?> |
32 | | <h5> |
33 | | <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a> |
| 31 | <div class="item-avatar"> |
| 32 | <?php bp_group_member_avatar_mini(); ?> |
| 33 | </div> |
| 34 | |
| 35 | <div class="item"> |
| 36 | <div class="item-title"> |
| 37 | <?php bp_group_member_link(); ?> |
| 38 | </div> |
| 39 | <p class="joined item-meta"> |
| 40 | <?php bp_group_member_joined_since(); ?> |
| 41 | </p> |
| 42 | </div> |
| 43 | |
| 44 | <div class="action"> |
34 | 45 | <?php if ( count( bp_group_admin_ids( false, 'array' ) ) > 1 ) : ?> |
35 | | <span class="small"> |
36 | | <a class="button confirm admin-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a> |
37 | | </span> |
| 46 | <a class="button confirm admin-demote-to-member" href="<?php bp_group_member_demote_link(); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a> |
38 | 47 | <?php endif; ?> |
39 | | </h5> |
| 48 | |
| 49 | <?php |
| 50 | |
| 51 | /** |
| 52 | * Fires inside the display of a member admin item in group management area. |
| 53 | * |
| 54 | * @since 1.1.0 |
| 55 | */ |
| 56 | do_action( 'bp_group_manage_members_admin_item' ); ?> |
| 57 | |
| 58 | </div> |
40 | 59 | </li> |
41 | 60 | <?php endwhile; ?> |
42 | 61 | |
43 | 62 | </ul> |
44 | 63 | |
| 64 | <?php else: ?> |
| 65 | |
| 66 | <div id="message" class="info"> |
| 67 | <p><?php _e( 'No group administrators were found.', 'buddypress' ); ?></p> |
| 68 | </div> |
| 69 | |
45 | 70 | <?php endif; ?> |
46 | 71 | |
47 | 72 | </div> |
48 | 73 | |
49 | | <?php if ( bp_group_has_moderators() ) : ?> |
| 74 | <?php if ( $group_mod_ids = bp_group_mod_ids() ) : ?> |
50 | 75 | <div class="bp-widget"> |
51 | 76 | <h3><?php _e( 'Moderators', 'buddypress' ); ?></h3> |
52 | 77 | |
53 | | <?php if ( bp_has_members( '&include=' . bp_group_mod_ids() ) ) : ?> |
| 78 | <?php if ( bp_group_has_members( array( 'per_page' =>15, 'exclude_banned' => 0, 'group_role' => array( 'mod' ), 'type' => 'alphabetical' ) ) ) : ?> |
54 | 79 | <ul id="mods-list" class="item-list single-line"> |
55 | 80 | |
56 | | <?php while ( bp_members() ) : bp_the_member(); ?> |
| 81 | <?php while ( bp_group_members() ) : bp_group_the_member(); ?> |
57 | 82 | <li> |
58 | | <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ); ?> |
59 | | <h5> |
60 | | <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a> |
61 | | <span class="small"> |
62 | | <a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => bp_get_member_user_id() ) ); ?>" class="button confirm mod-promote-to-admin"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a> |
63 | | <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a> |
64 | | </span> |
65 | | </h5> |
| 83 | <div class="item-avatar"> |
| 84 | <?php bp_group_member_avatar_mini(); ?> |
| 85 | </div> |
| 86 | |
| 87 | <div class="item"> |
| 88 | <div class="item-title"> |
| 89 | <?php bp_group_member_link(); ?> |
| 90 | </div> |
| 91 | <p class="joined item-meta"> |
| 92 | <?php bp_group_member_joined_since(); ?> |
| 93 | </p> |
| 94 | </div> |
| 95 | |
| 96 | <div class="action"> |
| 97 | <a href="<?php bp_group_member_promote_admin_link(); ?>" class="button confirm mod-promote-to-admin"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a> |
| 98 | <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link(); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a> |
| 99 | |
| 100 | <?php |
| 101 | |
| 102 | /** |
| 103 | * Fires inside the display of a member admin item in group management area. |
| 104 | * |
| 105 | * @since 1.1.0 |
| 106 | */ |
| 107 | do_action( 'bp_group_manage_members_admin_item' ); ?> |
| 108 | |
| 109 | </div> |
66 | 110 | </li> |
67 | 111 | <?php endwhile; ?> |
68 | 112 | |
69 | 113 | </ul> |
70 | 114 | |
| 115 | <?php else: ?> |
| 116 | |
| 117 | <div id="message" class="info"> |
| 118 | <p><?php _e( 'No group moderators were found.', 'buddypress' ); ?></p> |
| 119 | </div> |
| 120 | |
71 | 121 | <?php endif; ?> |
72 | 122 | </div> |
73 | 123 | <?php endif; ?> |
… |
… |
do_action( 'bp_before_group_manage_members_admin' ); ?> |
98 | 148 | <?php while ( bp_group_members() ) : bp_group_the_member(); ?> |
99 | 149 | |
100 | 150 | <li class="<?php bp_group_member_css_class(); ?>"> |
101 | | <?php bp_group_member_avatar_mini(); ?> |
102 | | |
103 | | <h5> |
104 | | <?php bp_group_member_link(); ?> |
105 | | |
106 | | <?php if ( bp_get_group_member_is_banned() ) _e( '(banned)', 'buddypress' ); ?> |
107 | | |
108 | | <span class="small"> |
| 151 | <div class="item-avatar"> |
| 152 | <?php bp_group_member_avatar_mini(); ?> |
| 153 | </div> |
109 | 154 | |
| 155 | <div class="item"> |
| 156 | <div class="item-title"> |
| 157 | <?php bp_group_member_link(); ?>  |
| 158 | <?php |
| 159 | if ( bp_get_group_member_is_banned() ) { |
| 160 | _e( '(banned)', 'buddypress' ); |
| 161 | } ?> |
| 162 | </div> |
| 163 | <p class="joined item-meta"> |
| 164 | <?php bp_group_member_joined_since(); ?> |
| 165 | </p> |
| 166 | </div> |
| 167 | |
| 168 | <div class="action"> |
110 | 169 | <?php if ( bp_get_group_member_is_banned() ) : ?> |
111 | 170 | |
112 | 171 | <a href="<?php bp_group_member_unban_link(); ?>" class="button confirm member-unban" title="<?php esc_attr_e( 'Unban this member', 'buddypress' ); ?>"><?php _e( 'Remove Ban', 'buddypress' ); ?></a> |
… |
… |
do_action( 'bp_before_group_manage_members_admin' ); ?> |
119 | 178 | |
120 | 179 | <?php endif; ?> |
121 | 180 | |
122 | | <a href="<?php bp_group_member_remove_link(); ?>" class="button confirm"><?php _e( 'Remove from group', 'buddypress' ); ?></a> |
123 | | |
124 | | <?php |
| 181 | <a href="<?php bp_group_member_remove_link(); ?>" class="button confirm"><?php _e( 'Remove from group', 'buddypress' ); ?></a> |
125 | 182 | |
126 | | /** |
127 | | * Fires inside the display of a member admin item in group management area. |
128 | | * |
129 | | * @since 1.1.0 |
130 | | */ |
131 | | do_action( 'bp_group_manage_members_admin_item' ); ?> |
| 183 | <?php |
132 | 184 | |
133 | | </span> |
134 | | </h5> |
| 185 | /** |
| 186 | * Fires inside the display of a member admin item in group management area. |
| 187 | * |
| 188 | * @since 1.1.0 |
| 189 | */ |
| 190 | do_action( 'bp_group_manage_members_admin_item' ); ?> |
| 191 | </div> |
135 | 192 | </li> |
136 | 193 | |
137 | 194 | <?php endwhile; ?> |
… |
… |
do_action( 'bp_before_group_manage_members_admin' ); ?> |
156 | 213 | <?php else: ?> |
157 | 214 | |
158 | 215 | <div id="message" class="info"> |
159 | | <p><?php _e( 'This group has no members.', 'buddypress' ); ?></p> |
| 216 | <p><?php _e( 'No group members were found.', 'buddypress' ); ?></p> |
160 | 217 | </div> |
161 | 218 | |
162 | 219 | <?php endif; ?> |