Ticket #1757: 1757.1.diff
File 1757.1.diff, 1.3 KB (added by , 14 years ago) |
---|
-
bp-themes/bp-default/activity/activity-loop.php
22 22 23 23 <?php endwhile; ?> 24 24 25 <?php if ( bp_ get_activity_count() == bp_get_activity_per_page() ) : ?>25 <?php if ( bp_activity_has_more_items() ) : ?> 26 26 <li class="load-more"> 27 27 <a href="#more"><?php _e( 'Load More', 'buddypress' ) ?></a> <span class="ajax-loader"></span> 28 28 </li> -
bp-activity/bp-activity-templatetags.php
316 316 return apply_filters( 'bp_get_activity_pagination_links', $activities_template->pag_links ); 317 317 } 318 318 319 function bp_activity_has_more_items() { 320 global $activities_template; 321 322 $last_displayed_activity = floor( $activities_template->total_activity_count / ( $activities_template->pag_num * $activities_template->pag_page ) ); 323 324 $has_more_items = (int)$last_displayed_activity ? true : false; 325 326 return apply_filters( 'bp_activity_has_more_items', $has_more_items ); 327 } 328 319 329 function bp_activity_count() { 320 330 echo bp_get_activity_count(); 321 331 }