';
_e( 'Notifications', 'buddypress' );
if ( $notification_count = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) ) : ?>
';
echo '';
if ( $notifications = bp_notifications_get_notifications_for_user( bp_loggedin_user_id() ) ) {
$counter = 0;
for ( $i = 0, $count = count( $notifications ); $i < $count; ++$i ) {
$alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
- >
';
echo '';
}
add_action( 'bp_adminbar_menus', 'bp_adminbar_notifications_menu', 8 );