trying 'news aggregator'
diff --git a/news/index.php b/news/index.php
index 9f0cc28..ab87dbe 100644
--- a/news/index.php
+++ b/news/index.php
@@ -35,11 +35,22 @@
{$incubation}
EOHTML;
+
+ $html .= '<dl class="news">';
foreach (glob(getcwd() . '/*.news') as $file) {
- $html = $html . file_get_contents($file);
+ $xml = simplexml_load_file($file);
+
+ $html .= '<dt><i class="fa fa-fw ' . $xml->icon[0] . ' bullet"></i>';
+ $html .= $xml->title[0];
+ $html .= '</dt>';
+ $html .= '<dd>' . $xml->content[0];
+ $html .= '<div class="date">' . date("y/m/d", filemtime($file)) . '</div>';
+ $html .= '</dd>';
}
+ $html .= '</dl>';
+
# Generate the web page
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>
diff --git a/news/jruby.news b/news/jruby.news
index 32d4714..42768f1 100644
--- a/news/jruby.news
+++ b/news/jruby.news
@@ -1 +1,6 @@
-<i>JRuby support</i>
\ No newline at end of file
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<news>
+ <title>JRuby engine preview</title>
+ <icon>Der Teaser, eine kurze Beschreibung</icon>
+ <content>Implemented draft of a Groovy engine. You may find the update site location in the <a href="/ease/download">download section</a>.</content>
+</news>
\ No newline at end of file