Opened 17 years ago
Closed 17 years ago
#1281 closed enhancement (fixed)
function bp_is_single_group_item()
| Reported by: | 21cdb | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1.3 |
| Component: | Version: | ||
| Severity: | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [2073]) Fixes #1281 (props 21cdb)