'talentcalc.css'], ['path' => 'talent.css'] ); private $isPetCalc = false; public function __construct($pageCall, $__) { parent::__construct($pageCall, $__); $this->isPetCalc = $pageCall == 'petcalc'; $this->name = $this->isPetCalc ? Lang::$main['petCalc'] : Lang::$main['talentCalc']; } protected function generateContent() { // add conditional js & css $this->addJS(array( ($this->isPetCalc ? '?data=pet-talents.pets' : '?data=glyphs').'&locale='.User::$localeId.'&t='.$_SESSION['dataKey'], $this->isPetCalc ? 'petcalc.js' : 'talent.js', $this->isPetCalc ? 'swfobject.js' : null )); $this->addCSS($this->isPetCalc ? ['path' => 'petcalc.css'] : null); $this->tcType = $this->isPetCalc ? 'pc' : 'tc'; } protected function generateTitle() { array_unshift($this->title, $this->name); } protected function generatePath() { $this->path[] = $this->isPetCalc ? 2 : 0; } } ?>