Template/Update (Part 8)

* convert maps tool
This commit is contained in:
Sarjuuk
2025-08-06 17:36:19 +02:00
parent 2c1b1196a7
commit e17cbfe51f
3 changed files with 36 additions and 44 deletions

31
endpoints/maps/maps.php Normal file
View File

@@ -0,0 +1,31 @@
<?php
namespace Aowow;
if (!defined('AOWOW_REVISION'))
die('illegal access');
class MapsBaseResponse extends TemplateResponse
{
protected int $cacheType = CACHE_TYPE_PAGE;
protected string $template = 'maps';
protected string $pageName = 'maps';
protected ?int $activeTab = parent::TAB_TOOLS;
protected array $breadcrumb = [1, 1];
protected array $dataLoader = ['zones'];
protected array $scripts = [[SC_JS_FILE, 'js/maps.js'], [SC_CSS_STRING, 'zone-picker { margin-left: 4px }']];
protected function generate() : void
{
$this->h1 = Lang::maps('maps');
array_unshift($this->title, $this->h1);
parent::generate();
}
}
?>