]> git.joonet.de Git - adminer.git/commitdiff
Move syntax highlighting to the end
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 28 Aug 2008 10:28:56 +0000 (10:28 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Thu, 28 Aug 2008 10:28:56 +0000 (10:28 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@461 7c3ca157-0c34-0410-bff1-cbf682f78f5c

design.inc.php

index 8facaebe8ff73e4bfa52ffdad772d2cdd8838589..a9e3f9feeff7314a77ced3d195aea26d811a88fb 100644 (file)
@@ -12,11 +12,6 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
 <title><?php echo $title . (strlen($title2) ? ": " . htmlspecialchars($title2) : "") . " - " . lang('phpMinAdmin') . " 1.7.1-dev"; ?></title>
 <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
 <link rel="stylesheet" type="text/css" href="default.css" /><?php // Ondrej Valka, http://valka.info ?>
-<?php if ($_COOKIE["highlight"] == "jush") { ?>
-<style type="text/css">@import url(http://jush.sourceforge.net/jush.css);</style>
-<script type="text/javascript" src="http://jush.sourceforge.net/jush.js" defer="defer"></script>
-<script type="text/javascript">window.onload = function () { if (typeof jush != 'undefined') jush.highlight_tag('pre'); }</script>
-<?php } ?>
 </head>
 
 <body>
@@ -108,6 +103,16 @@ function page_footer($missing = false) {
        ?>
 </div>
 
+<?php if ($_COOKIE["highlight"] == "jush") { ?>
+<script type="text/javascript" src="http://jush.sourceforge.net/jush.js"></script>
+<script type="text/javascript">
+if (typeof jush != 'undefined') {
+       jush.style('http://jush.sourceforge.net/jush.css');
+       jush.highlight_tag('pre');
+}
+</script>
+<?php } ?>
+
 </body>
 </html>
 <?php