Address changes.
This commit is contained in:
parent
a5949e0401
commit
635b3ddcbc
59 changed files with 7249 additions and 2745 deletions
|
@ -36,9 +36,8 @@ $current_lang = $_SESSION['lang'] ?? $config['app']['locale'];
|
|||
|
||||
<div class="d-flex align-items-center">
|
||||
<!-- Search form remains outside the dropdown -->
|
||||
<form class="d-flex me-3" role="search">
|
||||
<input class="form-control me-2" type="search" placeholder="<?php echo $locale['search']; ?>"
|
||||
aria-label="<?php echo $locale['search']; ?>">
|
||||
<form class="d-flex me-3" role="search" action="/search.php" method="get">
|
||||
<input class="form-control me-2" type="search" name="q" placeholder="<?php echo $locale['search']; ?>" aria-label="<?php echo $locale['search']; ?>">
|
||||
<button class="btn btn-outline-success" type="submit"><?php echo $locale['search']; ?></button>
|
||||
</form>
|
||||
|
||||
|
@ -62,7 +61,7 @@ $current_lang = $_SESSION['lang'] ?? $config['app']['locale'];
|
|||
<label for="languageSelect" class="visually-hidden">Language Selector</label>
|
||||
<select class="form-select" id="languageSelect" onchange="location = this.value;">
|
||||
<?php
|
||||
if (isset($_SERVER["REQUIEST_URI"])) {
|
||||
if (isset($_SERVER["REQUEST_URI"])) {
|
||||
$currentUrl = strtok($_SERVER["REQUEST_URI"], '?') ?? '/';
|
||||
} else {
|
||||
$currentUrl = '/';
|
||||
|
@ -94,7 +93,7 @@ $current_lang = $_SESSION['lang'] ?? $config['app']['locale'];
|
|||
<script>
|
||||
// Dark mode toggle script
|
||||
function toggleDarkMode() {
|
||||
var html = document.documentElement;
|
||||
const html = document.documentElement;
|
||||
if (html.getAttribute('data-bs-theme') === 'dark') {
|
||||
html.removeAttribute('data-bs-theme'); // Switch to light mode
|
||||
localStorage.setItem('darkmode', 'false');
|
||||
|
@ -107,7 +106,7 @@ $current_lang = $_SESSION['lang'] ?? $config['app']['locale'];
|
|||
}
|
||||
|
||||
function updateDarkModeOnServer(value) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', '/settings.php', true);
|
||||
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||
xhr.onload = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue