mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-05-30 04:43:58 +08:00
git-svn-id: https://buddypress.svn.wordpress.org/tags/buddypress-theme@99 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
30 lines
No EOL
858 B
PHP
30 lines
No EOL
858 B
PHP
<?php
|
|
|
|
/*************************************************************
|
|
Check the request URI and forward to the correct custom pages
|
|
*************************************************************/
|
|
|
|
$uri = explode("/", $_SERVER['REQUEST_URI']);
|
|
if($uri[count($uri)-1] == "") { array_pop($uri); }
|
|
|
|
switch($uri[count($uri)-1]) {
|
|
case "blog":
|
|
require(TEMPLATEPATH . '/blog.php'); die;
|
|
break;
|
|
}
|
|
|
|
|
|
/*************************************************************
|
|
Check the request URI and forward to the correct custom pages
|
|
*************************************************************/
|
|
|
|
if ( function_exists('register_sidebar') )
|
|
register_sidebar(array(
|
|
'before_widget' => '<li id="%1$s" class="widget %2$s">',
|
|
'after_widget' => '</li>',
|
|
'before_title' => '<h2 class="widgettitle">',
|
|
'after_title' => '</h2>',
|
|
));
|
|
|
|
|
|
?>
|