1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 03:24:01 +02:00

CSS: Add logo

This commit is contained in:
Jakub Vrana
2025-04-04 07:39:08 +02:00
parent 3f6136205d
commit 6e8c89ee71
8 changed files with 12 additions and 4 deletions

View File

@@ -933,7 +933,7 @@ class Adminer {
* @param string $missing can be "auth" if there is no database connection, "db" if there is no database selected, "ns" with invalid schema
*/
function navigation(string $missing): void {
echo "<h1>" . adminer()->name() . " <span class='version'>" . VERSION;
echo "<h1><span id='logo'></span>" . adminer()->name() . " <span class='version'>" . VERSION;
$new_version = $_COOKIE["adminer_version"];
echo " <a href='https://www.adminer.org/#download'" . target_blank() . " id='version'>" . (version_compare(VERSION, $new_version) < 0 ? h($new_version) : "") . "</a>";
echo "</span></h1>\n";

View File

@@ -52,7 +52,7 @@ function page_header(string $title, string $error = "", $breadcrumb = array(), s
echo script_src("static/editing.js");
if (adminer()->head($dark)) {
echo "<link rel='shortcut icon' type='image/x-icon' href='../adminer/static/favicon.ico'>\n";
echo "<link rel='apple-touch-icon' href='../adminer/static/favicon.ico'>\n";
echo "<link rel='apple-touch-icon' href='../adminer/static/logo.png'>\n";
}
foreach ($css as $val) {
echo "<link rel='stylesheet'" . (preg_match('~-dark~', $val) && !$dark ? $media : "") . " href='" . h($val) . "'>\n";