]> git.joonet.de Git - adminer.git/commitdiff
Simpler customization of name() link
authorJakub Vrana <jakub@vrana.cz>
Sun, 3 Apr 2011 15:27:34 +0000 (08:27 -0700)
committerJakub Vrana <jakub@vrana.cz>
Sun, 3 Apr 2011 15:27:34 +0000 (08:27 -0700)
adminer/include/adminer.inc.php
editor/include/adminer.inc.php

index b8d8653044f0648d89db99b94c9ee42fe8fd5c65..7596505154ff91864d3eb097f526404f065f5005 100644 (file)
@@ -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 @@ DROP PROCEDURE adminer_alter;
                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
index 471372558b293c95cb024c33aefd2e53ecf22a02..0fbde4154e49eec7365ef65949813a27f37081bf 100644 (file)
@@ -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 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
                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