Skip to:
Content

BuddyPress.org

Changeset 2558 for trunk/bp-messages.php


Ignore:
Timestamp:
02/03/2010 11:32:07 AM (16 years ago)
Author:
apeatling
Message:

Fixes #1755

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-messages.php

    r2450 r2558  
    101101    global $bp;
    102102
    103     if ( $bp->current_component == $bp->messages->slug ) {
    104         $inbox_count = messages_get_unread_count();
    105         $inbox_display = ( $inbox_count ) ? ' style="display:inline;"' : ' style="display:none;"';
    106         $count_indicator = '&nbsp; <span' . $inbox_display . ' class="unread-count inbox-count">' . $inbox_count . '</span>';
    107     }
     103    if ( $count = messages_get_unread_count() )
     104        $name = sprintf( __('Messages <strong>(%s)</strong>', 'buddypress'), $count );
     105    else
     106        $name = __('Messages <strong></strong>', 'buddypress');
    108107
    109108    /* Add 'Messages' to the main navigation */
    110     bp_core_new_nav_item( array( 'name' => __('Messages', 'buddypress'), 'slug' => $bp->messages->slug, 'position' => 50, 'show_for_displayed_user' => false, 'screen_function' => 'messages_screen_inbox', 'default_subnav_slug' => 'inbox', 'item_css_id' => $bp->messages->id ) );
     109    bp_core_new_nav_item( array( 'name' => $name, 'slug' => $bp->messages->slug, 'position' => 50, 'show_for_displayed_user' => false, 'screen_function' => 'messages_screen_inbox', 'default_subnav_slug' => 'inbox', 'item_css_id' => $bp->messages->id ) );
    111110
    112111    $messages_link = $bp->loggedin_user->domain . $bp->messages->slug . '/';
Note: See TracChangeset for help on using the changeset viewer.