mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-05-31 05:04:29 +08:00
You should install all BuddyPress component plugin files in /wp-content/plugins/buddypress/ however you can call the "buddypress" dir anything you like. BuddyPress plugins can then be activated and deactivated through the "Plugins" admin panel. If you are upgrading to this version please move all BuddyPress plugins to the location mentioned above and then update. You will also need to make sure your themes reference the new locations. There are two constants you should use "BP_PLUGIN_DIR" and "BP_PLUGIN_URL". You will need to re-activate the plugins via the "Plugins" admin panel. Again, from now on BuddyPress will ONLY work with WPMU 2.7.1+ so please use the 2.7 branch from the WordPress MU SVN repo. Link: http://trac.mu.wordpress.org/browser/branches/2.7 git-svn-id: https://buddypress.svn.wordpress.org/trunk@1303 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
48 lines
No EOL
1.7 KiB
PHP
48 lines
No EOL
1.7 KiB
PHP
<div id="userbar">
|
|
<h3><?php _e( 'Me', 'buddypress' ) ?></h3>
|
|
|
|
<?php do_action( 'bp_user_bar_before' ) ?>
|
|
|
|
<?php if ( is_user_logged_in() ) : ?>
|
|
|
|
<?php if ( function_exists('bp_loggedinuser_avatar_thumbnail') ) : ?>
|
|
<p class="avatar">
|
|
<?php bp_loggedinuser_avatar_thumbnail() ?>
|
|
</p>
|
|
<?php endif; ?>
|
|
|
|
<ul id="bp-nav">
|
|
<?php bp_get_nav() ?>
|
|
</ul>
|
|
|
|
<?php else : ?>
|
|
|
|
<p class="avatar">
|
|
<img src="<?php echo BP_PLUGIN_URL . '/bp-core/images/mystery-man.jpg' ?>" alt="No User" width="50" height="50" />
|
|
</p>
|
|
|
|
<p id="login-text"><?php _e( 'You must log in to access your account.', 'buddypress' ) ?></p>
|
|
|
|
<form name="loginform" id="loginform" action="<?php echo site_url('wp-login.php') ?>" method="post">
|
|
<p>
|
|
<label><?php _e( 'Username', 'buddypress' ) ?><br />
|
|
<input type="text" name="log" id="user_login" class="input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" /></label>
|
|
</p>
|
|
<p>
|
|
<label><?php _e( 'Password', 'buddypress' ) ?><br />
|
|
<input type="password" name="pwd" id="user_pass" class="input" value="" /></label>
|
|
</p>
|
|
<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember Me', 'buddypress' ) ?></label></p>
|
|
<p class="submit">
|
|
<input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Log In'); ?>" tabindex="100" />
|
|
<input type="hidden" name="redirect_to" value="http://<?php echo $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ?>?nr" />
|
|
<input type="hidden" name="testcookie" value="1" />
|
|
</p>
|
|
</form>
|
|
|
|
<?php endif ?>
|
|
|
|
<?php do_action( 'bp_user_bar_after' ) ?>
|
|
|
|
<div class="clear"></div>
|
|
</div>
|