unify 'all tags' popup
This commit is contained in:
parent
675a578155
commit
e75441432e
|
@ -3731,7 +3731,8 @@
|
||||||
$tag_str = "<a href=\"javascript:viewfeed('$tag_escaped')\">$tag</a>, ";
|
$tag_str = "<a href=\"javascript:viewfeed('$tag_escaped')\">$tag</a>, ";
|
||||||
|
|
||||||
if ($num_tags == 6) {
|
if ($num_tags == 6) {
|
||||||
$tags_str .= "<a href=\"javascript:showBlockElement('allEntryTags')\">...</a>";
|
$tags_str .= "...";
|
||||||
|
|
||||||
} else if ($num_tags < 6) {
|
} else if ($num_tags < 6) {
|
||||||
$tags_str .= $tag_str;
|
$tags_str .= $tag_str;
|
||||||
}
|
}
|
||||||
|
@ -3741,6 +3742,9 @@
|
||||||
$tags_str = preg_replace("/, $/", "", $tags_str);
|
$tags_str = preg_replace("/, $/", "", $tags_str);
|
||||||
$f_tags_str = preg_replace("/, $/", "", $f_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 = " "; # placeholder
|
if (!$entry_comments) $entry_comments = " "; # placeholder
|
||||||
|
|
||||||
if (!$tags_str) $tags_str = '<span class="tagList">'.__('no tags').'</span>';
|
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=\"postIcon\">" . $feed_icon . "</div>";
|
||||||
print "<div class=\"postContent\">";
|
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"]);
|
$line["content"] = sanitize_rss($link, $line["content"]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue