Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/09/2008 04:37:49 AM (16 years ago)
Author:
apeatling
Message:
  • Moved all group pages to the root, rather than using a member URL
  • Introduced groupmeta support - groups_update_groupmeta / groups_delete_groupmeta / groups_get_groupmeta
  • Added widgets for site wide activity and who's online
  • Updated home theme to support display of new BuddyPress widgets
  • Added site wide activity feed support
  • Fixed bug where ajax functions would only work when logged in
  • Various other bug fixes
File:
1 edited

Legend:

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

    r359 r375  
    110110    $pages = $bp_path;
    111111   
    112     if ( $wpdb->blogid == $bp['current_homebase_id'] ) {
    113         if ( !file_exists( TEMPLATEPATH . "/header.php" ) || !file_exists( TEMPLATEPATH . "/footer.php" ) )
    114             wp_die( 'Please make sure your BuddyPress enabled theme includes a header.php and footer.php file.');
     112    if ( !file_exists( TEMPLATEPATH . "/header.php" ) || !file_exists( TEMPLATEPATH . "/footer.php" ) )
     113        wp_die( 'Please make sure your BuddyPress enabled theme includes a header.php and footer.php file.');
    115114
    116         do_action( 'get_header' );
    117         load_template( TEMPLATEPATH . "/header.php" );
    118    
    119         if ( is_array( $pages ) ) {
    120             foreach( $pages as $page ) {
    121                 if ( file_exists( TEMPLATEPATH . "/" . $page . ".php" ) ) {
    122                     load_template( TEMPLATEPATH . "/" . $page . ".php" );
    123                 }
    124             }
    125         } else {
    126             if ( file_exists( TEMPLATEPATH . "/" . $pages . ".php" ) ) {
    127                 load_template( TEMPLATEPATH . "/" . $pages . ".php" );
    128             } else {
    129                 load_template( TEMPLATEPATH . "/index.php" );
     115    do_action( 'get_header' );
     116    load_template( TEMPLATEPATH . "/header.php" );
     117
     118    if ( is_array( $pages ) ) {
     119        foreach( $pages as $page ) {
     120            if ( file_exists( TEMPLATEPATH . "/" . $page . ".php" ) ) {
     121                load_template( TEMPLATEPATH . "/" . $page . ".php" );
    130122            }
    131123        }
    132    
    133         do_action( 'get_footer' );
    134         load_template( TEMPLATEPATH . "/footer.php" );
    135         die;
     124    } else {
     125        if ( file_exists( TEMPLATEPATH . "/" . $pages . ".php" ) ) {
     126            load_template( TEMPLATEPATH . "/" . $pages . ".php" );
     127        } else {
     128            if ( file_exists( TEMPLATEPATH . "/home.php" ) )
     129                load_template( TEMPLATEPATH . "/home.php" );
     130            else
     131                load_template( TEMPLATEPATH . "/index.php" );   
     132        }
    136133    }
     134
     135    do_action( 'get_footer' );
     136    load_template( TEMPLATEPATH . "/footer.php" );
     137    die;
    137138}
    138139?>
Note: See TracChangeset for help on using the changeset viewer.