}
/** Print HTML code inside <head>
- * @return bool true to link adminer.css if exists
+ * @return bool true to link favicon.ico and adminer.css if exists
*/
function head() {
?>
return true;
}
+ /** Get URLs of the CSS files
+ * @return array of strings
+ */
+ function css() {
+ $return = array();
+ $filename = "adminer.css";
+ if (file_exists($filename)) {
+ $return[] = $filename;
+ }
+ return $return;
+ }
+
/** Print login form
* @return null
*/
<?php if ($adminer->head()) { ?>
<link rel="shortcut icon" type="image/x-icon" href="../adminer/static/favicon.ico">
<link rel="apple-touch-icon" href="../adminer/static/favicon.ico">
-<?php if (file_exists("adminer.css")) { ?>
-<link rel="stylesheet" type="text/css" href="adminer.css">
+<?php foreach ($adminer->css() as $css) { ?>
+<link rel="stylesheet" type="text/css" href="<?php echo h($css); ?>">
<?php } ?>
<?php } ?>
return true;
}
+ function css() {
+ $return = array();
+ $filename = "adminer.css";
+ if (file_exists($filename)) {
+ $return[] = $filename;
+ }
+ return $return;
+ }
+
function loginForm() {
?>
<table cellspacing="0">
return $this->_applyPlugin(__FUNCTION__, $args);
}
+ function css() {
+ $args = func_get_args();
+ return $this->_applyPlugin(__FUNCTION__, $args);
+ }
+
function loginForm() {
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
plugins/readme.txt - Plugins for Adminer and Adminer Editor
adminer/plugin.php - Plugin demo
adminer/sqlite.php - Development version of Adminer with SQLite allowed
+adminer/designs.php - Development version of Adminer with adminer.css switcher
compile.php - Create a single file version
lang.php - Update translations
tests/selenium.html - Selenium test suite