Changeset 5737 for trunk/bp-themes/bp-default/sidebar.php
- Timestamp:
- 02/12/2012 08:09:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/sidebar.php
r5072 r5737 1 <?php do_action( 'bp_before_sidebar' ) ?>1 <?php do_action( 'bp_before_sidebar' ); ?> 2 2 3 3 <div id="sidebar" role="complementary"> 4 4 <div class="padder"> 5 5 6 <?php do_action( 'bp_inside_before_sidebar' ) ?>6 <?php do_action( 'bp_inside_before_sidebar' ); ?> 7 7 8 8 <?php if ( is_user_logged_in() ) : ?> 9 9 10 <?php do_action( 'bp_before_sidebar_me' ) ?>10 <?php do_action( 'bp_before_sidebar_me' ); ?> 11 11 12 12 <div id="sidebar-me"> 13 <a href="<?php echo bp_loggedin_user_domain() ?>">14 <?php bp_loggedin_user_avatar( 'type=thumb&width=40&height=40' ) ?>13 <a href="<?php echo bp_loggedin_user_domain(); ?>"> 14 <?php bp_loggedin_user_avatar( 'type=thumb&width=40&height=40' ); ?> 15 15 </a> 16 16 17 17 <h4><?php echo bp_core_get_userlink( bp_loggedin_user_id() ); ?></h4> 18 <a class="button logout" href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>"><?php _e( 'Log Out', 'buddypress' )?></a>18 <a class="button logout" href="<?php echo wp_logout_url( bp_get_root_domain() ); ?>"><?php _e( 'Log Out', 'buddypress' ); ?></a> 19 19 20 <?php do_action( 'bp_sidebar_me' ) ?>20 <?php do_action( 'bp_sidebar_me' ); ?> 21 21 </div> 22 22 23 <?php do_action( 'bp_after_sidebar_me' ) ?>23 <?php do_action( 'bp_after_sidebar_me' ); ?> 24 24 25 25 <?php if ( bp_is_active( 'messages' ) ) : ?> … … 29 29 <?php else : ?> 30 30 31 <?php do_action( 'bp_before_sidebar_login_form' ) ?>31 <?php do_action( 'bp_before_sidebar_login_form' ); ?> 32 32 33 33 <?php if ( bp_get_signup_allowed() ) : ?> … … 35 35 <p id="login-text"> 36 36 37 <?php printf( __( 'Please <a href="%s" title="Create an account">create an account</a> to get started.', 'buddypress' ), site_url( bp_get_signup_slug() . '/' ) ) ?>37 <?php printf( __( 'Please <a href="%s" title="Create an account">create an account</a> to get started.', 'buddypress' ), site_url( bp_get_signup_slug() . '/' ) ); ?> 38 38 39 39 </p> … … 41 41 <?php endif; ?> 42 42 43 <form name="login-form" id="sidebar-login-form" class="standard-form" action="<?php echo site_url( 'wp-login.php', 'login_post' ) ?>" method="post">44 <label><?php _e( 'Username', 'buddypress' ) ?><br />43 <form name="login-form" id="sidebar-login-form" class="standard-form" action="<?php echo site_url( 'wp-login.php', 'login_post' ); ?>" method="post"> 44 <label><?php _e( 'Username', 'buddypress' ); ?><br /> 45 45 <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> 46 46 47 <label><?php _e( 'Password', 'buddypress' ) ?><br />47 <label><?php _e( 'Password', 'buddypress' ); ?><br /> 48 48 <input type="password" name="pwd" id="sidebar-user-pass" class="input" value="" tabindex="98" /></label> 49 49 50 <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="sidebar-rememberme" value="forever" tabindex="99" /> <?php _e( 'Remember Me', 'buddypress' ) ?></label></p>50 <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="sidebar-rememberme" value="forever" tabindex="99" /> <?php _e( 'Remember Me', 'buddypress' ); ?></label></p> 51 51 52 <?php do_action( 'bp_sidebar_login_form' ) ?>52 <?php do_action( 'bp_sidebar_login_form' ); ?> 53 53 <input type="submit" name="wp-submit" id="sidebar-wp-submit" value="<?php _e( 'Log In', 'buddypress' ); ?>" tabindex="100" /> 54 54 <input type="hidden" name="testcookie" value="1" /> 55 55 </form> 56 56 57 <?php do_action( 'bp_after_sidebar_login_form' ) ?>57 <?php do_action( 'bp_after_sidebar_login_form' ); ?> 58 58 59 59 <?php endif; ?> … … 62 62 if ( bp_is_active( 'forums' ) && bp_is_forums_component() && bp_is_directory() ) : ?> 63 63 <div id="forum-directory-tags" class="widget tags"> 64 <h3 class="widgettitle"><?php _e( 'Forum Topic Tags', 'buddypress' ) ?></h3>64 <h3 class="widgettitle"><?php _e( 'Forum Topic Tags', 'buddypress' ); ?></h3> 65 65 <div id="tag-text"><?php bp_forums_tag_heat_map(); ?></div> 66 66 </div> 67 67 <?php endif; ?> 68 68 69 <?php dynamic_sidebar( 'sidebar-1' ) ?>69 <?php dynamic_sidebar( 'sidebar-1' ); ?> 70 70 71 <?php do_action( 'bp_inside_after_sidebar' ) ?>71 <?php do_action( 'bp_inside_after_sidebar' ); ?> 72 72 73 73 </div><!-- .padder --> 74 74 </div><!-- #sidebar --> 75 75 76 <?php do_action( 'bp_after_sidebar' ) ?>76 <?php do_action( 'bp_after_sidebar' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.