From 68c0b2ae6993cd626b31c41e99e353f387ac9e93 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Wed, 23 Jul 2025 19:56:47 +0200 Subject: [PATCH] public_banlist: format --- templates/themes/public_banlist/theme.php | 98 +++++++++++------------ 1 file changed, 48 insertions(+), 50 deletions(-) diff --git a/templates/themes/public_banlist/theme.php b/templates/themes/public_banlist/theme.php index 7ca7e5d7..d873f1d5 100644 --- a/templates/themes/public_banlist/theme.php +++ b/templates/themes/public_banlist/theme.php @@ -1,57 +1,55 @@ $config, - 'mod' => false, - #'hide_dashboard_link' => true, - 'title' => _("Ban list"), - 'subtitle' => "", + return Element('page.html', [ + 'config' => $config, + 'mod' => false, + 'title' => _("Ban list"), + 'subtitle' => "", 'boardlist' => createBoardlist(), - #'nojavascript' => true, - 'body' => Element('mod/ban_list.html', array( - 'mod' => false, - 'boards' => "[]", - 'token' => false, - 'token_json' => false, + 'body' => Element('mod/ban_list.html', [ + 'mod' => false, + 'boards' => "[]", + 'token' => false, + 'token_json' => false, 'uri_json' => $config['dir']['home'] . $settings['file_json'], - )) - )); - } - }; - -?> + ]) + ]); + } +};