Changeset 7758 for trunk/bp-notifications/bp-notifications-loader.php
- Timestamp:
- 01/26/2014 02:53:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-notifications/bp-notifications-loader.php
r7756 r7758 106 106 // Add 'Notifications' to the main navigation 107 107 $count = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); 108 $class = ( 0 === $count ) ? 'no-count' : 'count'; 108 109 $main_nav = array( 109 'name' => sprintf( __( 'Notifications <span >%d</span>', 'buddypress'), number_format_i18n( $count ) ),110 'name' => sprintf( __( 'Notifications <span class="%s">%s</span>', 'buddypress' ), esc_attr( $class ), number_format_i18n( $count ) ), 110 111 'slug' => $this->slug, 111 112 'position' => 30,
Note: See TracChangeset
for help on using the changeset viewer.