[MrssFormat] Remove media:title and media:content
Both items only make sense in combination with media:content. This subsequently eradicates $item->thumbnailUri.
This commit is contained in:
parent
1af6008d65
commit
f3eefab475
2 changed files with 0 additions and 5 deletions
|
@ -112,7 +112,6 @@ The `Item` class is used to store parameter that are collected in the [`collectD
|
|||
|
||||
```PHP
|
||||
$item->uri // URI to reach the subject ("http://...")
|
||||
$item->thumbnailUri // URI for the thumbnail ("http://...")
|
||||
$item->title // Title of the item
|
||||
$item->name // Name of the item
|
||||
$item->timestamp // Timestamp of the item in numeric format (use strtotime)
|
||||
|
@ -138,7 +137,6 @@ The following list provides an overview of the parameters used by the other form
|
|||
Parameter | ATOM | HTML | (M)RSS
|
||||
----------|------|------|-------
|
||||
`uri`|X|X|X
|
||||
`thumbnailUri`|||X
|
||||
`title`|X|X|X
|
||||
`name`|X||
|
||||
`timestamp`|X|X|X
|
||||
|
|
|
@ -25,7 +25,6 @@ class MrssFormat extends FormatAbstract{
|
|||
$itemTitle = strip_tags(is_null($data->title) ? '' : $data->title);
|
||||
$itemUri = is_null($data->uri) ? '' : $data->uri;
|
||||
$itemAuthor = is_null($data->author) ? '' : $data->author;
|
||||
$itemThumbnailUri = is_null($data->thumbnailUri) ? '' : $data->thumbnailUri;
|
||||
$itemTimestamp = is_null($data->timestamp) ? '' : date(DATE_RFC2822, $data->timestamp);
|
||||
// We prevent content from closing the CDATA too early.
|
||||
$itemContent = is_null($data->content) ? '' : htmlspecialchars($this->sanitizeHtml(str_replace(']]>','',$data->content)));
|
||||
|
@ -39,8 +38,6 @@ class MrssFormat extends FormatAbstract{
|
|||
<pubDate>{$itemTimestamp}</pubDate>
|
||||
<description>{$itemContent}</description>
|
||||
<author>{$itemAuthor}</author>
|
||||
<media:title>{$itemTitle}</media:title>
|
||||
<media:thumbnail url="{$itemThumbnailUri}" />
|
||||
</item>
|
||||
|
||||
EOD;
|
||||
|
|
Loading…
Reference in a new issue