Simplify dark scss, some fixes, more convenient dark_mode()

This commit is contained in:
2018-08-06 22:09:42 +02:00
parent 3d03727811
commit d870da7e05
6 changed files with 16 additions and 33 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ function faker() {
return $fac = Faker\Factory::create();
}
function dark_mode() {
return isset($_COOKIE["dark_mode"]);
function dark_mode($ifDark=true, $ifLight=false) {
return isset($_COOKIE["dark_mode"]) ? $ifDark : $ifLight;
}
/**