Changeset 601 for trunk/bp-blogs.php
- Timestamp:
- 12/02/2008 09:04:12 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-blogs.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs.php
r592 r601 249 249 return false; 250 250 251 return sprintf( __( '%s created a new blog: %s', 'buddypress' ), bp_core_get_userlink($user_id), '<a href="' . get_blog_option( $blog->blog_id, 'siteurl' ) . '">' . get_blog_option( $blog->blog_id, 'blogname' ) . '</a>' ) . ' <span class="time-since">%s</span>'; 251 return array( 252 'primary_link' => get_blog_option( $blog->blog_id, 'siteurl' ), 253 'content' => sprintf( __( '%s created a new blog: %s', 'buddypress' ), bp_core_get_userlink($user_id), '<a href="' . get_blog_option( $blog->blog_id, 'siteurl' ) . '">' . get_blog_option( $blog->blog_id, 'blogname' ) . '</a>' ) . ' <span class="time-since">%s</span>' 254 ); 252 255 break; 253 256 case 'new_blog_post': … … 262 265 return false; 263 266 264 $content = sprintf( __( '%s wrote a new blog post: %s', 'buddypress' ), bp_core_get_userlink($user_id), '<a href="' . bp_post_get_permalink( $post, $post->blog_id ) . '">' . $post->post_title . '</a>' ) . ' <span class="time-since">%s</span>'; 267 $post_link = bp_post_get_permalink( $post, $post->blog_id ); 268 $content = sprintf( __( '%s wrote a new blog post: %s', 'buddypress' ), bp_core_get_userlink($user_id), '<a href="' . $post_link . '">' . $post->post_title . '</a>' ) . ' <span class="time-since">%s</span>'; 265 269 $content .= '<blockquote>' . bp_create_excerpt($post->post_content) . '</blockquote>'; 266 return $content; 270 271 return array( 272 'primary_link' => $post_link, 273 'content' => $content 274 ); 267 275 break; 268 276 case 'new_blog_comment': … … 277 285 278 286 $comment = BP_Blogs_Comment::fetch_comment_content($comment); 279 $content = sprintf( __( '%s commented on the blog post %s', 'buddypress' ), bp_core_get_userlink($user_id), '<a href="' . bp_post_get_permalink( $comment->post, $comment->blog_id ) . '#comment-' . $comment->comment_ID . '">' . $comment->post->post_title . '</a>' ) . ' <span class="time-since">%s</span>'; 287 $post_link = bp_post_get_permalink( $comment->post, $comment->blog_id ); 288 $content = sprintf( __( '%s commented on the blog post %s', 'buddypress' ), bp_core_get_userlink($user_id), '<a href="' . $post_link . '#comment-' . $comment->comment_ID . '">' . $comment->post->post_title . '</a>' ) . ' <span class="time-since">%s</span>'; 280 289 $content .= '<blockquote>' . bp_create_excerpt($comment->comment_content) . '</blockquote>'; 281 return $content; 290 291 return array( 292 'primary_link' => $post_link . '#comment-' . $comment->comment_ID, 293 'content' => $content 294 ); 282 295 break; 283 296 }
Note: See TracChangeset
for help on using the changeset viewer.