[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/groups/single/ -> invites-loop.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Group Invites Loop
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  ?>
  11  <div class="left-menu">
  12  
  13      <div id="invite-list">
  14  
  15          <ul>
  16              <?php bp_new_group_invite_friend_list(); ?>
  17          </ul>
  18  
  19          <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ); ?>
  20  
  21      </div>
  22  
  23  </div><!-- .left-menu -->
  24  
  25  <div class="main-column">
  26  
  27      <?php
  28  
  29      /**
  30       * Fires before the display of the group send invites list.
  31       *
  32       * @since 1.1.0
  33       */
  34      do_action( 'bp_before_group_send_invites_list' ); ?>
  35  
  36      <?php if ( bp_group_has_invites( bp_ajax_querystring( 'invite' ) . '&per_page=10' ) ) : ?>
  37  
  38          <div id="pag-top" class="pagination">
  39  
  40              <div class="pag-count" id="group-invite-count-top">
  41  
  42                  <?php bp_group_invite_pagination_count(); ?>
  43  
  44              </div>
  45  
  46              <div class="pagination-links" id="group-invite-pag-top">
  47  
  48                  <?php bp_group_invite_pagination_links(); ?>
  49  
  50              </div>
  51  
  52          </div>
  53  
  54          <?php /* The ID 'friend-list' is important for AJAX support. */ ?>
  55          <ul id="friend-list" class="item-list">
  56  
  57          <?php while ( bp_group_invites() ) : bp_group_the_invite(); ?>
  58  
  59              <li id="<?php bp_group_invite_item_id(); ?>">
  60                  <?php bp_group_invite_user_avatar(); ?>
  61  
  62                  <h3><?php bp_group_invite_user_link(); ?></h3>
  63                  <span class="activity"><?php bp_group_invite_user_last_active(); ?></span>
  64  
  65                  <?php
  66  
  67                  /**
  68                   * Fires inside the invite item listing.
  69                   *
  70                   * @since 1.1.0
  71                   */
  72                  do_action( 'bp_group_send_invites_item' ); ?>
  73  
  74                  <div class="action">
  75                      <a class="button remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php _e( 'Remove Invite', 'buddypress' ); ?></a>
  76  
  77                      <?php
  78  
  79                      /**
  80                       * Fires inside the action area for a send invites item.
  81                       *
  82                       * @since 1.1.0
  83                       */
  84                      do_action( 'bp_group_send_invites_item_action' ); ?>
  85                  </div>
  86              </li>
  87  
  88          <?php endwhile; ?>
  89  
  90          </ul><!-- #friend-list -->
  91  
  92          <div id="pag-bottom" class="pagination">
  93  
  94              <div class="pag-count" id="group-invite-count-bottom">
  95  
  96                  <?php bp_group_invite_pagination_count(); ?>
  97  
  98              </div>
  99  
 100              <div class="pagination-links" id="group-invite-pag-bottom">
 101  
 102                  <?php bp_group_invite_pagination_links(); ?>
 103  
 104              </div>
 105  
 106          </div>
 107  
 108      <?php else : ?>
 109  
 110          <div id="message" class="info">
 111              <p><?php _e( 'Select friends to invite.', 'buddypress' ); ?></p>
 112          </div>
 113  
 114      <?php endif; ?>
 115  
 116  <?php
 117  
 118  /**
 119   * Fires after the display of the group send invites list.
 120   *
 121   * @since 1.1.0
 122   */
 123  do_action( 'bp_after_group_send_invites_list' ); ?>
 124  
 125  </div><!-- .main-column -->


Generated: Wed Oct 23 01:01:50 2019 Cross-referenced by PHPXref 0.7.1