mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* convert configuration from list of constants to object * fixes config changes not applying on cli whithout closing and reopening again * config variables are no longer embedded in localization text
49 lines
1.2 KiB
PHP
49 lines
1.2 KiB
PHP
<?php
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
|
|
// menuId 100: Emotes g_initPath()
|
|
// tabid 0: Database g_initHeader()
|
|
class EmotesPage extends GenericPage
|
|
{
|
|
use TrListPage;
|
|
|
|
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()
|
|
{
|
|
$cnd = [Cfg::get('SQL_LIMIT_NONE')];
|
|
if (!User::isInGroup(U_GROUP_STAFF))
|
|
$cnd[] = [['cuFlags', CUSTOM_EXCLUDE_FOR_LISTVIEW, '&'], 0];
|
|
|
|
$tabData = array(
|
|
'data' => array_values((new EmoteList($cnd))->getListviewData()),
|
|
'name' => Util::ucFirst(Lang::game('emotes'))
|
|
);
|
|
|
|
$this->lvTabs[] = [EmoteList::$brickFile, $tabData, 'emote'];
|
|
}
|
|
|
|
protected function generateTitle()
|
|
{
|
|
array_unshift($this->title, $this->name);
|
|
}
|
|
|
|
protected function generatePath() { }
|
|
}
|
|
|
|
?>
|