From e17cbfe51f47eda9ecbe702f254b00b74b2a7c1e Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Wed, 6 Aug 2025 17:36:19 +0200 Subject: [PATCH] Template/Update (Part 8) * convert maps tool --- endpoints/maps/maps.php | 31 +++++++++++++++++++++++++++ pages/maps.php | 42 ------------------------------------- template/pages/maps.tpl.php | 7 +++++-- 3 files changed, 36 insertions(+), 44 deletions(-) create mode 100644 endpoints/maps/maps.php delete mode 100644 pages/maps.php diff --git a/endpoints/maps/maps.php b/endpoints/maps/maps.php new file mode 100644 index 00000000..de62e4bc --- /dev/null +++ b/endpoints/maps/maps.php @@ -0,0 +1,31 @@ +h1 = Lang::maps('maps'); + + array_unshift($this->title, $this->h1); + + parent::generate(); + } +} + +?> diff --git a/pages/maps.php b/pages/maps.php deleted file mode 100644 index 1f300fb2..00000000 --- a/pages/maps.php +++ /dev/null @@ -1,42 +0,0 @@ -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() {} -} - -?> diff --git a/template/pages/maps.tpl.php b/template/pages/maps.tpl.php index 77fd9e6b..8e54af9d 100644 --- a/template/pages/maps.tpl.php +++ b/template/pages/maps.tpl.php @@ -1,7 +1,10 @@ - +brick('header'); ?> + use \Aowow\Lang; + $this->brick('header'); +?>