Advertisement
Guest User

Untitled

a guest
Dec 11th, 2011
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. <?php if ( is_user_logged_in() ) : ?>
  2.  
  3. <div id="header-me">
  4. <a href="<?php echo bp_loggedin_user_domain() ?>"><?php bp_loggedin_user_avatar( 'type=thumb&width=40&height=40' ) ?></a>
  5.  
  6. <h4><?php echo bp_core_get_userlink( bp_loggedin_user_id() ); ?></h4>
  7.  
  8. <a class="button logout" href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a>
  9.  
  10. </div>
  11.  
  12. <?php else : ?>
  13.  
  14. <?php if ( bp_get_signup_allowed() ) : ?>
  15.  
  16. <p id="login-text"><?php printf( __( 'Please <a href="%s" title="Create an account">create an account</a> to get started.', 'buddypress' ), site_url( bp_get_signup_slug() . '/' ) ) ?></p>
  17.  
  18. <?php endif; ?>
  19.  
  20. <form name="login-form" id="sidebar-login-form" class="standard-form" action="<?php echo site_url( 'wp-login.php', 'login_post' ) ?>" method="post">
  21. <label><?php _e( 'Username', 'buddypress' ) ?><br />
  22. <input type="text" name="log" id="sidebar-user-login" class="input" value="<?php if ( isset( $user_login) ) echo esc_attr(stripslashes($user_login)); ?>" tabindex="97" /></label>
  23. <label><?php _e( 'Password', 'buddypress' ) ?><br />
  24. <input type="password" name="pwd" id="sidebar-user-pass" class="input" value="" tabindex="98" /></label>
  25.  
  26. <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="sidebar-rememberme" value="forever" tabindex="99" /> <?php _e( 'Remember Me', 'buddypress' ) ?></label></p>
  27. <input type="submit" name="wp-submit" id="sidebar-wp-submit" value="<?php _e( 'Log In', 'buddypress' ); ?>" tabindex="100" />
  28. <input type="hidden" name="testcookie" value="1" />
  29. </form>
  30.  
  31. <?php endif; ?>
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement