コード例 #1
0
/**
 * Output the associated item ID of the notification currently being iterated on.
 *
 * @since BuddyPress (1.9.0)
 */
function bp_the_notification_item_id()
{
    echo bp_get_the_notification_item_id();
}
コード例 #2
0
ファイル: header.php プロジェクト: httvncoder/151722441
							<div class="dropdown-menu dropdown-menu-head pull-right">
								<h5 class="title">You Have <?php 
echo bp_notifications_get_unread_notification_count();
?>
 New Notifications</h5>
								<ul class="dropdown-list gen-list">
								
									<?php 
if (bp_has_notifications()) {
    ?>
									<?php 
    while (bp_the_notifications()) {
        bp_the_notification();
        ?>
									<?php 
        $item_id = bp_get_the_notification_item_id();
        $user = get_userdata($item_id);
        $link = bp_core_get_user_domain($item_id);
        $avatar = get_avatar($item_id, '36', '', $user->display_name);
        ?>
									<li class="new">
										<a href="<?php 
        bp_the_notification_action_links();
        ?>
"> 
											<span class="thumb">
												
											</span> 
											<span class="desc">
												<span class="name"><?php 
        echo $user->display_name;