mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 23:57:29 +02:00
CSS: Dark mode syntax highlighting and adminer-dark.css
This commit is contained in:
@@ -59,15 +59,17 @@ class Adminer {
|
||||
return csp();
|
||||
}
|
||||
|
||||
function head() {
|
||||
function head($dark = null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
function css() {
|
||||
$return = array();
|
||||
$filename = "adminer.css";
|
||||
if (file_exists($filename)) {
|
||||
$return[] = $filename;
|
||||
foreach (array("", "-dark") as $mode) {
|
||||
$filename = "adminer$mode.css";
|
||||
if (file_exists($filename)) {
|
||||
$return[] = "$filename?v=" . crc32(file_get_contents($filename));
|
||||
}
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user