Menu

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

Download this file

34 lines (30 with data), 1.1 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
<?php
// News
// =======================================================
$news[0] = 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.