diff --git src/bp-templates/bp-legacy/buddypress/groups/single/admin.php src/bp-templates/bp-legacy/buddypress/groups/single/admin.php
index 927d043..7b03645 100644
|
|
do_action( 'bp_before_group_admin_content' ); ?> |
261 | 261 | <div class="bp-widget"> |
262 | 262 | <h4><?php _e( 'Administrators', 'buddypress' ); ?></h4> |
263 | 263 | |
264 | | <?php if ( bp_has_members( '&include='. bp_group_admin_ids() ) ) : ?> |
265 | | |
| 264 | <?php if ( bp_group_has_members( array( 'per_page' =>15, 'exclude_banned' => 0, 'group_role' => array( 'admin' ), 'type' => 'alphabetical' ) ) ) : ?> |
266 | 265 | <ul id="admins-list" class="item-list single-line"> |
267 | 266 | |
268 | | <?php while ( bp_members() ) : bp_the_member(); ?> |
| 267 | <?php while ( bp_group_members() ) : bp_group_the_member(); ?> |
269 | 268 | <li> |
270 | | <div class="item-avatar"> |
271 | | <?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() ) ) ); ?> |
272 | | </div> |
273 | | <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a> |
274 | | <?php if ( count( bp_group_admin_ids( false, 'array' ) ) > 1 ) : ?> |
| 269 | <div class="item-avatar"><?php bp_group_member_avatar_mini(); ?></div> |
| 270 | |
| 271 | <?php bp_group_member_link(); ?> |
| 272 | |
| 273 | <?php if ( count( bp_group_admin_ids( false, 'array' ) ) > 1 ) : ?> |
275 | 274 | <div class="member-list-actions"> |
276 | 275 | <span class="small"> |
277 | | <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> |
| 276 | <a class="button confirm admin-demote-to-member" href="<?php bp_group_member_demote_link(); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a> |
278 | 277 | </span> |
279 | 278 | </div> |
280 | | <?php endif; ?> |
| 279 | <?php endif; ?> |
281 | 280 | </li> |
282 | 281 | <?php endwhile; ?> |
283 | 282 | |
284 | 283 | </ul> |
285 | 284 | |
| 285 | <?php else: ?> |
| 286 | |
| 287 | <div id="message" class="info"> |
| 288 | <p><?php _e( 'No group administrators were found.', 'buddypress' ); ?></p> |
| 289 | </div> |
| 290 | |
286 | 291 | <?php endif; ?> |
287 | 292 | |
288 | 293 | </div> |
… |
… |
do_action( 'bp_before_group_admin_content' ); ?> |
291 | 296 | <div class="bp-widget"> |
292 | 297 | <h4><?php _e( 'Moderators', 'buddypress' ); ?></h4> |
293 | 298 | |
294 | | <?php if ( bp_has_members( '&include=' . bp_group_mod_ids() ) ) : ?> |
| 299 | <?php if ( bp_group_has_members( array( 'per_page' =>15, 'exclude_banned' => 0, 'group_role' => array( 'mod' ), 'type' => 'alphabetical' ) ) ) : ?> |
295 | 300 | <ul id="mods-list" class="item-list single-line"> |
296 | 301 | |
297 | | <?php while ( bp_members() ) : bp_the_member(); ?> |
| 302 | <?php while ( bp_group_members() ) : bp_group_the_member(); ?> |
298 | 303 | <li> |
299 | | <div class="item-avatar"> |
300 | | <?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() ) ) ); ?> |
301 | | </div> |
| 304 | <div class="item-avatar"><?php bp_group_member_avatar_mini(); ?></div> |
302 | 305 | |
303 | | <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a> |
| 306 | <?php bp_group_member_link(); ?> |
304 | 307 | |
305 | 308 | <div class="member-list-actions"> |
306 | 309 | <span class="small"> |
307 | | <a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => bp_get_member_user_id() ) ); ?>" class="button confirm mod-promote-to-admin" title="<?php esc_attr_e( 'Promote to Admin', 'buddypress' ); ?>"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a> |
308 | | <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> |
| 310 | <a href="<?php bp_group_member_promote_admin_link(); ?>" class="button confirm member-promote-to-admin" title="<?php esc_attr_e( 'Promote to Admin', 'buddypress' ); ?>"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a> |
| 311 | <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link(); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a> |
309 | 312 | </span> |
310 | 313 | </div> |
311 | 314 | </li> |
… |
… |
do_action( 'bp_before_group_admin_content' ); ?> |
313 | 316 | |
314 | 317 | </ul> |
315 | 318 | |
| 319 | <?php else: ?> |
| 320 | |
| 321 | <div id="message" class="info"> |
| 322 | <p><?php _e( 'No group moderators were found.', 'buddypress' ); ?></p> |
| 323 | </div> |
| 324 | |
316 | 325 | <?php endif; ?> |
317 | 326 | </div> |
318 | 327 | <?php endif ?> |
… |
… |
do_action( 'bp_before_group_admin_content' ); ?> |
321 | 330 | <div class="bp-widget"> |
322 | 331 | <h4><?php _e( "Members", 'buddypress' ); ?></h4> |
323 | 332 | |
324 | | <?php if ( bp_group_has_members( 'per_page=15&exclude_banned=0' ) ) : ?> |
| 333 | <?php if ( bp_group_has_members( array( 'exclude_admins_mods' => 1, 'per_page' => 15, 'exclude_banned' => 0, 'type' => 'alphabetical' ) ) ) : ?> |
325 | 334 | |
326 | 335 | <?php if ( bp_group_member_needs_pagination() ) : ?> |
327 | 336 | |
… |
… |
do_action( 'bp_before_group_admin_content' ); ?> |
403 | 412 | <?php else: ?> |
404 | 413 | |
405 | 414 | <div id="message" class="info"> |
406 | | <p><?php _e( 'This group has no members.', 'buddypress' ); ?></p> |
| 415 | <p><?php _e( 'No group members were found.', 'buddypress' ); ?></p> |
407 | 416 | </div> |
408 | 417 | |
409 | 418 | <?php endif; ?> |