implemented theme changer
All checks were successful
Build and push / Pulling repo on server (push) Successful in 3s

This commit is contained in:
2023-10-31 20:29:17 +00:00
parent 3614ba829c
commit 9bded6133e
4 changed files with 53 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" class="h-100" data-bs-theme="auto">
<html lang="en" class="h-100" data-bs-theme="<?= ($_SESSION['user'] && $_SESSION['user']->theme)?$_SESSION['user']->theme:'autoy' ?>">
<head>
<meta charset="UTF-8">
@ -35,7 +35,7 @@
<script src="/js/htmx.min.js"></script>
<script src="/js/bootstrap.bundle.min.js"></script>
<script src="/js/color-modes.js"></script>
<?php if((!$_SESSION['user'] || !$_SESSION['user']->theme)): ?><script src="/js/color-modes.js"></script><?php endif; ?>
</body>
</html>