mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 17:45:40 +03:00
[AtomFormat] Remove enclosures
This feature was implemented for AtomFormat only and implemented by no bridge other than DemoBridge.
This commit is contained in:
parent
bb49aef187
commit
0663c9507f
2 changed files with 1 additions and 12 deletions
|
@ -7,7 +7,7 @@ class DemoBridge extends BridgeAbstract{
|
|||
$this->name = "DemoBridge";
|
||||
$this->uri = "http://github.com/sebsauvage/rss-bridge";
|
||||
$this->description = "Bridge used for demos";
|
||||
$this->update = "2015-11-03";
|
||||
$this->update = "2016-08-08";
|
||||
|
||||
$this->parameters['testCheckbox'] =
|
||||
'[
|
||||
|
@ -59,7 +59,6 @@ class DemoBridge extends BridgeAbstract{
|
|||
$item->content = "Awesome content !";
|
||||
$item->id = "Lalala";
|
||||
$item->uri = "http://test.test/test";
|
||||
$item->enclosures[] = "http://www.ardmediathek.de/ard/servlet/image/00/32/68/18/38/1135274624/16x9/960";
|
||||
|
||||
$this->items[] = $item;
|
||||
|
||||
|
|
|
@ -36,15 +36,6 @@ class AtomFormat extends FormatAbstract{
|
|||
// We prevent content from closing the CDATA too early.
|
||||
$entryContent = is_null($data->content) ? '' : '<![CDATA[' . $this->sanitizeHtml(str_replace(']]>','',$data->content)) . ']]>';
|
||||
|
||||
// We generate a list of the enclosure links
|
||||
$entryEnclosures = "";
|
||||
|
||||
foreach($data->enclosures as $enclosure) {
|
||||
|
||||
$entryEnclosures .= "<link rel=\"enclosure\" href=\"".$enclosure."\"></link>";
|
||||
|
||||
}
|
||||
|
||||
$entries .= <<<EOD
|
||||
|
||||
<entry>
|
||||
|
@ -57,7 +48,6 @@ class AtomFormat extends FormatAbstract{
|
|||
<id>{$entryUri}</id>
|
||||
<updated>{$entryTimestamp}</updated>
|
||||
<content type="html">{$entryContent}</content>
|
||||
{$entryEnclosures}
|
||||
</entry>
|
||||
|
||||
EOD;
|
||||
|
|
Loading…
Reference in a new issue