Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/15/2011 06:33:02 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Fix issue where friend requests page was only showing one request at a time. Also add pagination to friend requests page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/members/single/friends/requests.php

    r3771 r4205  
    11<?php do_action( 'bp_before_member_friend_requests_content' ) ?>
    22
    3 <?php if ( bp_has_members( 'include=' . bp_get_friendship_requests() . '&per_page=0' ) ) : ?>
     3<?php if ( bp_has_members( '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>
    420
    521    <ul id="friend-list" class="item-list" role="main">
     
    3147    <?php do_action( 'bp_friend_requests_content' ) ?>
    3248
     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
    3365<?php else: ?>
    3466
Note: See TracChangeset for help on using the changeset viewer.