Changeset 2168 for trunk/bp-themes/bp-sn-parent/friends/friends-loop.php
- Timestamp:
- 12/14/2009 03:24:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-sn-parent/friends/friends-loop.php
r2077 r2168 3 3 <div id="friends-loop"> 4 4 5 <?php if ( bp_has_ friendships() ) : ?>5 <?php if ( bp_has_members( 'user_id=' . bp_displayed_user_id() ) ) : ?> 6 6 7 7 <div class="pagination"> 8 8 9 <div class="pag-count" >10 <?php bp_ friend_pagination_count() ?>9 <div class="pag-count" id="member-dir-count"> 10 <?php bp_members_pagination_count() ?> 11 11 </div> 12 12 13 <div class="pagination-links" id=" pag">14 <?php bp_ friend_pagination() ?>13 <div class="pagination-links" id="member-dir-pag"> 14 <?php bp_members_pagination_links() ?> 15 15 </div> 16 16 … … 20 20 21 21 <ul id="friend-list" class="item-list"> 22 <?php while ( bp_user_friendships() ) : bp_the_friendship(); ?> 22 23 <?php while ( bp_members() ) : bp_the_member(); ?> 23 24 24 25 <li> 25 < ?php bp_friend_avatar_thumb() ?>26 <h4><?php bp_friend_link() ?></h4>27 < span class="activity"><?php bp_friend_last_active() ?></span>26 <div class="item-avatar"> 27 <a href="<?php bp_member_link() ?>"><?php bp_member_avatar() ?></a> 28 </div> 28 29 29 <?php do_action( 'bp_my_friends_list_item' ) ?> 30 <div class="item"> 31 <div class="item-title"><a href="<?php bp_member_link() ?>"><?php bp_member_name() ?></a></div> 32 <div class="item-meta"><span class="activity"><?php bp_member_last_active() ?></span></div> 33 34 <div class="field-data"> 35 <div class="field-name"><?php bp_member_total_friend_count() ?></div> 36 <div class="field-name xprofile-data"><?php bp_member_random_profile_data() ?></div> 37 </div> 38 39 <?php do_action( 'bp_directory_members_featured_item' ) ?> 40 </div> 30 41 31 42 <div class="action"> … … 37 48 38 49 <?php endwhile; ?> 50 51 <?php do_action( 'bp_after_my_friends_list' ) ?> 52 39 53 </ul> 40 41 <?php do_action( 'bp_after_my_friends_list' ) ?>42 54 43 55 <?php else: ?> 44 56 45 <?php if ( bp_friends_is_filtered() ) : ?> 57 <div id="message" class="info"> 58 <p><?php _e( "No friends were found.", 'buddypress' ) ?></p> 59 </div> 46 60 47 <div id="message" class="info"> 48 <p><?php _e( "No friends matched your search filter terms", 'buddypress' ) ?></p> 49 </div> 50 51 <?php else : ?> 52 53 <div id="message" class="info"> 54 <p><?php bp_word_or_name( __( "Your friends list is currently empty", 'buddypress' ), __( "%s's friends list is currently empty", 'buddypress' ) ) ?></p> 55 </div> 56 57 <?php endif; ?> 58 59 <?php if ( bp_is_home() && !bp_friends_is_filtered() ) : ?> 60 61 <?php do_action( 'bp_before_random_members_list' ) ?> 62 63 <h3><?php _e( 'Why not make friends with some of these members?', 'buddypress' ) ?></h3> 64 <?php bp_friends_random_members() ?> 65 66 <?php do_action( 'bp_after_random_members_list' ) ?> 67 68 <?php endif; ?> 69 70 <?php endif;?> 61 <?php endif; ?> 71 62 72 63 </div>
Note: See TracChangeset
for help on using the changeset viewer.