Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/30/2009 12:27:52 PM (16 years ago)
Author:
apeatling
Message:

Adding activity item permalink support

File:
1 edited

Legend:

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

    r2088 r2158  
    484484            $group =& $groups_template->group;
    485485
    486         return apply_filters( 'bp_get_group_permalink', $bp->root_domain . '/' . $bp->groups->slug . '/' . $group->slug );
     486        return apply_filters( 'bp_get_group_permalink', $bp->root_domain . '/' . $bp->groups->slug . '/' . $group->slug . '/' );
    487487    }
    488488
     
    739739}
    740740
     741function bp_group_is_activity_permalink() {
     742    global $bp;
     743
     744    if ( !$bp->is_single_item || $bp->current_component != $bp->groups->slug || $bp->current_action != $bp->activity->slug )
     745        return false;
     746
     747    return true;
     748}
     749
    741750function bp_group_pagination() {
    742751    echo bp_get_group_pagination();
Note: See TracChangeset for help on using the changeset viewer.