[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress - Groups Requests Loop
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  ?>
  11  
  12  <?php if ( bp_group_has_membership_requests( bp_ajax_querystring( 'membership_requests' ) ) ) : ?>
  13  
  14      <div id="pag-top" class="pagination">
  15  
  16          <div class="pag-count" id="group-mem-requests-count-top">
  17  
  18              <?php bp_group_requests_pagination_count(); ?>
  19  
  20          </div>
  21  
  22          <div class="pagination-links" id="group-mem-requests-pag-top">
  23  
  24              <?php bp_group_requests_pagination_links(); ?>
  25  
  26          </div>
  27  
  28      </div>
  29  
  30      <ul id="request-list" class="item-list">
  31          <?php while ( bp_group_membership_requests() ) : bp_group_the_membership_request(); ?>
  32  
  33              <li class="item-list group-request-list">
  34  
  35                  <div class="item-avatar"><?php bp_group_request_user_avatar_thumb(); ?></div>
  36  
  37                  <div class="item">
  38  
  39                      <div class="item-title"><?php bp_group_request_user_link(); ?> </div>
  40  
  41                      <span class="activity"><?php bp_group_request_time_since_requested(); ?></span>
  42  
  43                      <p class="comments"><?php bp_group_request_comment(); ?></p>
  44  
  45                      <?php
  46  
  47                      /**
  48                       * Fires inside the groups membership request list loop.
  49                       *
  50                       * @since 1.1.0
  51                       */
  52                      do_action( 'bp_group_membership_requests_admin_item' ); ?>
  53  
  54                  </div>
  55  
  56                  <div class="action">
  57  
  58                      <?php bp_button( array( 'id' => 'group_membership_accept', 'component' => 'groups', 'wrapper_class' => 'accept', 'link_href' => bp_get_group_request_accept_link(), 'link_text' => __( 'Accept', 'buddypress' ) ) ); ?>
  59  
  60                      <?php bp_button( array( 'id' => 'group_membership_reject', 'component' => 'groups', 'wrapper_class' => 'reject', 'link_href' => bp_get_group_request_reject_link(), 'link_text' => __( 'Reject', 'buddypress' ) ) ); ?>
  61  
  62                      <?php
  63  
  64                      /**
  65                       * Fires inside the list of membership request actions.
  66                       *
  67                       * @since 1.1.0
  68                       */
  69                      do_action( 'bp_group_membership_requests_admin_item_action' ); ?>
  70  
  71                  </div>
  72              </li>
  73  
  74          <?php endwhile; ?>
  75      </ul>
  76  
  77      <div id="pag-bottom" class="pagination">
  78  
  79          <div class="pag-count" id="group-mem-requests-count-bottom">
  80  
  81              <?php bp_group_requests_pagination_count(); ?>
  82  
  83          </div>
  84  
  85          <div class="pagination-links" id="group-mem-requests-pag-bottom">
  86  
  87              <?php bp_group_requests_pagination_links(); ?>
  88  
  89          </div>
  90  
  91      </div>
  92  
  93      <?php else: ?>
  94  
  95          <div id="message" class="info">
  96              <p><?php _e( 'There are no pending membership requests.', 'buddypress' ); ?></p>
  97          </div>
  98  
  99      <?php endif;


Generated: Thu Nov 14 01:01:40 2019 Cross-referenced by PHPXref 0.7.1