buddypress/0.1/default/functions.php
Andy Peatling b51846766d tagging default theme v0.1
git-svn-id: https://buddypress.svn.wordpress.org/tags/buddypress-theme@99 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2008-05-12 22:36:55 +00:00

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>',
));
?>