Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/27/2011 12:24:34 AM (15 years ago)
Author:
boonebgorges
Message:

Modifies the way that the page title is generated on single group pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template.php

    r4057 r4076  
    242242        $title = strip_tags( $bp->displayed_user->fullname . ' | ' . ucwords( $bp->current_component ) );
    243243
    244     // A single item of a component
     244    // A single group
     245    } elseif ( !empty( $bp->groups->current_group ) ) {
     246        $title = $bp->bp_options_title . ' | ' . $bp->bp_options_nav[$bp->groups->current_group->slug ][$bp->current_action]['name'];
     247
     248    // A single item from a component other than groups
    245249    } elseif ( bp_is_single_item() ) {
    246250        $title = bp_get_name_from_root_slug() . ' | ' . $bp->bp_options_title . ' | ' . $bp->bp_options_nav[$bp->current_component][$bp->current_action]['name'];
Note: See TracChangeset for help on using the changeset viewer.