Files
aowow/pages/talent.php
Sarjuuk fec0daac9a moving template around
(is now a lot closer to the original, shouldn't require updating new
scripts as the structure should fit)
also some minor bugfixes
2014-03-16 01:29:29 +01:00

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::$main['petCalc'] : Lang::$main['talentCalc'],
'tab' => 1,
'reqCSS' => array(
['path' => 'static/css/TalentCalc.css'],
['path' => 'static/css/talent.css'],
['path' => 'static/css/TalentCalc_ie6.css', 'ieCond' => 'lte IE 6'],
['path' => 'static/css/TalentCalc_ie67.css', 'ieCond' => 'lte IE 7'],
$petCalc ? ['path' => 'static/css/petcalc.css'] : null
),
'reqJS' => array(
'static/js/TalentCalc.js',
$petCalc ? '?data=pet-talents.pets' : '?data=glyphs',
$petCalc ? 'static/js/petcalc.js' : 'static/js/talent.js',
$petCalc ? 'static/js/swfobject.js' : null
)
));
$smarty->assign('tcType', $petCalc ? 'pc' : 'tc');
$smarty->assign('lang', array_merge(Lang::$main, ['colon' => Lang::$colon]));
// load the page
$smarty->display('talent.tpl');
?>