mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-18 08:09:56 +03:00
[AssociatedPressNewsBridge] fix checks (#2608)
This commit is contained in:
parent
8f9314947b
commit
2c50bbae95
1 changed files with 2 additions and 2 deletions
|
@ -200,14 +200,14 @@ class AssociatedPressNewsBridge extends BridgeAbstract {
|
||||||
|
|
||||||
$div->outertext = <<<EOD
|
$div->outertext = <<<EOD
|
||||||
<figure><img loading="lazy" src="{$mediaUrl}"/><figcaption>{$mediaCaption}</figcaption></figure>
|
<figure><img loading="lazy" src="{$mediaUrl}"/><figcaption>{$mediaCaption}</figcaption></figure>
|
||||||
EOD;
|
EOD;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($media['type'] === 'YouTube') {
|
if ($media['type'] === 'YouTube') {
|
||||||
$div->outertext = <<<EOD
|
$div->outertext = <<<EOD
|
||||||
<iframe src="https://www.youtube.com/embed/{$media['externalId']}" width="560" height="315">
|
<iframe src="https://www.youtube.com/embed/{$media['externalId']}" width="560" height="315">
|
||||||
</iframe>
|
</iframe>
|
||||||
EOD;
|
EOD;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue