Files
aowow/pages/main.php
Sarjuuk e834f1aee3 * moved duplicate utility/dom-functions from global.js to basic.js
- consequentially prepended $WH to those functions (since i do have issues with regEx, some errors may occur)
* simplified including required JS and CSS files per page
* replaced old Menu-class with (almost) current version. Since it relies heavily on jQuery it is also loaded.
2013-08-03 21:09:23 +02:00

27 lines
533 B
PHP

<?php
if (!defined('AOWOW_REVISION'))
die('illegal access');
/*
todo:
- different styles for newsbox
- flags for news .. disabled, deleted, recurring, whatever..
*/
// load news
$rows = DB::Aowow()->select('SELECT * FROM ?_news ORDER BY time DESC, id DESC LIMIT 5');
foreach ($rows as $i => $row)
$rows[$i]['text'] = Util::localizedString($row, 'text');
$smarty->assign('news', isset($rows) ? $rows : NULL);
$smarty->assign('lang', Lang::$main);
// load the page
$smarty->display('main.tpl');
?>