From 66a251f901306b8dd5bd856efc75681d68880261 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 17 Nov 2007 11:49:13 +0100 Subject: [PATCH] add some cool unicode ellipsis characters (closes #167) --- feedlist.js | 8 ++++---- functions.php | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/feedlist.js b/feedlist.js index dfe400850..577357b4d 100644 --- a/feedlist.js +++ b/feedlist.js @@ -165,12 +165,12 @@ function toggleCollapseCat_af(effect) { var elem = effect.element; var cat = elem.id.replace("FCATLIST-", ""); var cap = document.getElementById("FCAP-" + cat); - + if (Element.visible(elem)) { - cap.innerHTML = cap.innerHTML.replace("...", ""); + cap.innerHTML = cap.innerHTML.replace("…", ""); } else { - if (cap.innerHTML.lastIndexOf("...") != cap.innerHTML.length-3) { - cap.innerHTML = cap.innerHTML + "..."; + if (cap.innerHTML.lastIndexOf("…") != cap.innerHTML.length-3) { + cap.innerHTML = cap.innerHTML + "…"; } } diff --git a/functions.php b/functions.php index 4a6613a60..613641b31 100644 --- a/functions.php +++ b/functions.php @@ -1667,7 +1667,7 @@ function truncate_string($str, $max_len) { 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 { return $str; } @@ -3745,7 +3745,7 @@ if ($hidden) { $holder_style = "display:none;"; - $ellipsis = "..."; + $ellipsis = "…"; } else { $holder_style = ""; $ellipsis = ""; @@ -4034,7 +4034,7 @@ if ($collapsed == "t" || $collapsed == "1") { $holder_class = "feedCatHolder"; $holder_style = "display:none;"; - $ellipsis = "..."; + $ellipsis = "…"; } else { $holder_class = "feedCatHolder"; $holder_style = ""; @@ -4346,7 +4346,7 @@ $tag_str = "$tag, "; if ($num_tags == $tag_limit) { - $tags_str .= "..."; + $tags_str .= "…"; } else if ($num_tags < $tag_limit) { $tags_str .= $tag_str; @@ -4357,7 +4357,7 @@ $tags_str = preg_replace("/, $/", "", $tags_str); $f_tags_str = preg_replace("/, $/", "", $f_tags_str); - $all_tags_div = "...
All Tags: $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 @@ -4746,14 +4746,14 @@ if ($num_tags < 5) { $tags_str .= "$tag, "; } else if ($num_tags == 5) { - $tags_str .= "..."; + $tags_str .= "…"; } } $tags_str = preg_replace("/, $/", "", $tags_str); $full_tags_str = preg_replace("/, $/", "", $full_tags_str); - $all_tags_div = "...
All Tags: $full_tags_str
"; + $all_tags_div = "
All Tags: $full_tags_str
"; $tags_str = preg_replace("/\.\.\.$/", "$all_tags_div", $tags_str);