Skip to:
Content

BuddyPress.org

Changeset 7544


Ignore:
Timestamp:
11/09/2013 02:59:16 PM (11 years ago)
Author:
johnjamesjacoby
Message:

In Notifications toolbar menu, ensure unread notification bubble cascades into sub-menu for consistent component behavior. See #5148.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-notifications/bp-notifications-loader.php

    r7543 r7544  
    172172            $count = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
    173173            if ( ! empty( $count ) ) {
    174                 $unread = sprintf( __( 'Notifications <span class="count">%s</span>', 'buddypress' ), number_format_i18n( $count ) );
     174                $title  = sprintf( __( 'Notifications <span class="count">%s</span>', 'buddypress' ), number_format_i18n( $count ) );
     175                $unread = sprintf( __( 'Unread <span class="count">%s</span>',        'buddypress' ), number_format_i18n( $count ) );
    175176            } else {
    176                 $unread = __( 'Notifications', 'buddypress' );
     177                $title  = __( 'Notifications', 'buddypress' );
     178                $unread = __( 'Unread',        'buddypress' );
    177179            }
    178180
     
    181183                'parent' => buddypress()->my_account_menu_id,
    182184                'id'     => 'my-account-' . $this->id,
    183                 'title'  => $unread,
     185                'title'  => $title,
    184186                'href'   => trailingslashit( $notifications_link ),
    185187            );
     
    189191                'parent' => 'my-account-' . $this->id,
    190192                'id'     => 'my-account-' . $this->id . '-unread',
    191                 'title'  => __( 'Unread', 'buddypress' ),
     193                'title'  => $unread,
    192194                'href'   => trailingslashit( $notifications_link ),
    193195            );
Note: See TracChangeset for help on using the changeset viewer.