servnest/pg-view/index.php
2023-03-09 01:35:30 +01:00

17 lines
474 B
PHP

<nav>
<dl>
<?php
foreach (array_merge(['auth' => 'enabled'], CONF['common']['services']) as $service => $status) {
if ($status !== 'enabled' AND $status !== 'error')
continue;
?>
<?= ($status === 'error') ? '<s>' : '' ?>
<dt><a class="<?= $service ?>" href="<?= $service ?>/"><?= PAGES[$service]['index']['title'] ?></a></dt>
<dd>
<?= PAGES[$service]['index']['description'] ?>
</dd>
<?= ($status === 'error') ? '</s>' : '' ?>
<?php } ?>
</dl>
</nav>