From e75441432e0ca67b4a474981fa17a26b37c125ad Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 10 Aug 2007 17:53:05 +0100 Subject: [PATCH] unify 'all tags' popup --- functions.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 7c162be1..cd30b456 100644 --- a/functions.php +++ b/functions.php @@ -3731,7 +3731,8 @@ $tag_str = "$tag, "; if ($num_tags == 6) { - $tags_str .= "..."; + $tags_str .= "..."; + } else if ($num_tags < 6) { $tags_str .= $tag_str; } @@ -3741,6 +3742,9 @@ $tags_str = preg_replace("/, $/", "", $tags_str); $f_tags_str = preg_replace("/, $/", "", $f_tags_str); + $all_tags_div = "...
All Tags: $f_tags_str
"; + $tags_str = preg_replace("/\.\.\.$/", "$all_tags_div", $tags_str); + if (!$entry_comments) $entry_comments = " "; # placeholder if (!$tags_str) $tags_str = ''.__('no tags').''; @@ -3755,7 +3759,7 @@ print "
" . $feed_icon . "
"; print "
"; - print "
".__('Tags:')." $f_tags_str
"; + #print "
".__('Tags:')." $f_tags_str
"; $line["content"] = sanitize_rss($link, $line["content"]); -- 2.39.5