Opened 16 years ago
Closed 16 years ago
#1281 closed enhancement (fixed)
function bp_is_single_group_item()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 1.1.3 | Priority: | major |
| Severity: | Version: | ||
| Component: | Keywords: | ||
| Cc: | email@… |
Description
It would be great if you could add the following function to bp.core-templatetags.php since there is no easy way to determine if we are on a single group page and not on the users profile groups section (at least i didn't found one, correct me if i'm wrong).
function bp_is_single_group_item() {
global $bp;
if ( $bp->current_component == $bp->groups->slug && $bp->is_single_item )
return true;
return false;
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [2073]) Fixes #1281 (props 21cdb)