Changeset 7628
- Timestamp:
- 11/30/2013 06:47:24 AM (12 years ago)
- Location:
- trunk/bp-notifications
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-notifications/bp-notifications-adminbar.php
r7545 r7628 25 25 } 26 26 27 $notifications = bp_ core_get_notifications_for_user( bp_loggedin_user_id(), 'object' );27 $notifications = bp_notifications_get_notifications_for_user( bp_loggedin_user_id(), 'object' ); 28 28 $count = ! empty( $notifications ) ? count( $notifications ) : 0; 29 29 $alert_class = (int) $count > 0 ? 'pending-count alert' : 'count no-alert'; 30 $menu_title = '<span id="ab-pending-notifications" class="' . $alert_class . '">' . $count. '</span>';30 $menu_title = '<span id="ab-pending-notifications" class="' . $alert_class . '">' . number_format_i18n( $count ) . '</span>'; 31 31 $menu_link = trailingslashit( bp_loggedin_user_domain() . bp_get_notifications_slug() ); 32 32 -
trunk/bp-notifications/bp-notifications-buddybar.php
r7521 r7628 25 25 } 26 26 27 echo '<li id="bp-adminbar-notifications-menu"><a href="' . bp_loggedin_user_domain() . '">';27 echo '<li id="bp-adminbar-notifications-menu"><a href="' . esc_url( bp_loggedin_user_domain() ) . '">'; 28 28 _e( 'Notifications', 'buddypress' ); 29 29 30 if ( $notifications = bp_ core_get_notifications_for_user( bp_loggedin_user_id() ) ) : ?>31 <span><?php echo count( $notifications )?></span>30 if ( $notifications = bp_notifications_get_notifications_for_user( bp_loggedin_user_id() ) ) : ?> 31 <span><?php echo number_format_i18n( $notifications ); ?></span> 32 32 <?php 33 33 endif; … … 47 47 } else { ?> 48 48 49 <li><a href="<?php echo bp_loggedin_user_domain()?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li>49 <li><a href="<?php echo esc_url( bp_loggedin_user_domain() ); ?>"><?php _e( 'No new notifications.', 'buddypress' ); ?></a></li> 50 50 51 51 <?php
Note: See TracChangeset
for help on using the changeset viewer.