aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 22:34:13 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 22:34:13 +0000
commite495d88fe96e6c73d6ed261fcdda332073052438 (patch)
tree27679d030fed8ad0377e0b7c2e098ff795ff3b54
parent799c8aa9e7a9ead3744ba8268d0f06bf0af6169e (diff)
downloadelgg-e495d88fe96e6c73d6ed261fcdda332073052438.tar.gz
elgg-e495d88fe96e6c73d6ed261fcdda332073052438.tar.bz2
Added blog author link by line on blog list.
git-svn-id: http://code.elgg.org/elgg/trunk@6195 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/blog/languages/en.php3
-rw-r--r--mod/blog/views/default/object/blog.php6
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