diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/blog/languages/en.php | 3 | ||||
-rw-r--r-- | mod/blog/views/default/object/blog.php | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/mod/blog/languages/en.php b/mod/blog/languages/en.php index dc084e613..de36dc5d2 100644 --- a/mod/blog/languages/en.php +++ b/mod/blog/languages/en.php @@ -11,8 +11,9 @@ $english = array( 'blog:revisions' => 'Revisions', 'blog:archives' => 'Archives', 'blog:blog' => 'Blog', + 'blog:author_by_line' => 'By %s', 'item:object:blog' => 'Blogs', - + 'blog:title:user_blogs' => '%s\'s Blogs', 'blog:title:all_blogs' => 'All Site Blogs', 'blog:title:friends' => 'All Friends\' Blogs', diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php index bb109a21e..02f74b95e 100644 --- a/mod/blog/views/default/object/blog.php +++ b/mod/blog/views/default/object/blog.php @@ -23,7 +23,9 @@ $categories = elgg_view('categories/view', $vars); $excerpt = $blog->excerpt; $body = autop($blog->description); -$owner_icon = elgg_view("profile/icon",array('entity' => $owner, 'size' => 'tiny')); +$owner_icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'tiny')); +$owner_blog_link = "<a href=\"{$vars['url']}pg/blog/$owner->username\">{$owner->name}</a>"; +$author_text = sprintf(elgg_echo('blog:author_by_line'), $owner_blog_link); $tags = elgg_view('output/tags', array('tags' => $blog->tags)); $date = friendly_time($blog->publish_date); @@ -77,6 +79,7 @@ echo <<<___END <div class="entity_listing_info"> <div class="entity_metadata">$edit</div> <p class="entity_subtext"> + $author_text $date $categories $comments_link @@ -98,6 +101,7 @@ ___END; <div class="entity_metadata">$edit</div> <p class="entity_title">$linked_title</p> <p class="entity_subtext"> + $author_text $date $categories $comments_link |