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..74504cd 100644
|
|
do_action( 'bp_before_group_manage_members_admin' ); ?> |
28 | 28 | |
29 | 29 | <?php while ( bp_members() ) : bp_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 | <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a> |
| 33 | </div> |
| 34 | |
| 35 | <div class="item"> |
| 36 | <div class="item-title"> |
| 37 | <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a> |
| 38 | </div> |
| 39 | </div> |
| 40 | |
| 41 | <div class="action"> |
34 | 42 | <?php if ( count( bp_group_admin_ids( false, 'array' ) ) > 1 ) : ?> |
35 | | <span class="small"> |
36 | 43 | <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> |
38 | 44 | <?php endif; ?> |
39 | | </h5> |
| 45 | |
| 46 | <?php |
| 47 | |
| 48 | /** |
| 49 | * Fires inside the display of a member admin item in group management area. |
| 50 | * |
| 51 | * @since 1.1.0 |
| 52 | */ |
| 53 | do_action( 'bp_group_manage_members_admin_item' ); ?> |
| 54 | |
| 55 | </div> |
40 | 56 | </li> |
41 | 57 | <?php endwhile; ?> |
42 | 58 | |
43 | 59 | </ul> |
44 | 60 | |
| 61 | <?php else: ?> |
| 62 | |
| 63 | <div id="message" class="info"> |
| 64 | <p><?php _e( 'No group administrators were found.', 'buddypress' ); ?></p> |
| 65 | </div> |
| 66 | |
45 | 67 | <?php endif; ?> |
46 | 68 | |
47 | 69 | </div> |
48 | 70 | |
49 | | <?php if ( bp_group_has_moderators() ) : ?> |
| 71 | <?php if ( $group_mod_ids = bp_group_mod_ids() ) : ?> |
50 | 72 | <div class="bp-widget"> |
51 | 73 | <h3><?php _e( 'Moderators', 'buddypress' ); ?></h3> |
52 | 74 | |
53 | | <?php if ( bp_has_members( '&include=' . bp_group_mod_ids() ) ) : ?> |
| 75 | <?php if ( bp_has_members( '&include=' . $group_mod_ids ) ) : ?> |
54 | 76 | <ul id="mods-list" class="item-list single-line"> |
55 | 77 | |
56 | 78 | <?php while ( bp_members() ) : bp_the_member(); ?> |
57 | 79 | <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> |
| 80 | <div class="item-avatar"> |
| 81 | <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a> |
| 82 | </div> |
| 83 | |
| 84 | <div class="item"> |
| 85 | <div class="item-title"> |
| 86 | <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a> |
| 87 | </div> |
| 88 | </div> |
| 89 | |
| 90 | <div class="action"> |
| 91 | <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> |
| 92 | <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> |
| 93 | |
| 94 | <?php |
| 95 | |
| 96 | /** |
| 97 | * Fires inside the display of a member admin item in group management area. |
| 98 | * |
| 99 | * @since 1.1.0 |
| 100 | */ |
| 101 | do_action( 'bp_group_manage_members_admin_item' ); ?> |
| 102 | |
| 103 | </div> |
66 | 104 | </li> |
67 | 105 | <?php endwhile; ?> |
68 | 106 | |
69 | 107 | </ul> |
70 | 108 | |
| 109 | <?php else: ?> |
| 110 | |
| 111 | <div id="message" class="info"> |
| 112 | <p><?php _e( 'No group moderators were found.', 'buddypress' ); ?></p> |
| 113 | </div> |
| 114 | |
71 | 115 | <?php endif; ?> |
72 | 116 | </div> |
73 | 117 | <?php endif; ?> |
… |
… |
do_action( 'bp_before_group_manage_members_admin' ); ?> |
98 | 142 | <?php while ( bp_group_members() ) : bp_group_the_member(); ?> |
99 | 143 | |
100 | 144 | <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"> |
| 145 | <div class="item-avatar"> |
| 146 | <?php bp_group_member_avatar_mini(); ?> |
| 147 | </div> |
109 | 148 | |
| 149 | <div class="item"> |
| 150 | <div class="item-title"> |
| 151 | <?php bp_group_member_link(); ?>  |
| 152 | <?php |
| 153 | if ( bp_get_group_member_is_banned() ) { |
| 154 | _e( '(banned)', 'buddypress' ); |
| 155 | } ?> |
| 156 | </div> |
| 157 | <p class="joined item-meta"> |
| 158 | <?php bp_group_member_joined_since(); ?> |
| 159 | </p> |
| 160 | </div> |
| 161 | |
| 162 | <div class="action"> |
110 | 163 | <?php if ( bp_get_group_member_is_banned() ) : ?> |
111 | 164 | |
112 | 165 | <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 | 172 | |
120 | 173 | <?php endif; ?> |
121 | 174 | |
122 | | <a href="<?php bp_group_member_remove_link(); ?>" class="button confirm"><?php _e( 'Remove from group', 'buddypress' ); ?></a> |
123 | | |
124 | | <?php |
| 175 | <a href="<?php bp_group_member_remove_link(); ?>" class="button confirm"><?php _e( 'Remove from group', 'buddypress' ); ?></a> |
125 | 176 | |
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' ); ?> |
| 177 | <?php |
132 | 178 | |
133 | | </span> |
134 | | </h5> |
| 179 | /** |
| 180 | * Fires inside the display of a member admin item in group management area. |
| 181 | * |
| 182 | * @since 1.1.0 |
| 183 | */ |
| 184 | do_action( 'bp_group_manage_members_admin_item' ); ?> |
| 185 | </div> |
135 | 186 | </li> |
136 | 187 | |
137 | 188 | <?php endwhile; ?> |
… |
… |
do_action( 'bp_before_group_manage_members_admin' ); ?> |
156 | 207 | <?php else: ?> |
157 | 208 | |
158 | 209 | <div id="message" class="info"> |
159 | | <p><?php _e( 'This group has no members.', 'buddypress' ); ?></p> |
| 210 | <p><?php _e( 'No group members were found.', 'buddypress' ); ?></p> |
160 | 211 | </div> |
161 | 212 | |
162 | 213 | <?php endif; ?> |