]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added blog author link by line on blog list.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 22:34:13 +0000 (22:34 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 22:34:13 +0000 (22:34 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6195 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/blog/languages/en.php
mod/blog/views/default/object/blog.php

index dc084e613a4878ef91207b002190f806f1b5553f..de36dc5d261c7bdedebe76279bbe8134290ad5f1 100644 (file)
@@ -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',
index bb109a21e205fe06a1c1b37fed5b598342a8523d..02f74b95ea99ad351ab44d9988fc651651223956 100644 (file)
@@ -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