[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/members/single/friends/ -> requests.php (source)

   1  <?php
   2  /**
   3   * BuddyPress - Members Friends Requests
   4   *
   5   * @package BuddyPress
   6   * @subpackage bp-legacy
   7   * @version 3.0.0
   8   */
   9  
  10  /**
  11   * Fires before the display of member friend requests content.
  12   *
  13   * @since 1.2.0
  14   */
  15  do_action( 'bp_before_member_friend_requests_content' ); ?>
  16  
  17  <?php if ( bp_has_members( 'type=alphabetical&include=' . bp_get_friendship_requests() ) ) : ?>
  18  
  19      <h2 class="bp-screen-reader-text"><?php
  20          /* translators: accessibility text */
  21          _e( 'Friendship requests', 'buddypress' );
  22      ?></h2>
  23  
  24      <div id="pag-top" class="pagination no-ajax">
  25  
  26          <div class="pag-count" id="member-dir-count-top">
  27  
  28              <?php bp_members_pagination_count(); ?>
  29  
  30          </div>
  31  
  32          <div class="pagination-links" id="member-dir-pag-top">
  33  
  34              <?php bp_members_pagination_links(); ?>
  35  
  36          </div>
  37  
  38      </div>
  39  
  40      <ul id="friend-list" class="item-list">
  41          <?php while ( bp_members() ) : bp_the_member(); ?>
  42  
  43              <li id="friendship-<?php bp_friend_friendship_id(); ?>">
  44                  <div class="item-avatar">
  45                      <a href="<?php bp_member_link(); ?>"><?php bp_member_avatar(); ?></a>
  46                  </div>
  47  
  48                  <div class="item">
  49                      <div class="item-title"><a href="<?php bp_member_link(); ?>"><?php bp_member_name(); ?></a></div>
  50                      <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
  51  
  52                      <?php
  53                      /**
  54                       * Fires inside the display of a member friend request item.
  55                       *
  56                       * @since 1.1.0
  57                       */
  58                      do_action( 'bp_friend_requests_item' );
  59                      ?>
  60                  </div>
  61  
  62                  <div class="action">
  63                      <a class="button accept" href="<?php bp_friend_accept_request_link(); ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> &nbsp;
  64                      <a class="button reject" href="<?php bp_friend_reject_request_link(); ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>
  65  
  66                      <?php
  67  
  68                      /**
  69                       * Fires inside the member friend request actions markup.
  70                       *
  71                       * @since 1.1.0
  72                       */
  73                      do_action( 'bp_friend_requests_item_action' ); ?>
  74                  </div>
  75              </li>
  76  
  77          <?php endwhile; ?>
  78      </ul>
  79  
  80      <?php
  81  
  82      /**
  83       * Fires and displays the member friend requests content.
  84       *
  85       * @since 1.1.0
  86       */
  87      do_action( 'bp_friend_requests_content' ); ?>
  88  
  89      <div id="pag-bottom" class="pagination no-ajax">
  90  
  91          <div class="pag-count" id="member-dir-count-bottom">
  92  
  93              <?php bp_members_pagination_count(); ?>
  94  
  95          </div>
  96  
  97          <div class="pagination-links" id="member-dir-pag-bottom">
  98  
  99              <?php bp_members_pagination_links(); ?>
 100  
 101          </div>
 102  
 103      </div>
 104  
 105  <?php else: ?>
 106  
 107      <div id="message" class="info">
 108          <p><?php _e( 'You have no pending friendship requests.', 'buddypress' ); ?></p>
 109      </div>
 110  
 111  <?php endif;?>
 112  
 113  <?php
 114  
 115  /**
 116   * Fires after the display of member friend requests content.
 117   *
 118   * @since 1.2.0
 119   */
 120  do_action( 'bp_after_member_friend_requests_content' );


Generated: Tue Sep 17 01:01:39 2019 Cross-referenced by PHPXref 0.7.1