<?php
// News
// =======================================================
$news[0] = array(
"LWJGL Wiki",
"One of LWJGL's shortcommings has always been the lack of good tutorials and examples. Well all this ends now! We have setup a wiki, and all registered users may add new articles, FAQ entries and more. So please start filling the wiki with content:<br><a href=\"http://wiki.lwjgl.org\" target=\"_blank\">LWJGL Wiki</a>",
"Thursday, April 29th, 2004");
$news[1] = array(
"LWJGL 0.9a released",
"LWJGL 0.9 alpha has been released! Download <a href=\"http://www.lwjgl.org/download.php\">here</a>.<br>consider <a href=\"http://sourceforge.net/donate/index.php?group_id=58488\">donating</a> if you find LWJGL usefull.",
"Tuesday, April 13th, 2004");
$news[2] = array(
"New site!",
"Welcome to the grand opening of our new site! Please browse around. Should you find any errors or have trouble finding exactly what your looking for, please email <a href=\"mailto:info@lwjgl.org\">info@lwjgl.org</a>",
"Sunday, March 28th, 2004");
// -------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////////
// Prints the news
////////////////////////////////////////////////////////////////////////////////
function printNews() {
global $news;
echo "<!-- news area -->\n ";
echo "<div class=\"news\">";
echo "<h2>News</h2>";
// iterate each array for sub items
foreach ($news as $item) {
echo "\n <div class=\"news_item\">";
echo "<h4>" . $item[0] . "</h4>";
echo "<p>";
echo "$item[1]";
echo "<span class=\"date\"><br><i>$item[2]</i></span>";
echo "</p>";
echo "</div>";
echo "<br>";
}
echo "\n </div>\n";
}
?>