19 lines
879 B
PHP

<?php
class wizard_toolbar extends SYSTEM\PAGE\Page {
public $last = null;
public $next = null;
public function __construct($last,$next) {
$this->last = $last;
$this->next = $next;
}
public function html(){
$vars = json_decode(charcreation::data(),true)['result'];
$vars['char_class'] = player_classes::name($vars['char_class']);
$vars['last'] = $this->last;
$vars['next'] = $this->next;
$vars['WOWICONS'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=wowicons&id=';
$vars['WOW_CLASS'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=files&cat=class&id=';
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'wizard_toolbar/wizard_toolbar.tpl'), $vars);
}
}