diff --git a/lib/ajax.php b/lib/ajax.php index 1e43d4f6..e1a5ee30 100644 --- a/lib/ajax.php +++ b/lib/ajax.php @@ -29,16 +29,14 @@ if ($action == "newsfeed") { $news = simplexml_load_file('http://froxlor.org/feed.rss.php', null, LIBXML_NOCDATA); if ($news !== false) { - $json = array(); for ($i = 0; $i < 3; $i++) { $item = $news->channel->item[$i]; - $json[] = array( - 'title'=> (string)$item->title, - 'url'=> (string)$item->link, - 'content' => preg_replace("/[\r\n]+/", "", strip_tags($item->description)) - ); - echo "
link . "\" target=\"_blank\">" . (string)$item->title . "" . preg_replace("/[\r\n]+/", "", strip_tags($item->description)) . "
"; + $title = (string)$item->title; + $link = (string)$item->link; + $content = preg_replace("/[\r\n]+/", "", strip_tags($item->description)); + + echo "
" . $title . "" . $content . "
"; } } else { echo ""; diff --git a/templates/Sparkle/assets/css/main.css b/templates/Sparkle/assets/css/main.css index 06a40fe7..4fd8180f 100644 --- a/templates/Sparkle/assets/css/main.css +++ b/templates/Sparkle/assets/css/main.css @@ -955,6 +955,12 @@ label.nobr { .newsitem a { color: #333; } +.newsitem a:hover { + text-decoration: none; +} +.newsitem a:hover b { + text-decoration: underline; +} .newsitem b { margin-right: 15px; }