added closedwiki option

This hides most of the wiki tools including the sidebar and search until
the user has logged in.
This commit is contained in:
Andreas Gohr 2023-07-10 13:57:09 +02:00
commit da9591f0b6
5 changed files with 19 additions and 9 deletions

View file

@ -16,7 +16,7 @@ if ($conf['useacl']): ?>
try {
$item = new Login();
if ($item->visibleInContext(AbstractItem::CTX_DESKTOP))
echo '<li class="log">' . $item->asHtmlButton() . '</li>';
echo '<li class="log">' . $item->asHtmlLink() . '</li>';
} catch (RuntimeException $ignored) {
// item not available
}