mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 23:41:29 +00:00
generate_syndicated_feed: enable support for notes
This commit is contained in:
@@ -3678,8 +3678,15 @@
|
|||||||
$tpl->setVariable('ARTICLE_TITLE', htmlspecialchars($line['title']));
|
$tpl->setVariable('ARTICLE_TITLE', htmlspecialchars($line['title']));
|
||||||
$tpl->setVariable('ARTICLE_EXCERPT',
|
$tpl->setVariable('ARTICLE_EXCERPT',
|
||||||
truncate_string(strip_tags($line["content_preview"]), 100, '...'));
|
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_UPDATED', date('c', strtotime($line["updated"])));
|
||||||
$tpl->setVariable('ARTICLE_AUTHOR', htmlspecialchars($line['author']));
|
$tpl->setVariable('ARTICLE_AUTHOR', htmlspecialchars($line['author']));
|
||||||
|
|||||||
Reference in New Issue
Block a user