2603.11 added dark/light mode
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user