Skip to:
Content

BuddyPress.org

Changeset 565 for trunk/bp-core.php


Ignore:
Timestamp:
11/21/2008 09:01:26 PM (17 years ago)
Author:
apeatling
Message:

Modified BuddyPress member theme locations.

BuddyPress member themes now sit in /wp-content/member-themes/

Added a site admin option in Site Admin > BuddyPress to select a member theme to activate for all users.

Added a new readme explaining how to turn an existing WordPress theme into a BuddyPress enabled theme.

NOTE: This will effect all existing installations. You must move /wp-content/themes/buddypress-member/ to /wp-content/member-themes/buddypress-member/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r540 r565  
    10921092}
    10931093
     1094function bp_core_get_member_themes() {
     1095    add_filter( 'theme_root', 'bp_core_set_member_theme_root' );
     1096    $themes = get_themes();
     1097
     1098    if ( $themes ) {
     1099        foreach ( $themes as $name => $values ) {
     1100            $member_themes[] = array(
     1101                'name' => $name,
     1102                'template' => $values['Template']
     1103            );
     1104        }
     1105    }
     1106   
     1107    return $member_themes;
     1108}
     1109
     1110function bp_core_set_member_theme_root() {
     1111    return WP_CONTENT_DIR . "/member-themes";
     1112}
     1113
     1114function bp_core_set_member_theme_root_uri() {
     1115    return WP_CONTENT_URL . '/member-themes';
     1116}
     1117
     1118
    10941119/**
    10951120 * bp_core_email_from_name_filter()
Note: See TracChangeset for help on using the changeset viewer.