1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-27 10:04:53 +02:00

refactor/fix: css organization and error rendering (#3117)

* fix: php notice

* refactor/feat: merge HtmlFormat.css into style.css

Also improve ux of error rendering.

* fix: center-align footer text
This commit is contained in:
Dag
2022-10-29 10:46:37 +02:00
committed by GitHub
parent 1b45a53402
commit 23f8c81646
15 changed files with 445 additions and 568 deletions

View File

@@ -120,11 +120,14 @@ class NovayaGazetaEuropeBridge extends BridgeAbstract
case 'text/quote':
return "<figure><blockquote>{$datum->data}</blockquote></figure><br>";
case 'embed/native':
$desc = $datum->link;
if (property_exists($datum, 'caption')) {
$desc = $datum->caption;
if (isset($datum->link)) {
$desc = $datum->link;
if (isset($datum->caption)) {
$desc = $datum->caption;
}
return sprintf('<p><a href="%s">%s</a></p>', $datum->link, $desc);
}
return "<p><a link=\"{$datum->link}\">{$desc}</a></p>";
return '';
case 'text/framed':
$res = '';
if (property_exists($datum, 'typeDisplay')) {