aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/global_settings_page.php
blob: 85a308e596d3b71ed03be49d1bbd9d0a2a3cc093 (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.category.$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 ?>"><?= __("globalSettings.category.$p") ?></a></li>
            <?php endforeach; ?>
        </ul>
    </div>
    <?php
    call_template('settings_editor', ['prefix' => $prefix]);
});