diff options
| author | winter | 2025-01-20 20:10:54 +0000 |
|---|---|---|
| committer | winter | 2025-01-20 20:10:54 +0000 |
| commit | 1b60d5ca77a387122bcf900c2972edca63403155 (patch) | |
| tree | 0c7357d42dcee447c55ce205c055e4482e766d25 /templates/global_settings_page.php | |
| parent | 6830e97c22f7e72c08567d2497c0319ab73e6922 (diff) | |
settings tweaks and "about instance" page
Diffstat (limited to 'templates/global_settings_page.php')
| -rw-r--r-- | templates/global_settings_page.php | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/templates/global_settings_page.php b/templates/global_settings_page.php index fcaf7ab..06c1470 100644 --- a/templates/global_settings_page.php +++ b/templates/global_settings_page.php @@ -1,6 +1,22 @@ -<?php call_template('skeleton', [ - 'pageTitle' => sprintf(__('globalSettings.pageTitle'), $prefix) +<?php +use Digitigrade\GlobalSettings; + +call_template('skeleton', [ + 'pageTitle' => sprintf(__("globalSettings.pageTitle.$prefix"), $prefix) ], function () { global $prefix; + $s = GlobalSettings::getInstance(); + ?> + <div class="settingsCategories"> + <span><?= __('globalSettings.categories') ?></span> + <ul> + <?php foreach ($s->getAllPrefixes() as $p): ?> + <?php if ($p == 'settings') + continue; ?> + <li><a href="/admin/settings/<?= $p ?>"><?= $p ?></a></li> + <?php endforeach; ?> + </ul> + </div> + <?php call_template('settings_editor', ['prefix' => $prefix]); });
\ No newline at end of file |
