Files
aowow/pages/races.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

37 lines
800 B
PHP

<?php
if (!defined('AOWOW_REVISION'))
die('illegal access');
$cacheKey = implode('_', [CACHETYPE_PAGE, TYPE_RACE, -1, -1, User::$localeId]);
if (!$smarty->loadCache($cacheKey, $pageData))
{
$races = new CharRaceList(array(['side', 0, '!'])); // only playable
$pageData = array(
'file' => 'race',
'data' => $races->getListviewData(),
'params' => []
);
$smarty->saveCache($cacheKey, $pageData);
}
// menuId 13: Race g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => Util::ucFirst(Lang::$game['races']),
'path' => "[0, 13]",
'tab' => 0
));
$smarty->assign('lang', Lang::$main);
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('generic-no-filter.tpl');
?>