Include image in RSS, related PR https://github.com/bludit/bludit/pull/1326
This commit is contained in:
parent
d2f7c79cf6
commit
272e5d3b5b
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,9 @@ class pluginRSS extends Plugin {
|
|||
$xml .= '<item>';
|
||||
$xml .= '<title>'.$page->title().'</title>';
|
||||
$xml .= '<link>'.$this->encodeURL($page->permalink()).'</link>';
|
||||
if ($page->coverImage()) {
|
||||
$xml .= '<image>'.$page->coverImage().'</image>';
|
||||
}
|
||||
$xml .= '<description>'.Sanitize::html($page->contentBreak()).'</description>';
|
||||
$xml .= '<pubDate>'.date(DATE_RSS,strtotime($page->getValue('dateRaw'))).'</pubDate>';
|
||||
$xml .= '<guid isPermaLink="false">'.$page->uuid().'</guid>';
|
||||
|
|
Loading…
Reference in a new issue