isPetCalc = $pageCall == 'petcalc'; $this->name = $this->isPetCalc ? Lang::main('petCalc') : Lang::main('talentCalc'); } protected function generateContent() { // add conditional js & css if ($this->isPetCalc) $this->addScript( [SC_JS_FILE, '?data=pet-talents.pets'], [SC_JS_FILE, 'js/petcalc.js'], [SC_JS_FILE, 'js/swfobject.js'], [SC_CSS_FILE, 'css/petcalc.css'] ); else $this->addScript( [SC_JS_FILE, '?data=glyphs'], [SC_JS_FILE, 'js/talent.js'] ); $this->tcType = $this->isPetCalc ? 'pc' : 'tc'; } protected function generateTitle() { array_unshift($this->title, $this->name); } protected function generatePath() { $this->path[] = $this->isPetCalc ? 2 : 0; } } ?>