From: Andrew Dolgov Date: Fri, 10 Aug 2007 16:53:05 +0000 (+0100) Subject: unify 'all tags' popup X-Git-Tag: 1.2.14~81 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e75441432e0ca67b4a474981fa17a26b37c125ad;p=tt-rss.git unify 'all tags' popup --- 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"]);