[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * BuddyPress - Members Single Group Invites 4 * 5 * @package BuddyPress 6 * @subpackage bp-legacy 7 * @version 11.0.0 8 */ 9 10 /** 11 * Fires before the display of member group invites content. 12 * 13 * @since 1.1.0 14 */ 15 do_action( 'bp_before_group_invites_content' ); ?> 16 17 <?php if ( bp_has_groups( 'type=invites&user_id=' . bp_displayed_user_id() ) ) : ?> 18 19 <h2 class="bp-screen-reader-text"><?php 20 /* translators: accessibility text */ 21 esc_html_e( 'Group invitations', 'buddypress' ); 22 ?></h2> 23 24 <ul id="group-list" class="invites item-list"> 25 26 <?php while ( bp_groups() ) : bp_the_group(); ?> 27 28 <li> 29 <?php if ( ! bp_disable_group_avatar_uploads() ) : ?> 30 <div class="item-avatar"> 31 <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a> 32 </div> 33 <?php endif; ?> 34 35 <h4> 36 <?php bp_group_link(); ?> 37 <span class="small"> 38 - 39 <?php 40 /* translators: %s: group members count */ 41 printf( _nx( '%d member', '%d members', bp_get_group_total_members( false ),'Group member count', 'buddypress' ), bp_get_group_total_members( false ) ); 42 ?> 43 </span> 44 </h4> 45 46 <p class="desc"> 47 <?php bp_group_description_excerpt(); ?> 48 </p> 49 50 <?php 51 52 /** 53 * Fires inside the display of a member group invite item. 54 * 55 * @since 1.1.0 56 */ 57 do_action( 'bp_group_invites_item' ); ?> 58 59 <div class="action"> 60 <a class="button accept" href="<?php bp_group_accept_invite_link(); ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> 61 <a class="button reject confirm" href="<?php bp_group_reject_invite_link(); ?>"><?php _e( 'Reject', 'buddypress' ); ?></a> 62 63 <?php 64 65 /** 66 * Fires inside the member group item action markup. 67 * 68 * @since 1.1.0 69 */ 70 do_action( 'bp_group_invites_item_action' ); ?> 71 72 </div> 73 </li> 74 75 <?php endwhile; ?> 76 </ul> 77 78 <?php else: ?> 79 80 <div id="message" class="info"> 81 <p><?php esc_html_e( 'You have no outstanding group invites.', 'buddypress' ); ?></p> 82 </div> 83 84 <?php endif;?> 85 86 <?php 87 88 /** 89 * Fires after the display of member group invites content. 90 * 91 * @since 1.1.0 92 */ 93 do_action( 'bp_after_group_invites_content' );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Dec 5 01:00:58 2024 | Cross-referenced by PHPXref 0.7.1 |