mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* display empty listview if no data Setup * do not pass null instead of expected type array * added setup step for emotes to --firstrun *d'oh!* * fixed a wrong constant
44 lines
1014 B
PHP
44 lines
1014 B
PHP
<?php
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
|
|
// menuId 100: Emotes g_initPath()
|
|
// tabid 0: Database g_initHeader()
|
|
class EmotesPage extends GenericPage
|
|
{
|
|
use ListPage;
|
|
|
|
protected $type = TYPE_EMOTE;
|
|
protected $tpl = 'list-page-generic';
|
|
protected $path = [0, 100];
|
|
protected $tabId = 0;
|
|
protected $mode = CACHE_TYPE_PAGE;
|
|
|
|
public function __construct($pageCall, $pageParam)
|
|
{
|
|
parent::__construct($pageCall, $pageParam);
|
|
|
|
$this->name = Util::ucFirst(Lang::game('emotes'));
|
|
}
|
|
|
|
protected function generateContent()
|
|
{
|
|
$this->lvTabs[] = array(
|
|
'file' => 'emote',
|
|
'data' => (new EmoteList())->getListviewData(),
|
|
'params' => []
|
|
);
|
|
}
|
|
|
|
protected function generateTitle()
|
|
{
|
|
array_unshift($this->title, $this->name);
|
|
}
|
|
|
|
protected function generatePath() { }
|
|
}
|
|
|
|
?>
|