aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views
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 /mod/blog/views
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
Diffstat (limited to 'mod/blog/views')
-rw-r--r--mod/blog/views/default/object/blog.php6
1 files changed, 5 insertions, 1 deletions
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