- make use of new PMA_Theme and PMA_Theme_Manager classes

- remove libraries/select_theme.lib.php
This commit is contained in:
Sebastian Mendel
2005-11-29 12:25:31 +00:00
parent 061da44a92
commit a7b7f0bd11
8 changed files with 31 additions and 139 deletions

View File

@@ -29,8 +29,7 @@ div.nowrap {
}
<?php
if ( ! isset( $theme_full_version )
|| version_compare( $theme_full_version, '2.7.0', 'lt' ) ) {
if ( $_SESSION['PMA_Theme']->checkVersion( '2.7.0' ) ) {
?>
form {
@@ -478,8 +477,7 @@ img.lightbulb {
<?php
} // end styles 2.7.0
if ( ! isset( $theme_full_version )
|| version_compare( $theme_full_version, '2.7.1', 'lt' ) ) {
if ( $_SESSION['PMA_Theme']->checkVersion( '2.7.1' ) ) {
?>
/********************/
@@ -657,24 +655,6 @@ li#li_flush_privileges {
<?php
} // end styles 2.7.1
$_valid_css = array( 'left', 'right', 'print' );
if ( empty( $_REQUEST['js_frame'] ) || ! in_array( $_REQUEST['js_frame'], $_valid_css ) ) {
$js_frame = 'left';
} else {
$js_frame = $_REQUEST['js_frame'];
}
unset( $_valid_css );
if ( $js_frame == 'right' ) {
echo PMA_SQP_buildCssData();
}
$_css_file = $GLOBALS['cfg']['ThemePath']
. '/' . $GLOBALS['theme']
. '/css/theme_' . $js_frame . '.css.php';
if ( file_exists( $_css_file ) ) {
include( $_css_file );
}
unset( $_css_file );
$_SESSION['PMA_Theme']->loadCss( $_REQUEST['js_frame'] );
?>