diff options
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 |
