customized rss forum-news display

- hide quotes
- smaller headers
- fixed font size
- paragraph formatting
This commit is contained in:
following
2013-03-16 09:46:41 +01:00
parent a795ead0c4
commit 35e85dd47e
3 changed files with 19 additions and 4 deletions
+4 -2
View File
@@ -25,6 +25,7 @@ class RSSParser {
// output
$html = '<div class="buffer" style="width: 500px;height: 2px;">&nbsp;</div>'."\n";
$html .= '<div class="newsblock">';
// get xml-data
$data = file_get_contents($url);
@@ -50,10 +51,10 @@ class RSSParser {
} else {
// add html
$html .= '<p class="content-title-noshade-size2" style="display: inline;">'."\n";
$html .= '<p class="content-title-noshade-size15" style="display: inline;">'."\n";
$html .= strftime('%e. %B %Y',strtotime($item->pubDate)).' - '. $item->title;
$html .= '</p> <p style="line-height: 1.6em;display: inline;">&emsp;[<b><a class="link" href="'.$item->link.'">mehr...</a></b>]</p>'."\n";
$html .= '<p>'.$item->description.'</p>'."\n";
$html .= '<div class="rsstext">'.$item->description.'</div>'."\n";
}
// increment counter
@@ -61,6 +62,7 @@ class RSSParser {
}
// finish html
$html .= "</div>";
$html .= '<div class="buffer" style="width: 500px;">&nbsp;</div>'."\n";
}
catch(Exception $e) {