Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/19/2010 03:21:30 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1581 - hiding "Load More" when total activity count does not hit the max per page.

File:
1 edited

Legend:

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

    r2355 r2358  
    187187
    188188        return apply_filters( 'bp_get_activity_pagination_links', $activities_template->pag_links );
     189    }
     190
     191function 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
     200function 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 );
    189207    }
    190208
Note: See TracChangeset for help on using the changeset viewer.