2603.11 added dark/light mode

This commit is contained in:
2026-03-13 16:30:09 -04:00
parent 9730addb10
commit 7353fd57db
7 changed files with 49 additions and 2 deletions

View File

@@ -58,6 +58,7 @@ $frequent_ip_threshold = (int)get_setting('frequent_ip_threshold', '5');
<style>
<?php include __DIR__ . '/includes/style.php'; ?>
</style>
<script>document.documentElement.setAttribute('data-theme',localStorage.getItem('theme')||'dark')</script>
</head>
<body>
<header>
@@ -69,6 +70,7 @@ $frequent_ip_threshold = (int)get_setting('frequent_ip_threshold', '5');
<?php if (auth_enabled()): ?>
<a href="logout.php" style="color:var(--muted)">Sign out</a>
<?php endif; ?>
<?php include __DIR__ . '/includes/theme_toggle.php'; ?>
</nav>
</header>
<main>