summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/feeds.php6
-rw-r--r--js/PluginHost.js1
-rw-r--r--js/viewfeed.js2
3 files changed, 6 insertions, 3 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 83736925c..33f239ee6 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -361,7 +361,7 @@ class Feeds extends Handler_Protected {
make_local_datetime($line["date_entered"], false));
if (get_pref('SHOW_CONTENT_PREVIEW')) {
- $content_preview = truncate_string(strip_tags($line["content_preview"]),
+ $content_preview = " — " . truncate_string(strip_tags($line["content_preview"]),
250);
}
@@ -456,7 +456,7 @@ class Feeds extends Handler_Protected {
if (get_pref('SHOW_CONTENT_PREVIEW')) {
if ($content_preview) {
- $reply['content'] .= "<span class=\"contentPreview\"> - $content_preview</span>";
+ $reply['content'] .= "<span class=\"contentPreview\">$content_preview</span>";
}
}
@@ -575,7 +575,7 @@ class Feeds extends Handler_Protected {
$excerpt_hidden = "style=\"display : none\"";
$reply['content'] .= "<span $excerpt_hidden
- id=\"CEXC-$id\" class=\"cdmExcerpt\"> - $content_preview</span>";
+ id=\"CEXC-$id\" class=\"cdmExcerpt\">$content_preview</span>";
$reply['content'] .= "</span>";
if (!get_pref('VFEED_GROUP_BY_FEED')) {
diff --git a/js/PluginHost.js b/js/PluginHost.js
index 668d215f9..ae89ba481 100644
--- a/js/PluginHost.js
+++ b/js/PluginHost.js
@@ -10,6 +10,7 @@ var PluginHost = {
HOOK_ARTICLE_COLLAPSED: 7,
HOOK_PARAMS_LOADED: 8,
HOOK_RUNTIME_INFO_LOADED: 9,
+ HOOK_FLOATING_TITLE: 10,
hooks: [],
register: function (name, callback) {
if (typeof(this.hooks[name]) == 'undefined')
diff --git a/js/viewfeed.js b/js/viewfeed.js
index 1c5811fe7..5875a9e48 100644
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -2226,6 +2226,8 @@ function updateFloatingTitle() {
if (child.id != $("floatingTitle").getAttribute("rowid")) {
$("floatingTitle").setAttribute("rowid", child.id);
$("floatingTitle").innerHTML = header.innerHTML;
+
+ PluginHost.run(PluginHost.HOOK_FLOATING_TITLE, child);
}
if (child.offsetTop < hf.scrollTop - header.offsetHeight - 100 &&