]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Updated Likes on Blog and Videolist single entity pages
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 11 Apr 2010 23:04:28 +0000 (23:04 +0000)
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 11 Apr 2010 23:04:28 +0000 (23:04 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5685 36083f99-b078-4883-b0ff-0f9b5a30f544

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

index 4b72cdc47688c88c64cb1c85013b85bfb0fbb305..9d5a0f09e0f5629361460e05e3af9e4d82315c2b 100644 (file)
@@ -57,7 +57,9 @@ if ($blog->canEdit()) {
 }
 
        // include a view for plugins to extend
-       $edit = elgg_view("blogs/options", array("object_type" => 'blog')) .$edit;
+       $edit = elgg_view("blogs/options", array("object_type" => 'blog')) .
+                       elgg_view_likes($blog) . // include likes
+                       $edit;
 
 if ($full) {
        if ($blog->comments_on != 'Off') {
@@ -65,8 +67,6 @@ if ($full) {
        } else {
                $comments = '';
        }
-       $like = elgg_view_likes($blog);
-       $owner_title = sprintf(elgg_echo('blog:title:user_blogs'), $owner->name);
 
 echo <<<___END
 <div class="blogpost clearfloat">
@@ -87,7 +87,6 @@ echo <<<___END
                <span class="body">$body</span>
        </div>
 </div>
-$like
 $comments
 
 ___END;