mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* create namespace Aowow to avoid naming conflicts * inclues/libs/ is outside of the Aowow namespace
43 lines
895 B
PHP
43 lines
895 B
PHP
<?php
|
|
|
|
namespace Aowow;
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
|
|
// tabId 1: Tools g_initHeader()
|
|
class MapsPage extends GenericPage
|
|
{
|
|
protected $tpl = 'maps';
|
|
protected $tabId = 1;
|
|
protected $path = [1, 1];
|
|
protected $mode = CACHE_TYPE_NONE;
|
|
protected $scripts = array(
|
|
[SC_JS_FILE, 'js/maps.js'],
|
|
[SC_CSS_STRING, 'zone-picker { margin-left: 4px }']
|
|
);
|
|
|
|
public function __construct($pageCall, $__)
|
|
{
|
|
parent::__construct($pageCall, $__);
|
|
|
|
$this->name = Lang::maps('maps');
|
|
}
|
|
|
|
protected function generateContent()
|
|
{
|
|
// add conditional js
|
|
$this->addScript([SC_JS_FILE, '?data=zones']);
|
|
}
|
|
|
|
protected function generateTitle()
|
|
{
|
|
array_unshift($this->title, $this->name);
|
|
}
|
|
|
|
protected function generatePath() {}
|
|
}
|
|
|
|
?>
|