/bp-themes/bp-default/members/single/friends/requests.php

  1. <?php do_action( 'bp_before_member_friend_requests_content' ); ?> 
  2.  
  3. <?php if ( bp_has_members( 'type=alphabetical&include=' . bp_get_friendship_requests() ) ) : ?> 
  4.  
  5. <div id="pag-top" class="pagination no-ajax"> 
  6.  
  7. <div class="pag-count" id="member-dir-count-top"> 
  8.  
  9. <?php bp_members_pagination_count(); ?> 
  10.  
  11. </div> 
  12.  
  13. <div class="pagination-links" id="member-dir-pag-top"> 
  14.  
  15. <?php bp_members_pagination_links(); ?> 
  16.  
  17. </div> 
  18.  
  19. </div> 
  20.  
  21. <ul id="friend-list" class="item-list" role="main"> 
  22. <?php while ( bp_members() ) : bp_the_member(); ?> 
  23.  
  24. <li id="friendship-<?php bp_friend_friendship_id(); ?>"> 
  25. <div class="item-avatar"> 
  26. <a href="<?php bp_member_link(); ?>"><?php bp_member_avatar(); ?></a> 
  27. </div> 
  28.  
  29. <div class="item"> 
  30. <div class="item-title"><a href="<?php bp_member_link(); ?>"><?php bp_member_name(); ?></a></div> 
  31. <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div> 
  32. </div> 
  33.  
  34. <?php do_action( 'bp_friend_requests_item' ); ?> 
  35.  
  36. <div class="action"> 
  37. <a class="button accept" href="<?php bp_friend_accept_request_link(); ?>"><?php _e( 'Accept', 'buddypress' ); ?></a>   
  38. <a class="button reject" href="<?php bp_friend_reject_request_link(); ?>"><?php _e( 'Reject', 'buddypress' ); ?></a> 
  39.  
  40. <?php do_action( 'bp_friend_requests_item_action' ); ?> 
  41. </div> 
  42. </li> 
  43.  
  44. <?php endwhile; ?> 
  45. </ul> 
  46.  
  47. <?php do_action( 'bp_friend_requests_content' ); ?> 
  48.  
  49. <div id="pag-bottom" class="pagination no-ajax"> 
  50.  
  51. <div class="pag-count" id="member-dir-count-bottom"> 
  52.  
  53. <?php bp_members_pagination_count(); ?> 
  54.  
  55. </div> 
  56.  
  57. <div class="pagination-links" id="member-dir-pag-bottom"> 
  58.  
  59. <?php bp_members_pagination_links(); ?> 
  60.  
  61. </div> 
  62.  
  63. </div> 
  64.  
  65. <?php else: ?> 
  66.  
  67. <div id="message" class="info"> 
  68. <p><?php _e( 'You have no pending friendship requests.', 'buddypress' ); ?></p> 
  69. </div> 
  70.  
  71. <?php endif;?> 
  72.  
  73. <?php do_action( 'bp_after_member_friend_requests_content' ); ?> 
.