Skip to content

Instantly share code, notes, and snippets.

@codehooligans
Created September 28, 2012 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codehooligans/3799385 to your computer and use it in GitHub Desktop.
Save codehooligans/3799385 to your computer and use it in GitHub Desktop.
WPMU DEV Live Stream modification
$item_output .= '<div class="live-stream-text">';
/* Show the User Name */
if (isset($user_data['display_name']))
$item_output .= $author_anchor_begin . $user_data['display_name'] . $author_anchor_end ." ";
if ($item->post_type == "comment") {
$item_output .= __(" commented on ", LIVE_STREAM_I18N_DOMAIN); ;
/* Show the Post Title */
if (isset($blogs[$item->blog_id])) {
$post_anchor_begin = '<a href="'. $item->post_permalink .'#comment-'. $item->comment_id .'">';
$post_anchor_end = '</a>';
} else {
$post_anchor_begin = '';
$post_anchor_end = '';
}
$item_output .= $post_anchor_begin . $item->post_title . $post_anchor_end ." ";
} else {
$item_output .= " ". __('published', LIVE_STREAM_I18N_DOMAIN) ." ";
/* Show the Post Title */
$item_output .= '<a href="'. $item->post_permalink .'">'. $item->post_title ."</a> ";
}
$item_output .= '</div>';
/* Closing the item text wrapper */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment