Changeset 2445
- Timestamp:
- 01/25/2010 12:42:20 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-templatetags.php
r2443 r2445 153 153 $user_id = ( $bp->displayed_user->id ) ? $bp->displayed_user->id : $bp->loggedin_user->id; 154 154 155 $friend_ids = friends_get_friend_user_ids( $user_id ); 156 157 if ( empty( $friend_ids ) ) 158 return false; 159 155 160 return implode( ',', friends_get_friend_user_ids( $user_id ) ); 156 161 } -
trunk/bp-themes/bp-sn-parent/activity/my-friends.php
r2168 r2445 22 22 <h4><?php _e( 'My Friends Activity', 'buddypress' ) ?> <a href="<?php bp_activities_member_rss_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ) ?>"><?php _e( 'RSS Feed', 'buddypress' ) ?></a></h4> 23 23 24 <?php if ( bp_has_activities( 'user_id=' . bp_get_friend_ids() . '&per_page=25&max=500&display_comments=stream') ) : ?>24 <?php if ( $friend_ids = bp_get_friend_ids() ) : ?> 25 25 26 < div class="pagination">26 <?php if ( bp_has_activities( 'user_id=' . $friend_ids . '&per_page=25&max=500&display_comments=stream' ) ) : ?> 27 27 28 <div class="pag-count" id="activity-count"> 29 <?php bp_activity_pagination_count() ?> 28 <div class="pagination"> 29 30 <div class="pag-count" id="activity-count"> 31 <?php bp_activity_pagination_count() ?> 32 </div> 33 34 <div class="pagination-links" id="activity-pag"> 35 <?php bp_activity_pagination_links() ?> 36 </div> 37 30 38 </div> 31 39 32 <div class="pagination-links" id="activity-pag"> 33 <?php bp_activity_pagination_links() ?> 34 </div> 40 <ul id="activity-list" class="item-list activity-list"> 41 <?php while ( bp_activities() ) : bp_the_activity(); ?> 42 <li class="<?php bp_activity_css_class() ?>"> 43 <div class="activity-avatar"> 44 <?php bp_activity_avatar() ?> 45 </div> 35 46 36 </div>47 <?php bp_activity_content() ?> 37 48 38 <ul id="activity-list" class="item-list activity-list"> 39 <?php while ( bp_activities() ) : bp_the_activity(); ?> 40 <li class="<?php bp_activity_css_class() ?>"> 41 <div class="activity-avatar"> 42 <?php bp_activity_avatar() ?> 43 </div> 49 <?php do_action( 'bp_friends_activity_item' ) ?> 50 </li> 51 <?php endwhile; ?> 52 </ul> 44 53 45 <?php bp_activity_content() ?>54 <?php do_action( 'bp_friends_activity_content' ) ?> 46 55 47 <?php do_action( 'bp_friends_activity_item' ) ?> 48 </li> 49 <?php endwhile; ?> 50 </ul> 51 52 <?php do_action( 'bp_friends_activity_content' ) ?> 56 <?php endif; ?> 53 57 54 58 <?php else: ?> -
trunk/bp-themes/bp-sn-parent/functions.php
r2344 r2445 181 181 <input type="hidden" id="aw-querystring" name="aw-querystring" value="" /> 182 182 <input type="hidden" id="aw-oldestpage" name="aw-oldestpage" value="1" /> 183 </ div>183 </form> 184 184 185 185 <?php echo $after_widget; ?> … … 221 221 switch( $type ) { 222 222 case 'friends': 223 $friend_ids = implode( ',', friends_get_friend_user_ids( $bp->loggedin_user->id ) ); 223 if ( !$friend_ids = friends_get_friend_user_ids( $bp->loggedin_user->id ) ) { 224 echo "-1<div id='message' class='info'><p>" . __( 'No activity found', 'buddypress' ) . '</p></div>'; 225 return false; 226 } 227 228 $friend_ids = implode( ',', $friend_ids ); 224 229 $query_string = 'user_id=' . $friend_ids; 225 230 break; -
trunk/bp-themes/bp-sn-parent/header.php
r2302 r2445 92 92 <?php endif; ?> 93 93 94 <?php if ( function_exists( 'groups_install' ) && ( function_exists( 'bp_forums_ setup' ) && !(int) get_site_option( 'bp-disable-forum-directory' )) ) : ?>94 <?php if ( function_exists( 'groups_install' ) && ( function_exists( 'bp_forums_is_installed_correctly' ) && !(int) get_site_option( 'bp-disable-forum-directory' ) ) && bp_forums_is_installed_correctly() ) : ?> 95 95 <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_FORUMS_SLUG ?>" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a></li> 96 96 <?php endif; ?> 97 97 98 <?php if ( function_exists( 'bp_blogs_install' ) ) : ?>98 <?php if ( function_exists( 'bp_blogs_install' ) && bp_core_is_multisite() ) : ?> 99 99 <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_BLOGS_SLUG ?>" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a></li> 100 100 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.