Changeset 2482 for trunk/bp-activity/bp-activity-templatetags.php
- Timestamp:
- 01/30/2010 12:38:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-templatetags.php
r2471 r2482 176 176 177 177 function bp_activity_pagination_count() { 178 global $bp, $activities_template; 179 180 $from_num = bp_core_number_format( intval( ( $activities_template->pag_page - 1 ) * $activities_template->pag_num ) + 1 ); 181 $to_num = bp_core_number_format( ( $from_num + ( $activities_template->pag_num - 1 ) > $activities_template->total_activity_count ) ? $activities_template->total_activity_count : $from_num + ( $activities_template->pag_num - 1 ) ); 182 $total = bp_core_number_format( $activities_template->total_activity_count ); 183 184 echo sprintf( __( 'Viewing item %s to %s (of %s items)', 'buddypress' ), $from_num, $to_num, $total ); ?> 185 <span class="ajax-loader"></span><?php 186 } 178 echo bp_get_activity_pagination_count(); 179 } 180 function bp_get_activity_pagination_count() { 181 global $bp, $activities_template; 182 183 $from_num = bp_core_number_format( intval( ( $activities_template->pag_page - 1 ) * $activities_template->pag_num ) + 1 ); 184 $to_num = bp_core_number_format( ( $from_num + ( $activities_template->pag_num - 1 ) > $activities_template->total_activity_count ) ? $activities_template->total_activity_count : $from_num + ( $activities_template->pag_num - 1 ) ); 185 $total = bp_core_number_format( $activities_template->total_activity_count ); 186 187 return sprintf( __( 'Viewing item %s to %s (of %s items)', 'buddypress' ), $from_num, $to_num, $total ) . ' <span class="ajax-loader"></span>'; 188 } 187 189 188 190 function bp_activity_pagination_links() {
Note: See TracChangeset
for help on using the changeset viewer.