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:
@@ -122,23 +122,26 @@ if (!$smarty->loadCache($cacheKey, $pageData))
|
||||
$smarty->saveCache($cacheKey, $pageData);
|
||||
}
|
||||
|
||||
$page = array(
|
||||
'tab' => 0, // for g_initHeader($tab)
|
||||
|
||||
// menuId 6: Zone g_initPath()
|
||||
// tabId 0: Database g_initHeader()
|
||||
$smarty->updatePageVars(array(
|
||||
'title' => implode(' - ', $title),
|
||||
'path' => json_encode($path, JSON_NUMERIC_CHECK),
|
||||
'reqJS' => array(
|
||||
array('path' => 'template/js/Mapper.js', 'conditional' => false),
|
||||
array('path' => 'template/js/ShowOnMap.js', 'conditional' => false),
|
||||
),
|
||||
'tab' => 0,
|
||||
'reqCSS' => array(
|
||||
array('path' => 'template/css/Mapper.css', 'condition' => false),
|
||||
array('path' => 'template/css/Mapper_ie6.css', 'condition' => 'lte IE 6'),
|
||||
['path' => 'template/css/Mapper.css'],
|
||||
['path' => 'template/css/Mapper_ie6.css', 'ieCond' => 'lte IE 6']
|
||||
),
|
||||
);
|
||||
|
||||
$smarty->updatePageVars($page);
|
||||
'reqJS' => array(
|
||||
'template/js/Mapper.js',
|
||||
'template/js/ShowOnMap.js'
|
||||
)
|
||||
));
|
||||
$smarty->assign('lang', Lang::$main);
|
||||
$smarty->assign('lvData', $pageData);
|
||||
|
||||
// load the page
|
||||
$smarty->display('generic-no-filter.tpl');
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user