Add author name to RSS entries

This commit is contained in:
Alex Cabal 2022-06-23 09:34:10 -05:00
parent afe7ebeb22
commit d75d847004

View file

@ -25,7 +25,7 @@ print("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
</image> </image>
<? foreach($entries as $entry){ ?> <? foreach($entries as $entry){ ?>
<item> <item>
<title><?= Formatter::ToPlainXmlText($entry->Title) ?></title> <title><?= Formatter::ToPlainXmlText($entry->Title) ?>, by <?= Formatter::ToPlainXmlText(strip_tags($entry->AuthorsHtml)) ?></title>
<link><?= SITE_URL . Formatter::ToPlainXmlText($entry->Url) ?></link> <link><?= SITE_URL . Formatter::ToPlainXmlText($entry->Url) ?></link>
<description><?= Formatter::ToPlainXmlText($entry->Description) ?></description> <description><?= Formatter::ToPlainXmlText($entry->Description) ?></description>
<pubDate><?= $entry->Timestamp->format('r') ?></pubDate> <pubDate><?= $entry->Timestamp->format('r') ?></pubDate>