Changeset 394 for trunk/bp-core/bp-core-adminbar.php
- Timestamp:
- 10/23/2008 12:56:37 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-adminbar.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-adminbar.php
r391 r394 4 4 global $bp, $wpdb, $current_blog; 5 5 6 if ( is_user_logged_in() && bp_core_user_has_home()) {6 if ( is_user_logged_in() ) { 7 7 echo '<div id="wp-admin-bar">'; 8 8 echo '<a href="' . get_blog_option( 1, 'siteurl' ) . '"><img id="admin-bar-logo" src="' . site_url() . '/wp-content/mu-plugins/bp-core/images/admin_bar_logo.gif" alt="BuddyPress" /></a>'; … … 73 73 74 74 if ( $current_blog->blog_id > 1 ) { 75 if ( bp_core_is_home_base( $current_blog->blog_id ) ) { 76 // TODO: possible menu for current group/user/photo etc 77 } else { 78 $authors = get_users_of_blog(); 75 $authors = get_users_of_blog(); 76 77 if ( is_array( $authors ) ) { 78 /* This is a blog, render a menu with links to all authors */ 79 echo '<li><a href="/">'; 80 _e('Blog Authors', 'buddypress'); 81 echo '</a>'; 79 82 80 if ( is_array( $authors ) ) { 81 /* This is a blog, render a menu with links to all authors */ 82 echo '<li><a href="/">'; 83 _e('Blog Authors', 'buddypress'); 83 echo '<ul class="author-list">'; 84 foreach( $authors as $author ) { 85 $author = new BP_Core_User( $author->user_id ); 86 echo '<li>'; 87 88 echo '<div class="admin-bar-clear"><a href="' . $author->user_url . '">'; 89 echo $author->avatar_mini; 90 echo ' ' . $author->fullname; 91 echo '<span class="activity">' . $author->last_active . '</span>'; 84 92 echo '</a>'; 85 86 echo '<ul class="author-list">'; 87 foreach( $authors as $author ) { 88 $author = new BP_Core_User( $author->user_id ); 89 echo '<li>'; 90 91 echo '<div class="admin-bar-clear"><a href="' . $author->user_url . '">'; 92 echo $author->avatar_mini; 93 echo ' ' . $author->fullname; 94 echo '<span class="activity">' . $author->last_active . '</span>'; 95 echo '</a>'; 96 echo '</div>'; 97 echo '</li>'; 98 } 99 echo '</ul>'; 93 echo '</div>'; 100 94 echo '</li>'; 101 95 } 96 echo '</ul>'; 97 echo '</li>'; 102 98 } 103 99 }
Note: See TracChangeset
for help on using the changeset viewer.