Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/14/2009 03:24:05 PM (16 years ago)
Author:
apeatling
Message:

Committing core code support for new default theme.

Removed all deprecated code since it will be released as a separate plugin for backwards compatibility if people need it.

Removed the wire and status updates components since there is no support in the theme for these. If people still want this functionality then I'm sure there is someone in the community that could spend a bit of time and release them as plugins. I'm happy to guide.

Removed a lot of template loop duplication. There are no longer site loops and user loops (e.g. bp_has_site_groups() / bp_has_groups() ). There are now bp_has_members(), bp_has_groups(), bp_has_blogs() and you can pass a "user_id" parameter into these loops to limit results to only that user or users.

Merged activity stream functions. There are no longer functions for bp_activity_get_sitewide() / bp_activity_get_for_user() / bp_activity_get_friends_activity() instead there is simply one function: bp_activity_get() and you can pass in parameters to filter on just friends, for a single user, or anything your heart desires. Actually, filtering is extremely fine grained, so I encourage devs to check out the filter functions.

Lots of other code cleanup.

The new default theme will be committed straight after this. The original default folder will be renamed to bp-classic.

File:
1 edited

Legend:

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

    r2114 r2168  
    1212        return false;
    1313
    14     echo '<div id="wp-admin-bar">';
     14    echo '<div id="wp-admin-bar"><div class="padder">';
    1515
    1616    // **** Do bp-adminbar-logo Actions ********
     
    2323
    2424    echo '</ul>';
    25     echo '</div>';
     25    echo '</div></div>';
    2626}
    2727
     
    275275add_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu', 2 );
    276276add_action( 'bp_adminbar_menus', 'bp_adminbar_account_menu', 4 );
    277 add_action( 'bp_adminbar_menus', 'bp_adminbar_blogs_menu', 6 );
     277
     278if ( function_exists('bp_blogs_install') )
     279    add_action( 'bp_adminbar_menus', 'bp_adminbar_blogs_menu', 6 );
     280
    278281add_action( 'bp_adminbar_menus', 'bp_adminbar_notifications_menu', 8 );
    279 add_action( 'bp_adminbar_menus', 'bp_adminbar_authors_menu', 12 );
     282
     283if ( function_exists('bp_blogs_install') )
     284    add_action( 'bp_adminbar_menus', 'bp_adminbar_authors_menu', 12 );
     285
    280286add_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu', 100 );
    281287
Note: See TracChangeset for help on using the changeset viewer.