diff --git a/webroot/widgets/RSSFeed/RSSFeed.php b/webroot/widgets/RSSFeed/RSSFeed.php index e33db497168001fc7bd1a7b3f7f1d298e50f8cb2..644259a7d128d17bd35d1e0da7536e38479a52ad 100644 --- a/webroot/widgets/RSSFeed/RSSFeed.php +++ b/webroot/widgets/RSSFeed/RSSFeed.php @@ -8,7 +8,7 @@ class RSSFeed implements iWidget private $zeilen; public function __construct($width, $height){ - $this->zeilen = $height / 55; + $this->zeilen = $height / 64; //var_dump($this->zeilen); die(); } @@ -25,7 +25,7 @@ class RSSFeed implements iWidget } private function getRssFeed($url){ - $output = ''; + $output = '<div class="box">'; $counter = 0; define('MAGPIE_CACHE_DIR', 'cache'); define('MAGPIE_CACHE_AGE', '60'); @@ -34,18 +34,21 @@ class RSSFeed implements iWidget $num_items = 10; $rss = fetch_rss( $url ); $items = array_slice($rss->items, 0,$num_items); - $output .= "<img style=\"vertical-align: middle; width: 40px; height: 40px;\" src=\"widgets/RSSFeed/png/01_12.png\"> <span style=\"color: white\">".$rss->channel['title']."</span><br /><br />"; + $output .= "<img style=\"vertical-align: middle; width: 40px; height: 40px;\" src=\"widgets/RSSFeed/png/01_12.png\"> ".$rss->channel['title']."</h1><br /><br />"; } $output .= "<ul id='feed'>"; foreach ($items as $item){ $href = $item['link']; $title = $item['title']; - $output .= "<li><span style=\"font-size: 14px; color: #FFFFFF;\"><img align=\"bottom\" style=\"width: 20px; height: 20px;\" src=\"widgets/RSSFeed/png/".$this->getImage()."\" /> $title</span></li>"; + // Fix fuer die Warpzone + $title = str_replace('?n','\'n', $title); + $title = str_replace('n?','n\'', $title); + $output .= "<li><img align=\"bottom\" style=\"width: 20px; height: 20px;\" src=\"widgets/RSSFeed/png/".$this->getImage()."\" /><div><h2>$title</h2></div></li>"; if($counter > $this->zeilen) break; $counter++; } - $output .= "</ul>"; + $output .= "</ul></div>"; return $output; } }