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:
@@ -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')) {
|
||||
|
Reference in New Issue
Block a user