Menu

[r1240]: / trunk / LWJGL / www / include / news.php  Maximize  Restore  History

Download this file

44 lines (38 with data), 1.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?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";
}
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.