2603.11 added dark/light mode
This commit is contained in:
@@ -60,6 +60,7 @@ if (isset($_GET['edit'])) {
|
||||
<style>
|
||||
<?php include __DIR__ . '/includes/style.php'; ?>
|
||||
</style>
|
||||
<script>document.documentElement.setAttribute('data-theme',localStorage.getItem('theme')||'dark')</script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@@ -71,6 +72,7 @@ if (isset($_GET['edit'])) {
|
||||
<?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