Changeset 2358
- Timestamp:
- 01/19/2010 03:21:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-templatetags.php
r2355 r2358 187 187 188 188 return apply_filters( 'bp_get_activity_pagination_links', $activities_template->pag_links ); 189 } 190 191 function bp_activity_count() { 192 echo bp_get_activity_count(); 193 } 194 function bp_get_activity_count() { 195 global $activities_template; 196 197 return apply_filters( 'bp_get_activity_count', (int)$activities_template->activity_count ); 198 } 199 200 function bp_activity_per_page() { 201 echo bp_get_activity_per_page(); 202 } 203 function bp_get_activity_per_page() { 204 global $activities_template; 205 206 return apply_filters( 'bp_get_activity_per_page', (int)$activities_template->pag_num ); 189 207 } 190 208 -
trunk/bp-themes/bp-default/activity/activity-loop.php
r2287 r2358 15 15 <?php endwhile; ?> 16 16 17 <?php if ( bp_get_activity_count() == bp_get_activity_per_page() ) : ?> 17 18 <li class="load-more"> 18 19 <a href="#more"><?php _e( 'Load More', 'buddypress' ) ?></a> <span class="ajax-loader"></span> 19 20 </li> 21 <?php endif; ?> 20 22 21 23 <?php if ( empty( $_POST['page'] ) ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.