Skip to:
Content

BuddyPress.org

Changeset 601 for trunk/bp-blogs.php


Ignore:
Timestamp:
12/02/2008 09:04:12 PM (17 years ago)
Author:
apeatling
Message:

Added profile field filters
Added RSS feeds to site wide, personal and friend feeds
Small fixes on blog, member and group directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs.php

    r592 r601  
    249249                return false;
    250250               
    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            ); 
    252255        break;
    253256        case 'new_blog_post':
     
    262265                return false;
    263266
    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>';     
    265269            $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            );
    267275        break;
    268276        case 'new_blog_comment':
     
    277285
    278286            $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>';       
    280289            $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            );
    282295        break;
    283296    }
Note: See TracChangeset for help on using the changeset viewer.