mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* 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.
This commit is contained in:
@@ -4,24 +4,24 @@ if (!defined('AOWOW_REVISION'))
|
||||
die('illegal access');
|
||||
|
||||
|
||||
$page = array(
|
||||
// tabId 1: Tools g_initHeader()
|
||||
$smarty->updatePageVars(array(
|
||||
'title' => Lang::$maps['maps'],
|
||||
'tab' => 1,
|
||||
'reqCSS' => array(
|
||||
array('string' => 'zone-picker { margin-left: 4px }'),
|
||||
array('path' => 'template/css/Mapper.css', 'condition' => false),
|
||||
array('path' => 'template/css/Mapper_ie6.css', 'condition' => 'lte IE 6'),
|
||||
['string' => 'zone-picker { margin-left: 4px }'],
|
||||
['path' => 'template/css/Mapper.css'],
|
||||
['path' => 'template/css/Mapper_ie6.css', 'ieCond' => 'lte IE 6']
|
||||
),
|
||||
'reqJS' => array(
|
||||
array('path' => 'template/js/maps.js'),
|
||||
array('path' => 'template/js/Mapper.js'),
|
||||
array('path' => '?data=zones'),
|
||||
),
|
||||
'title' => Lang::$maps['maps'],
|
||||
'tab' => 1
|
||||
);
|
||||
|
||||
|
||||
$smarty->updatePageVars($page);
|
||||
'template/js/maps.js',
|
||||
'template/js/Mapper.js',
|
||||
'?data=zones'
|
||||
)
|
||||
));
|
||||
$smarty->assign('lang', array_merge(Lang::$main, Lang::$maps));
|
||||
|
||||
// load the page
|
||||
$smarty->display('maps.tpl');
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user