Simple rssread widget

source rssread.php?rss=

<?php
$rss = $_GET['rss'];
$rss = simplexml_load_file($rss);
echo '<h1>'. $rss->channel->title . '</h1>';

foreach ($rss->channel->item as $item) {
   echo '<h2><a href="'. $item->link .'">' . $item->title . "</a></h2>";
   echo "<p>" . $item->pubDate . "</p>";
   echo "<p>" . $item->description . "</p>";
} 
?>
<html><head><style>
iframe{
height: 400px;
width: 200px;
}</style></head>
<body>
<iframe src="https://solarcz.eu/programy/php_kody/rssread.php?rss=https://www.flatpress.org/feed/rss2/" ></iframe>
<iframe id="test" src="https://solarcz.eu/programy/php_kody/rssread.php?rss=http://flatpress.cz/?x=feed:rss2"></iframe>
<iframe id="test1" src="https://solarcz.eu/programy/php_kody/rssread.php?rss=http://feeds.bbci.co.uk/news/england/rss.xml" ></iframe><br>
<iframe src="https://rss.app/embed/v1/feed/xeLKa4jg6jhRnw7V"style="border-style:none; width:610px; height:500px;"></iframe>
</body></html>






Edit RSS

edit /fp-interface/sharedtpls/rss.tpl

a) {$content|tag:the_content|truncate:256}
b) {$content|tag:the_content|strip_tags|strip|truncate:256:"...":true|escape}
rss_tag.png

změna formátu datumu

<pubDate>{'r'|date:$date}</pubDate>
<pubDate>{'d.m.Y'|date:$date}</pubDate>

RSS FlatPressForum widget
Widget create with https://rss.app from https://forum.flatpress.org/feed/rss2

<iframe width=”800” height=”500” src=”https://rss.app/embed/v1/feed/xeLKa4jg6jhRnw7V” frameborder=”0”></iframe>

Try Widget Preview: https://rssatom.de/r … tpress.org/feed/rss2
or create rss widget https://www.rssfeedwidget.com/
https://www.flatpress.org/feed/rss2/ - has big description with picture
https://forum.flatpress.org/feed/rss2 forum rss
http://feeds.bbci.co … news/england/rss.xml - look good
http://wordpress.org/news/feed/ - look good