summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-07-31 16:41:06 +0400
committerAndrew Dolgov <[email protected]>2013-07-31 16:41:06 +0400
commit34dad844147c5ee46cbdba310a36173244a0ff11 (patch)
tree97d3e44f9874f13211293063c7fd3ee8e056a6d5 /classes/feeds.php
parent3684074387fe28e6c96037d5fdade7854eb0247e (diff)
support term highlighting in cdm title
Diffstat (limited to 'classes/feeds.php')
-rw-r--r--classes/feeds.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 874f76788..9aa75bbe8 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -561,6 +561,13 @@ class Feeds extends Handler_Protected {
$reply['content'] .= "</div>";
+ if ($highlight_words && count($highlight_words > 0)) {
+ foreach ($highlight_words as $word) {
+ $line["title"] = preg_replace("/(\Q$word\E)/i",
+ "<span class=\"highlight\">$1</span>", $line["title"]);
+ }
+ }
+
$reply['content'] .= "<span id=\"RTITLE-$id\"
onclick=\"return cdmClicked(event, $id);\"
class=\"titleWrap $hlc_suffix\">