From ba18648b6d58625a9e2ca2397e00048b0c10e58e Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 7 Jun 2010 13:07:49 +0000 Subject: blog tags will not display the class if no tags exist git-svn-id: http://code.elgg.org/elgg/trunk@6375 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/object/blog.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mod/blog/views/default/object/blog.php') diff --git a/mod/blog/views/default/object/blog.php b/mod/blog/views/default/object/blog.php index 41574e310..8fb7d3c59 100644 --- a/mod/blog/views/default/object/blog.php +++ b/mod/blog/views/default/object/blog.php @@ -26,7 +26,11 @@ $body = autop($blog->description); $owner_icon = elgg_view('profile/icon', array('entity' => $owner, 'size' => 'tiny')); $owner_blog_link = "username\">{$owner->name}"; $author_text = sprintf(elgg_echo('blog:author_by_line'), $owner_blog_link); -$tags = elgg_view('output/tags', array('tags' => $blog->tags)); +if($blog->tags){ + $tags = "

" . elgg_view('output/tags', array('tags' => $blog->tags)) . "

"; +}else{ + $tags = ""; +} $date = friendly_time($blog->publish_date); // The "on" status changes for comments, so best to check for !Off @@ -89,7 +93,7 @@ echo <<<___END $categories $comments_link

-

$tags

+ $tags $body @@ -111,7 +115,7 @@ ___END; $categories $comments_link

-

$tags

+ $tags

$excerpt

-- cgit v1.2.3