]> git.wh0rd.org - tt-rss.git/commitdiff
generate_syndicated_feed: enable support for notes
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 4 Apr 2011 09:36:21 +0000 (13:36 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 4 Apr 2011 09:36:21 +0000 (13:36 +0400)
functions.php

index 26a9736796386e1f69d0234928ecc3bcaddd8f90..67edc5789b785666824c6b9a6052a21b1f2abd5c 100644 (file)
                        $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']));