2012-08-08 16:49:22 +00:00
< ? php do_action ( 'bp_before_sidebar' ) ?>
2012-07-11 16:28:51 +00:00
< div id = " sidebar " role = " complementary " >
< div class = " padder " >
2012-08-08 16:49:22 +00:00
< ? php do_action ( 'bp_inside_before_sidebar' ) ?>
2012-07-11 16:28:51 +00:00
< ? php if ( is_user_logged_in () ) : ?>
2012-08-08 16:49:22 +00:00
< ? php do_action ( 'bp_before_sidebar_me' ) ?>
2012-07-11 16:28:51 +00:00
< div id = " sidebar-me " >
2012-08-08 16:49:22 +00:00
< a href = " <?php echo bp_loggedin_user_domain() ?> " >
< ? php bp_loggedin_user_avatar ( 'type=thumb&width=40&height=40' ) ?>
2012-07-11 16:28:51 +00:00
</ a >
< h4 >< ? php echo bp_core_get_userlink ( bp_loggedin_user_id () ); ?> </h4>
2012-08-08 16:49:22 +00:00
< a class = " button logout " href = " <?php echo wp_logout_url( bp_get_root_domain() ) ?> " >< ? php _e ( 'Log Out' , 'buddypress' ) ?> </a>
2012-07-11 16:28:51 +00:00
2012-08-08 16:49:22 +00:00
< ? php do_action ( 'bp_sidebar_me' ) ?>
2012-07-11 16:28:51 +00:00
</ div >
2012-08-08 16:49:22 +00:00
< ? php do_action ( 'bp_after_sidebar_me' ) ?>
2012-07-11 16:28:51 +00:00
< ? php if ( bp_is_active ( 'messages' ) ) : ?>
< ? php bp_message_get_notices (); /* Site wide notices to all users */ ?>
< ? php endif ; ?>
< ? php else : ?>
2012-08-08 16:49:22 +00:00
< ? php do_action ( 'bp_before_sidebar_login_form' ) ?>
2012-07-11 16:28:51 +00:00
< ? php if ( bp_get_signup_allowed () ) : ?>
< p id = " login-text " >
2012-08-08 16:49:22 +00:00
< ? php printf ( __ ( 'Please <a href="%s" title="Create an account">create an account</a> to get started.' , 'buddypress' ), site_url ( bp_get_signup_slug () . '/' ) ) ?>
2012-07-11 16:28:51 +00:00
</ p >
< ? php endif ; ?>
2012-08-08 16:49:22 +00:00
< form name = " login-form " id = " sidebar-login-form " class = " standard-form " action = " <?php echo site_url( 'wp-login.php', 'login_post' ) ?> " method = " post " >
< label >< ? php _e ( 'Username' , 'buddypress' ) ?> <br />
2012-07-11 16:28:51 +00:00
< 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 >
2012-08-08 16:49:22 +00:00
< label >< ? php _e ( 'Password' , 'buddypress' ) ?> <br />
2012-07-11 16:28:51 +00:00
< input type = " password " name = " pwd " id = " sidebar-user-pass " class = " input " value = " " tabindex = " 98 " /></ label >
2012-08-08 16:49:22 +00:00
< p class = " forgetmenot " >< label >< input name = " rememberme " type = " checkbox " id = " sidebar-rememberme " value = " forever " tabindex = " 99 " /> < ? php _e ( 'Remember Me' , 'buddypress' ) ?> </label></p>
2012-07-11 16:28:51 +00:00
2012-08-08 16:49:22 +00:00
< ? php do_action ( 'bp_sidebar_login_form' ) ?>
2012-07-11 16:28:51 +00:00
< input type = " submit " name = " wp-submit " id = " sidebar-wp-submit " value = " <?php _e( 'Log In', 'buddypress' ); ?> " tabindex = " 100 " />
< input type = " hidden " name = " testcookie " value = " 1 " />
</ form >
2012-08-08 16:49:22 +00:00
< ? php do_action ( 'bp_after_sidebar_login_form' ) ?>
2012-07-11 16:28:51 +00:00
< ? php endif ; ?>
< ? php /* Show forum tags on the forums directory */
if ( bp_is_active ( 'forums' ) && bp_is_forums_component () && bp_is_directory () ) : ?>
< div id = " forum-directory-tags " class = " widget tags " >
2012-08-08 16:49:22 +00:00
< h3 class = " widgettitle " >< ? php _e ( 'Forum Topic Tags' , 'buddypress' ) ?> </h3>
2012-07-11 16:28:51 +00:00
< div id = " tag-text " >< ? php bp_forums_tag_heat_map (); ?> </div>
</ div >
< ? php endif ; ?>
2012-08-08 16:49:22 +00:00
< ? php dynamic_sidebar ( 'sidebar-1' ) ?>
2012-07-11 16:28:51 +00:00
2012-08-08 16:49:22 +00:00
< ? php do_action ( 'bp_inside_after_sidebar' ) ?>
2012-07-11 16:28:51 +00:00
</ div ><!-- . padder -->
</ div ><!-- #sidebar -->
2012-08-08 16:49:22 +00:00
< ? php do_action ( 'bp_after_sidebar' ) ?>