summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-04 13:36:21 +0400
committerAndrew Dolgov <[email protected]>2011-04-04 13:36:21 +0400
commit9b1a708165dfa2fbc6693a69909b4f0e361477dd (patch)
treead6a3024ffba21d7846fc921778d0e3813301e34 /functions.php
parent20e43935fca9d1fa8838782cf714c40cc286acbc (diff)
generate_syndicated_feed: enable support for notes
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index 26a973679..67edc5789 100644
--- a/functions.php
+++ b/functions.php
@@ -3678,8 +3678,15 @@
$tpl->setVariable('ARTICLE_TITLE', htmlspecialchars($line['title']));
$tpl->setVariable('ARTICLE_EXCERPT',
truncate_string(strip_tags($line["content_preview"]), 100, '...'));
- $tpl->setVariable('ARTICLE_CONTENT',
- sanitize_rss($link, $line["content_preview"], false, $owner_uid));
+
+ $content = sanitize_rss($link, $line["content_preview"], false, $owner_uid);
+
+ if ($line['note']) {
+ $content = "<div style=\"$note_style\">" . $line['note'] . "</div>" .
+ $content;
+ }
+
+ $tpl->setVariable('ARTICLE_CONTENT', $content);
$tpl->setVariable('ARTICLE_UPDATED', date('c', strtotime($line["updated"])));
$tpl->setVariable('ARTICLE_AUTHOR', htmlspecialchars($line['author']));