mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Templates/Listviews
* removed most templates by sensibly restructuring lvTab-data. Util::toJSON() does the rest. * taught Util::toJSON() to recognize values prefixed with $ as js-code * use Util::toJSON whenever possible * misc - mail attachments are displyed again - always show all currency rewards on Quest-LVs - suppress an error, when encountering unused ItemMods
This commit is contained in:
@@ -362,24 +362,18 @@ class AdminPage extends GenericPage
|
||||
}
|
||||
|
||||
foreach ($mainTab as $n => $t)
|
||||
$this->lvTabs[] = array(
|
||||
'file' => null,
|
||||
'data' => $t,
|
||||
'params' => array(
|
||||
'name' => $n,
|
||||
'id' => Util::urlize($n)
|
||||
)
|
||||
);
|
||||
$this->lvTabs[] = [null, array(
|
||||
'data' => $t,
|
||||
'name' => $n,
|
||||
'id' => Util::urlize($n)
|
||||
)];
|
||||
|
||||
foreach ($miscTab as $n => $t)
|
||||
$this->lvTabs[] = array(
|
||||
'file' => null,
|
||||
'data' => $t,
|
||||
'params' => array(
|
||||
'name' => $n,
|
||||
'id' => Util::urlize($n)
|
||||
)
|
||||
);
|
||||
$this->lvTabs[] = [null, array(
|
||||
'data' => $t,
|
||||
'name' => $n,
|
||||
'id' => Util::urlize($n)
|
||||
)];
|
||||
}
|
||||
|
||||
private function handlePhpInfo()
|
||||
@@ -428,26 +422,20 @@ class AdminPage extends GenericPage
|
||||
else
|
||||
$name .= $p[0];
|
||||
|
||||
$this->lvTabs[] = array(
|
||||
'file' => null,
|
||||
'data' => $body,
|
||||
'params' => array(
|
||||
'id' => strtolower(strtr($name, [' ' => ''])),
|
||||
'name' => $name
|
||||
)
|
||||
);
|
||||
$this->lvTabs[] = [null, array(
|
||||
'data' => $body,
|
||||
'id' => strtolower(strtr($name, [' ' => ''])),
|
||||
'name' => $name
|
||||
)];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->lvTabs[] = array(
|
||||
'file' => null,
|
||||
'data' => $buff,
|
||||
'params' => array(
|
||||
'id' => strtolower($names[$i]),
|
||||
'name' => $names[$i]
|
||||
)
|
||||
);
|
||||
$this->lvTabs[] = [null, array(
|
||||
'data' => $buff,
|
||||
'id' => strtolower($names[$i]),
|
||||
'name' => $names[$i]
|
||||
)];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user