Ticket #3596: 3596.01.patch
File 3596.01.patch, 2.1 KB (added by , 13 years ago) |
---|
-
bp-core/css/admin-bar.dev.css
1 #wpadminbar .quicklinks li#wp-admin-bar-my-account ul,2 #wpadminbar .quicklinks li#wp-admin-bar-my-account-with-avatar ul {3 left: 0;4 right: auto;5 }6 7 1 /* Displayed User */ 8 2 #wpadminbar .quicklinks li#wp-admin-bar-user-admin-with-avatar > a { 9 3 border-left: none; … … 55 49 -khtml-border-radius: 10px; 56 50 -webkit-border-radius: 10px; 57 51 border-radius: 10px; 52 } 53 #wpadminbar li#wp-admin-bar-my-account .user-info { 54 height: 72px; 58 55 } 56 No newline at end of file -
bp-members/bp-members-adminbar.php
41 41 // Stored in the global so we can add menus easily later on 42 42 $bp->my_account_menu_id = 'my-account'; 43 43 44 $title = bp_get_loggedin_user_fullname() . $avatar;44 $title = sprintf( __( 'Howdy, %1$s' ), bp_get_loggedin_user_fullname() ) . $avatar; 45 45 46 46 $class = 'opposite'; 47 47 if ( !empty( $avatar ) ) … … 55 55 $title = $avatar . bp_get_loggedin_user_fullname(); 56 56 $meta = array(); 57 57 } 58 58 59 59 // Create the main 'My Account' menu 60 60 $wp_admin_bar->add_menu( array( 61 61 'id' => $bp->my_account_menu_id, … … 63 63 'href' => $bp->loggedin_user->domain, 64 64 'meta' => $meta 65 65 ) ); 66 67 // Add a 'My Profile' link 68 $user_info = bp_core_fetch_avatar( array( 69 'item_id' => $bp->loggedin_user->id, 70 'email' => $bp->loggedin_user->userdata->user_email, 71 'width' => 64, 72 'height' => 64 73 ) ); 74 $user_info .= "<span class='display-name'>" . bp_get_loggedin_user_fullname() . "</span>"; 66 75 76 $wp_admin_bar->add_menu( array( 77 'parent' => 'my-account', 78 'id' => 'user-info', 79 'title' => $user_info, 80 'meta' => array( 81 'class' => 'user-info user-info-item' 82 ), 83 ) ); 84 85 67 86 // Show login and sign-up links 68 87 } elseif ( !empty( $wp_admin_bar ) ) { 69 88