Add switch for dark theme
This commit is contained in:
parent
e5bf02f688
commit
79429757f9
14
index.php
14
index.php
|
@ -17,6 +17,16 @@ if (isset($q)) {
|
||||||
goSearch($q, $searchsite);
|
goSearch($q, $searchsite);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($_GET['theme']) && $_GET['theme'] == 'dark') {
|
||||||
|
$csstheme = "logicodev-dark.min.css";
|
||||||
|
$labeltheme = "Light";
|
||||||
|
$linktheme = "/";
|
||||||
|
} else {
|
||||||
|
$csstheme = "logicodev.min.css";
|
||||||
|
$labeltheme = "Dark";
|
||||||
|
$linktheme = "/?theme=dark";
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
@ -38,7 +48,7 @@ if (isset($q)) {
|
||||||
|
|
||||||
<title>SearchforPlanet.org</title>
|
<title>SearchforPlanet.org</title>
|
||||||
<link rel="stylesheet" href="bootstrap.min.css" type="text/css" />
|
<link rel="stylesheet" href="bootstrap.min.css" type="text/css" />
|
||||||
<link rel="stylesheet" href="logicodev.min.css" type="text/css" />
|
<link rel="stylesheet" href="<?=$csstheme;?>" type="text/css" />
|
||||||
<link rel="stylesheet" href="leaflet.min.css" type="text/css" />
|
<link rel="stylesheet" href="leaflet.min.css" type="text/css" />
|
||||||
|
|
||||||
<link rel="shortcut icon" href="favicon.ico" />
|
<link rel="shortcut icon" href="favicon.ico" />
|
||||||
|
@ -47,7 +57,7 @@ if (isset($q)) {
|
||||||
<body>
|
<body>
|
||||||
<div class="searx-navbar">
|
<div class="searx-navbar">
|
||||||
<span class="instance pull-left"><a href="https://gitea.it/selectallfromdual/Searchforplanet.org/wiki/What-is" target="_blank">What is</a></span>
|
<span class="instance pull-left"><a href="https://gitea.it/selectallfromdual/Searchforplanet.org/wiki/What-is" target="_blank">What is</a></span>
|
||||||
<span class="pull-right"><a href="https://gitea.it/selectallfromdual/Searchforplanet.org/wiki/Privacy-policy" target="_blank">Privacy policy</a><a href="https://gitea.it/selectallfromdual/Searchforplanet.org/wiki/News" target="_blank">News</a></span>
|
<span class="pull-right"><a href="https://gitea.it/selectallfromdual/Searchforplanet.org/wiki/Privacy-policy" target="_blank">Privacy policy</a><a href="https://gitea.it/selectallfromdual/Searchforplanet.org/wiki/News" target="_blank">News</a><a href="<?=$linktheme;?>"><?=$labeltheme;?></a></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue