Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/23/2008 12:56:37 PM (17 years ago)
Author:
apeatling
Message:

Removed home base requirement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-adminbar.php

    r391 r394  
    44    global $bp, $wpdb, $current_blog;
    55
    6     if ( is_user_logged_in() && bp_core_user_has_home() ) {
     6    if ( is_user_logged_in() ) {
    77        echo '<div id="wp-admin-bar">';
    88        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>';
     
    7373       
    7474        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>';
    7982           
    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>';
    8492                    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>';
    10094                    echo '</li>';
    10195                }
     96                echo '</ul>';
     97                echo '</li>';
    10298            }
    10399        }
Note: See TracChangeset for help on using the changeset viewer.