summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-10 17:53:05 +0100
committerAndrew Dolgov <[email protected]>2007-08-10 17:53:05 +0100
commite75441432e0ca67b4a474981fa17a26b37c125ad (patch)
tree1caf8792cd32de9edaedb9f807abef7347fece4c /functions.php
parent675a578155493fd594692682d6c4e98327b9faea (diff)
unify 'all tags' popup
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index 7c162be12..cd30b4560 100644
--- a/functions.php
+++ b/functions.php
@@ -3731,7 +3731,8 @@
$tag_str = "<a href=\"javascript:viewfeed('$tag_escaped')\">$tag</a>, ";
if ($num_tags == 6) {
- $tags_str .= "<a href=\"javascript:showBlockElement('allEntryTags')\">...</a>";
+ $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 = "<span class='cdmAllTagsCtr'>...<div class='cdmAllTags'>All Tags: $f_tags_str</div></span>";
+ $tags_str = preg_replace("/\.\.\.$/", "$all_tags_div", $tags_str);
+
if (!$entry_comments) $entry_comments = "&nbsp;"; # placeholder
if (!$tags_str) $tags_str = '<span class="tagList">'.__('no tags').'</span>';
@@ -3755,7 +3759,7 @@
print "<div class=\"postIcon\">" . $feed_icon . "</div>";
print "<div class=\"postContent\">";
- print "<div id=\"allEntryTags\">".__('Tags:')." $f_tags_str</div>";
+ #print "<div id=\"allEntryTags\">".__('Tags:')." $f_tags_str</div>";
$line["content"] = sanitize_rss($link, $line["content"]);