Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/03/2012 12:33:13 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Theme Compatibility:

  • First pass at including theme compatibility into BuddyPress.
  • Introduce dependency, theme-compatibility, template-loader files into Core component.
  • Add theme compatibility classes for components with direct template access.
  • Move actions and filters around for improved plugin dependency.
  • Remove old $bbp references.
  • Turn $bp global into byref singleton, and include methods for setting up theme compatibility. (Fixes #4470.)
  • Add is_buddypress() function to bp-core-template.php.
  • Rename incorrectly named bp_after_theme_setup sub-action.
  • See: #3741.
File:
1 edited

Legend:

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

    r6183 r6285  
    6161        // Allow comments on blog and forum activity items
    6262        'bp-disable-blogforum-comments'   => true,
     63
     64        // The ID for the current theme package.
     65        '_bp_theme_package_id'            => 'legacy',
    6366
    6467        /** Groups ************************************************************/
     
    522525}
    523526
    524 ?>
     527/**
     528 * Get the current theme package ID
     529 *
     530 * @since BuddyPress (1.7)
     531 *
     532 * @param $default string Optional. Default value 'default'
     533 * @uses get_option() To get the subtheme option
     534 * @return string ID of the subtheme
     535 */
     536function bp_get_theme_package_id( $default = 'legacy' ) {
     537    return apply_filters( 'bp_get_theme_package_id', get_option( '_bp_theme_package_id', $default ) );
     538}
Note: See TracChangeset for help on using the changeset viewer.