Skip to:
Content

BuddyPress.org

Changeset 3701


Ignore:
Timestamp:
01/11/2011 07:50:53 PM (13 years ago)
Author:
djpaul
Message:

Adds missing <body> classes. Fixes #2468.

File:
1 edited

Legend:

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

    r3685 r3701  
    20662066            $bp_classes[] = 'blogs';
    20672067
    2068         if ( bp_is_messages_component() && !bp_is_blog_page()  )
     2068        if ( bp_is_messages_component() && !bp_is_blog_page() )
    20692069            $bp_classes[] = 'messages';
    20702070
     
    20782078            $bp_classes[] = 'settings';
    20792079
     2080        if ( bp_is_user_profile() )
     2081            $bp_classes[] = 'my-profile';
     2082
     2083        if ( bp_is_my_profile() )
     2084            $bp_classes[] = 'my-account';
     2085
    20802086        if ( bp_is_single_item() )
    20812087            $bp_classes[] = 'single-item';
     
    20992105            $bp_classes[] = 'my-friends';
    21002106
     2107        if ( bp_is_user_messages() )
     2108            $bp_classes[] = 'my-messages';
     2109
    21012110        if ( bp_is_create_blog() )
    21022111            $bp_classes[] = 'create-blog';
     
    21652174            $bp_classes[] = 'logged-in';
    21662175
    2167         /* Add the current_component, current_action into the bp classes */
     2176        // Add the current_component, current_action into the bp classes
    21682177        if ( !bp_is_blog_page() ) {
    21692178            if ( !empty( $bp->current_component ) )
     
    21742183        }
    21752184
    2176         /* We don't want WordPress blog classes to appear on non-blog pages. */
     2185        // We don't want WordPress blog classes to appear on non-blog pages.
    21772186        if ( !bp_is_blog_page() || is_home() ) {
    2178             /* Preserve any custom classes already set */
     2187            // Preserve any custom classes already set
    21792188            if ( !empty( $custom_classes ) )
    21802189                $wp_classes = (array) $custom_classes;
     
    21832192        }
    21842193
    2185         /* Merge WP classes with BP classes */
     2194        // Merge WP classes with BP classes
    21862195        $classes = array_merge( (array) $bp_classes, (array) $wp_classes );
    21872196
    2188         /* Remove any duplicates */
     2197        // Remove any duplicates
    21892198        $classes = array_unique( $classes );
    21902199
Note: See TracChangeset for help on using the changeset viewer.