mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +02:00
[BridgeAbstract] Mention 'enclosure' element
@@ -148,11 +148,12 @@ $item['title'] // Title of the item
|
|||||||
$item['timestamp'] // Timestamp of the item in numeric format (use `strtotime`)
|
$item['timestamp'] // Timestamp of the item in numeric format (use `strtotime`)
|
||||||
$item['author'] // Name of the author
|
$item['author'] // Name of the author
|
||||||
$item['content'] // Content in HTML format
|
$item['content'] // Content in HTML format
|
||||||
|
$item['enclosure'] // URI to an attachment (picture, file, etc...)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Item usage
|
### Item usage
|
||||||
|
|
||||||
Which items are necessary depends on the output format. There are two formats that support literally any property in the `$item`:
|
Which items are possible depends on the output format used. There are two formats that support literally any property in the `$item`:
|
||||||
|
|
||||||
* JSON
|
* JSON
|
||||||
* Plaintext
|
* Plaintext
|
||||||
@@ -166,6 +167,7 @@ Parameter | ATOM | HTML | (M)RSS
|
|||||||
`timestamp`|X|X|X
|
`timestamp`|X|X|X
|
||||||
`author`|X|X|X
|
`author`|X|X|X
|
||||||
`content`|X|X|X
|
`content`|X|X|X
|
||||||
|
`enclosure`|X|X|X
|
||||||
|
|
||||||
## The `getName` function
|
## The `getName` function
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user