aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/global_settings_page.php
blob: 06c14709174383a5dff4edb73e2c8af00412188b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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]);
});