mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
- 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.
35 lines
1.0 KiB
PHP
35 lines
1.0 KiB
PHP
<?php
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
|
|
if (!isset($petCalc))
|
|
$petCalc = false;
|
|
|
|
// tabId 1: Tools g_initHeader()
|
|
$smarty->updatePageVars(array(
|
|
'title' => $petCalc ? Lang::$talent['petCalc'] : Lang::$talent['talentCalc'],
|
|
'tab' => 1,
|
|
'reqCSS' => array(
|
|
['path' => 'template/css/TalentCalc.css'],
|
|
['path' => 'template/css/talent.css'],
|
|
['path' => 'template/css/TalentCalc_ie6.css', 'ieCond' => 'lte IE 6'],
|
|
['path' => 'template/css/TalentCalc_ie67.css', 'ieCond' => 'lte IE 7'],
|
|
$petCalc ? ['path' => 'template/css/petcalc.css'] : null
|
|
),
|
|
'reqJS' => array(
|
|
'template/js/TalentCalc.js',
|
|
$petCalc ? '?data=pet-talents.pets' : '?data=glyphs',
|
|
$petCalc ? 'template/js/petcalc.js' : 'template/js/talent.js',
|
|
$petCalc ? 'template/js/swfobject.js' : null
|
|
)
|
|
));
|
|
$smarty->assign('tcType', $petCalc ? 'pc' : 'tc');
|
|
$smarty->assign('lang', array_merge(Lang::$main, Lang::$talent));
|
|
|
|
// load the page
|
|
$smarty->display('talent.tpl');
|
|
|
|
?>
|