Permalink
Browse files

Simpler customization of name() link

  • Loading branch information...
1 parent 46dad6e commit 3ebfdd30c114d24622c471e8e4cf779721f24c2f @vrana committed Apr 3, 2011
Showing with 5 additions and 7 deletions.
  1. +3 −4 adminer/include/adminer.inc.php
  2. +2 −3 editor/include/adminer.inc.php
@@ -4,10 +4,10 @@ class Adminer {
var $operators;
/** Name in title and navigation
- * @return string
+ * @return string HTML code
*/
function name() {
- return "Adminer";
+ return "<a href='http://www.adminer.org/' id='h1'>Adminer</a>";
}
/** Connection parameters
@@ -719,8 +719,7 @@ function navigation($missing) {
global $VERSION, $connection, $token, $jush, $drivers;
?>
<h1>
-<a href="http://www.adminer.org/" id="h1"><?php echo $this->name(); ?></a>
-<span class="version"><?php echo $VERSION; ?></span>
+<?php echo $this->name(); ?> <span class="version"><?php echo $VERSION; ?></span>
<a href="http://www.adminer.org/#download" id="version"><?php echo (version_compare($VERSION, $_COOKIE["adminer_version"]) < 0 ? h($_COOKIE["adminer_version"]) : ""); ?></a>
</h1>
<?php
@@ -4,7 +4,7 @@ class Adminer {
var $_values = array();
function name() {
- return lang('Editor');
+ return "<a href='http://www.adminer.org/editor/' id='h1'>" . lang('Editor') . "</a>";
}
//! driver, ns
@@ -511,8 +511,7 @@ function navigation($missing) {
global $VERSION, $token;
?>
<h1>
-<a href="http://www.adminer.org/" id="h1"><?php echo $this->name(); ?></a>
-<span class="version"><?php echo $VERSION; ?></span>
+<?php echo $this->name(); ?> <span class="version"><?php echo $VERSION; ?></span>
<a href="http://www.adminer.org/editor/#download" id="version"><?php echo (version_compare($VERSION, $_COOKIE["adminer_version"]) < 0 ? h($_COOKIE["adminer_version"]) : ""); ?></a>
</h1>
<?php

0 comments on commit 3ebfdd3

Please sign in to comment.