Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/30/2010 12:38:28 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1461

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-templatetags.php

    r2471 r2482  
    176176
    177177function 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 ) . ' &nbsp; <span class="ajax-loader"></span>';
     188    }
    187189
    188190function bp_activity_pagination_links() {
Note: See TracChangeset for help on using the changeset viewer.