add some cool unicode ellipsis characters (closes #167)

This commit is contained in:
Andrew Dolgov 2007-11-17 11:49:13 +01:00
parent aa6d1e9766
commit 66a251f901
2 changed files with 11 additions and 11 deletions

View File

@ -167,10 +167,10 @@ function toggleCollapseCat_af(effect) {
var cap = document.getElementById("FCAP-" + cat); var cap = document.getElementById("FCAP-" + cat);
if (Element.visible(elem)) { if (Element.visible(elem)) {
cap.innerHTML = cap.innerHTML.replace("...", ""); cap.innerHTML = cap.innerHTML.replace("", "");
} else { } else {
if (cap.innerHTML.lastIndexOf("...") != cap.innerHTML.length-3) { if (cap.innerHTML.lastIndexOf("") != cap.innerHTML.length-3) {
cap.innerHTML = cap.innerHTML + "..."; cap.innerHTML = cap.innerHTML + "";
} }
} }

View File

@ -1667,7 +1667,7 @@
function truncate_string($str, $max_len) { function truncate_string($str, $max_len) {
if (mb_strlen($str, "utf-8") > $max_len - 3) { if (mb_strlen($str, "utf-8") > $max_len - 3) {
return mb_substr($str, 0, $max_len, "utf-8") . "..."; return mb_substr($str, 0, $max_len, "utf-8") . "…";
} else { } else {
return $str; return $str;
} }
@ -3745,7 +3745,7 @@
if ($hidden) { if ($hidden) {
$holder_style = "display:none;"; $holder_style = "display:none;";
$ellipsis = "..."; $ellipsis = "";
} else { } else {
$holder_style = ""; $holder_style = "";
$ellipsis = ""; $ellipsis = "";
@ -4034,7 +4034,7 @@
if ($collapsed == "t" || $collapsed == "1") { if ($collapsed == "t" || $collapsed == "1") {
$holder_class = "feedCatHolder"; $holder_class = "feedCatHolder";
$holder_style = "display:none;"; $holder_style = "display:none;";
$ellipsis = "..."; $ellipsis = "";
} else { } else {
$holder_class = "feedCatHolder"; $holder_class = "feedCatHolder";
$holder_style = ""; $holder_style = "";
@ -4346,7 +4346,7 @@
$tag_str = "<a href=\"javascript:viewfeed('$tag_escaped')\">$tag</a>, "; $tag_str = "<a href=\"javascript:viewfeed('$tag_escaped')\">$tag</a>, ";
if ($num_tags == $tag_limit) { if ($num_tags == $tag_limit) {
$tags_str .= "..."; $tags_str .= "&hellip;";
} else if ($num_tags < $tag_limit) { } else if ($num_tags < $tag_limit) {
$tags_str .= $tag_str; $tags_str .= $tag_str;
@ -4357,7 +4357,7 @@
$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>"; $all_tags_div = "<span class='cdmAllTagsCtr'>&hellip;<div class='cdmAllTags'>All Tags: $f_tags_str</div></span>";
$tags_str = preg_replace("/\.\.\.$/", "$all_tags_div", $tags_str); $tags_str = preg_replace("/\.\.\.$/", "$all_tags_div", $tags_str);
if (!$entry_comments) $entry_comments = "&nbsp;"; # placeholder if (!$entry_comments) $entry_comments = "&nbsp;"; # placeholder
@ -4746,14 +4746,14 @@
if ($num_tags < 5) { if ($num_tags < 5) {
$tags_str .= "<a href=\"javascript:viewfeed('$tag')\">$tag</a>, "; $tags_str .= "<a href=\"javascript:viewfeed('$tag')\">$tag</a>, ";
} else if ($num_tags == 5) { } else if ($num_tags == 5) {
$tags_str .= "..."; $tags_str .= "&hellip;";
} }
} }
$tags_str = preg_replace("/, $/", "", $tags_str); $tags_str = preg_replace("/, $/", "", $tags_str);
$full_tags_str = preg_replace("/, $/", "", $full_tags_str); $full_tags_str = preg_replace("/, $/", "", $full_tags_str);
$all_tags_div = "<span class='cdmAllTagsCtr'>...<div class='cdmAllTags'>All Tags: $full_tags_str</div></span>"; $all_tags_div = "<span class='cdmAllTagsCtr'>&hellip;<div class='cdmAllTags'>All Tags: $full_tags_str</div></span>";
$tags_str = preg_replace("/\.\.\.$/", "$all_tags_div", $tags_str); $tags_str = preg_replace("/\.\.\.$/", "$all_tags_div", $tags_str);