| 1 | <?php get_header() ?>
|
|---|
| 2 |
|
|---|
| 3 | <div class="content-header">
|
|---|
| 4 |
|
|---|
| 5 | </div>
|
|---|
| 6 |
|
|---|
| 7 | <div id="content">
|
|---|
| 8 | <div class="pagination-links" id="pag">
|
|---|
| 9 |
|
|---|
| 10 | </div>
|
|---|
| 11 |
|
|---|
| 12 | <h2><?php _e( 'Group Invites', 'buddypress' ) ?></h2>
|
|---|
| 13 | <?php do_action( 'template_notices' ) // (error/success feedback) ?>
|
|---|
| 14 |
|
|---|
| 15 | <?php if ( bp_has_groups() ) : ?>
|
|---|
| 16 | <ul id="group-list" class="invites item-list">
|
|---|
| 17 | <?php while ( bp_groups() ) : bp_the_group(); ?>
|
|---|
| 18 | <li>
|
|---|
| 19 | <?php bp_group_avatar_thumb() ?>
|
|---|
| 20 | <h4><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a><span class="small"> - <?php printf( __( '%s members', 'buddypress' ), bp_group_total_members( false ) ) ?></span></h4>
|
|---|
| 21 | <p class="desc">
|
|---|
| 22 | <?php bp_group_description_excerpt() ?>
|
|---|
| 23 | </p>
|
|---|
| 24 | <div class="action">
|
|---|
| 25 |
|
|---|
| 26 | <div class="generic-button accept">
|
|---|
| 27 | <a href="<?php bp_group_accept_invite_link() ?>"><?php _e( 'Accept', 'buddypress' ) ?></a>
|
|---|
| 28 | </div>
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | <div class="generic-button reject">
|
|---|
| 33 | <a href="<?php bp_group_reject_invite_link() ?>"><?php _e( 'Reject', 'buddypress' ) ?></a>
|
|---|
| 34 | </div>
|
|---|
| 35 |
|
|---|
| 36 | </div>
|
|---|
| 37 | <hr />
|
|---|
| 38 | </li>
|
|---|
| 39 | <?php endwhile; ?>
|
|---|
| 40 | </ul>
|
|---|
| 41 | <?php else: ?>
|
|---|
| 42 |
|
|---|
| 43 | <div id="message" class="info">
|
|---|
| 44 | <p><?php _e( 'You have no outstanding group invites.', 'buddypress' ) ?></p>
|
|---|
| 45 | </div>
|
|---|
| 46 |
|
|---|
| 47 | <?php endif;?>
|
|---|
| 48 |
|
|---|
| 49 | </div>
|
|---|
| 50 |
|
|---|
| 51 | <?php get_footer() ?>
|
|---|