mooRainbow.css only if needed

This commit is contained in:
Marc Delisle
2008-07-19 07:31:22 +00:00
parent 6e38a22283
commit d0c0771de0
2 changed files with 5 additions and 0 deletions

View File

@@ -46,6 +46,10 @@ if ($GLOBALS['text_dir'] == 'ltr') {
} }
?></title> ?></title>
<link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : ''; ?>phpmyadmin.css.php?<?php echo PMA_generate_common_url(); ?>&amp;js_frame=<?php echo isset($print_view) ? 'print' : 'right'; ?>&amp;nocache=<?php echo $_SESSION['PMA_Config']->getThemeUniqueValue(); ?>" /> <link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : ''; ?>phpmyadmin.css.php?<?php echo PMA_generate_common_url(); ?>&amp;js_frame=<?php echo isset($print_view) ? 'print' : 'right'; ?>&amp;nocache=<?php echo $_SESSION['PMA_Config']->getThemeUniqueValue(); ?>" />
<?php if (defined('PMA_MOORAINBOW')) { ?>
<link rel="stylesheet" type="text/css" href="js/mooRainbow/mooRainbow.css" /> <link rel="stylesheet" type="text/css" href="js/mooRainbow/mooRainbow.css" />
<?php
}
?>
<link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : ''; ?>print.css" media="print" /> <link rel="stylesheet" type="text/css" href="<?php echo defined('PMA_PATH_TO_BASEDIR') ? PMA_PATH_TO_BASEDIR : ''; ?>print.css" media="print" />
<meta name="robots" content="noindex,nofollow" /> <meta name="robots" content="noindex,nofollow" />

View File

@@ -8,6 +8,7 @@
/** /**
* Gets some core libraries and displays a top message if required * Gets some core libraries and displays a top message if required
*/ */
define('PMA_MOORAINBOW', true);
require_once './libraries/common.inc.php'; require_once './libraries/common.inc.php';
$GLOBALS['js_include'][] = 'mootools.js'; $GLOBALS['js_include'][] = 'mootools.js';
$GLOBALS['js_include'][] = 'mooRainbow/mooRainbow.js'; $GLOBALS['js_include'][] = 'mooRainbow/mooRainbow.js';