Changeset 375 for trunk/bp-core/bp-core-catchuri.php
- Timestamp:
- 10/09/2008 04:37:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-catchuri.php
r359 r375 110 110 $pages = $bp_path; 111 111 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.'); 115 114 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" ); 130 122 } 131 123 } 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 } 136 133 } 134 135 do_action( 'get_footer' ); 136 load_template( TEMPLATEPATH . "/footer.php" ); 137 die; 137 138 } 138 139 ?>
Note: See TracChangeset
for help on using the changeset viewer.