aowow/pages/maps.php
Sarjuuk 6acee41e3d Javascript:
- reviewed and used objects PageTemplate and Locale
- removed associated workarounds
- replaced ~12k tabs with ~48k spaces
- fixed some localization errors
- whoops, forgot to update some Util::$pageTemplate calls to $this
2014-07-24 17:52:46 +02:00

45 lines
1 KiB
PHP

<?php
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 = CACHETYPE_NONE;
protected $js = array(
'maps.js',
'Mapper.js'
);
protected $css = array(
['string' => 'zone-picker { margin-left: 4px }'],
['path' => 'Mapper.css'],
['path' => 'Mapper_ie6.css', 'ieCond' => 'lte IE 6']
);
public function __construct($pageCall, $__)
{
parent::__construct($pageCall, $__);
$this->name = Lang::$maps['maps'];
}
protected function generateContent()
{
// add conditional js
$this->addJS('?data=zones&locale=' . User::$localeId . '&t=' . $_SESSION['dataKey']);
}
protected function generateTitle()
{
array_unshift($this->title, $this->name);
}
protected function generatePath() {}
}
?>