mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-05-31 05:04:29 +08:00
git-svn-id: https://buddypress.svn.wordpress.org/tags/default-home-theme@770 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
90 lines
No EOL
4.8 KiB
PHP
90 lines
No EOL
4.8 KiB
PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
|
|
|
|
<head profile="http://gmpg.org/xfn/11">
|
|
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
|
|
|
|
<title><?php bloginfo('name'); ?></title>
|
|
|
|
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
|
|
|
|
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
|
|
|
|
<?php if ( function_exists('bp_sitewide_activity_feed_link') ) : ?>
|
|
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />
|
|
<?php endif; ?>
|
|
|
|
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
|
|
|
|
<?php wp_head(); ?>
|
|
|
|
<!--[if IE 6]>
|
|
<link rel="stylesheet" href="<?php echo bloginfo('template_url') . '/css/ie/ie6.css' ?>" type="text/css" media="screen" />
|
|
<![endif]-->
|
|
|
|
<!--[if IE 7]>
|
|
<link rel="stylesheet" href="<?php echo bloginfo('template_url') . '/css/ie/ie7.css' ?>" type="text/css" media="screen" />
|
|
<![endif]-->
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<div id="search-login-bar">
|
|
<form action="<?php bp_search_form_action() ?>" method="post" id="search-form">
|
|
<input type="text" id="search-terms" name="search-terms" value="" />
|
|
<?php bp_search_form_type_select() ?>
|
|
|
|
<input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
|
|
</form>
|
|
|
|
<?php if ( !is_user_logged_in() ) : ?>
|
|
<form name="login-form" id="login-form" action="<?php echo site_url() ?>/wp-login.php" method="post">
|
|
<input type="text" name="log" id="user_login" value="<?php _e( 'Username', 'buddypress' ) ?>" onfocus="if (this.value == '<?php _e( 'Username', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Username', 'buddypress' ) ?>';}" />
|
|
<input type="password" name="pwd" id="user_pass" class="input" value="" />
|
|
<!--<input name="rememberme" type="checkbox" id="rememberme" value="forever" />-->
|
|
<input type="submit" name="wp-submit" id="wp-submit" value="<?php _e( 'Log In', 'buddypress' ) ?>"/>
|
|
<input type="button" name="signup-submit" id="signup-submit" value="<?php _e( 'Sign Up', 'buddypress' ) ?>" onclick="location.href='<?php echo bp_signup_page() ?>'" />
|
|
<input type="hidden" name="redirect_to" value="http://<?php echo $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ?>" />
|
|
<input type="hidden" name="testcookie" value="1" />
|
|
</form>
|
|
<?php else : ?>
|
|
<div id="logout-link">
|
|
<?php bp_loggedinuser_avatar_thumbnail( 20, 20 ) ?>
|
|
<?php bp_loggedinuser_link() ?>
|
|
<?php if ( function_exists('wp_logout_url') ) : ?>
|
|
/ <a href="<?php echo wp_logout_url(site_url()) ?>" alt="<?php _e( 'Log Out', 'buddypress' ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a>
|
|
<?php else : ?>
|
|
/ <a href="<?php echo site_url() . '/wp-login.php?action=logout&redirect_to=' . site_url() ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<div id="header">
|
|
<h1 id="logo"><?php _e( 'Social Network', 'buddypress' ) ?></h1>
|
|
|
|
<ul id="nav">
|
|
<li<?php if(bp_is_page('home')) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a></li>
|
|
<li<?php if(bp_is_page('news')) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/news" title="<?php _e( 'News', 'buddypress' ) ?>"><?php _e( 'News', 'buddypress' ) ?></a></li>
|
|
<li<?php if(bp_is_page(MEMBERS_SLUG)) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo MEMBERS_SLUG ?>" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a></li>
|
|
|
|
<?php if ( function_exists('groups_install') ) { ?>
|
|
<li<?php if(bp_is_page('groups')) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/groups" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a></li>
|
|
<?php } ?>
|
|
|
|
<?php if ( function_exists('bp_blogs_install') ) { ?>
|
|
<li<?php if(bp_is_page('blogs')) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/blogs" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a></li>
|
|
<?php } ?>
|
|
|
|
<!--
|
|
<li><a href="<?php echo get_option('home') ?>/forum" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a></li>
|
|
-->
|
|
|
|
<?php do_action( 'bp_nav_items' ) ?>
|
|
</ul>
|
|
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<div class="clear"></div>
|