aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-07 13:07:49 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-06-07 13:07:49 +0000
commitba18648b6d58625a9e2ca2397e00048b0c10e58e (patch)
tree1459a6a7c9fe092925e0d078f307ad473cc5d159
parent188431d465338fe4b8c4d2b1ccce8cbd8cd4281e (diff)
downloadelgg-ba18648b6d58625a9e2ca2397e00048b0c10e58e.tar.gz
elgg-ba18648b6d58625a9e2ca2397e00048b0c10e58e.tar.bz2
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
-rw-r--r--mod/blog/views/default/object/blog.php10
1 files changed, 7 insertions, 3 deletions
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 = "<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));
+if($blog->tags){
+ $tags = "<p class=\"tags\">" . elgg_view('output/tags', array('tags' => $blog->tags)) . "</p>";
+}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
</p>
- <p class="tags">$tags</p>
+ $tags
<span class="body">$body</span>
</div>
</div>
@@ -111,7 +115,7 @@ ___END;
$categories
$comments_link
</p>
- <p class="tags">$tags</p>
+ $tags
<p>$excerpt</p>
</div>
</div>