Use a sprite for screen options toggle. Props TECannon PeteMall. see #15163
git-svn-id: http://svn.automattic.com/wordpress/trunk@16081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
547632b70d
commit
ce13c6bdf0
File diff suppressed because one or more lines are too long
|
@ -2602,7 +2602,8 @@ fieldset {
|
||||||
}
|
}
|
||||||
|
|
||||||
#screen-meta a.show-settings {
|
#screen-meta a.show-settings {
|
||||||
background-image: url( ../images/screen-options-right.gif?ver=20100531 );
|
background-image: url( ../images/screen-options-toggle.gif?ver=20100531 );
|
||||||
|
background-position: top right;
|
||||||
}
|
}
|
||||||
|
|
||||||
#screen-meta a.show-settings:hover {
|
#screen-meta a.show-settings:hover {
|
||||||
|
|
|
@ -205,11 +205,11 @@ jQuery(document).ready( function($) {
|
||||||
|
|
||||||
$('#screen-options-wrap').slideToggle('fast', function(){
|
$('#screen-options-wrap').slideToggle('fast', function(){
|
||||||
if ( $(this).hasClass('screen-options-open') ) {
|
if ( $(this).hasClass('screen-options-open') ) {
|
||||||
$('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right.gif?ver=20100531")'});
|
$('#show-settings-link').css({'backgroundPosition':'top right'});
|
||||||
$('#contextual-help-link-wrap').css('visibility', '');
|
$('#contextual-help-link-wrap').css('visibility', '');
|
||||||
$(this).removeClass('screen-options-open');
|
$(this).removeClass('screen-options-open');
|
||||||
} else {
|
} else {
|
||||||
$('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right-up.gif?ver=20100531")'});
|
$('#show-settings-link').css({'backgroundPosition':'bottom right'});
|
||||||
$(this).addClass('screen-options-open');
|
$(this).addClass('screen-options-open');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -223,11 +223,11 @@ jQuery(document).ready( function($) {
|
||||||
|
|
||||||
$('#contextual-help-wrap').slideToggle('fast', function() {
|
$('#contextual-help-wrap').slideToggle('fast', function() {
|
||||||
if ( $(this).hasClass('contextual-help-open') ) {
|
if ( $(this).hasClass('contextual-help-open') ) {
|
||||||
$('#contextual-help-link').css({'backgroundImage':'url("images/screen-options-right.gif?ver=20100531")'});
|
$('#contextual-help-link').css({'backgroundPosition':'top right'});
|
||||||
$('#screen-options-link-wrap').css('visibility', '');
|
$('#screen-options-link-wrap').css('visibility', '');
|
||||||
$(this).removeClass('contextual-help-open');
|
$(this).removeClass('contextual-help-open');
|
||||||
} else {
|
} else {
|
||||||
$('#contextual-help-link').css({'backgroundImage':'url("images/screen-options-right-up.gif?ver=20100531")'});
|
$('#contextual-help-link').css({'backgroundPosition':'bottom right'});
|
||||||
$(this).addClass('contextual-help-open');
|
$(this).addClass('contextual-help-open');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -11,7 +11,7 @@ class WP_Admin_Bar {
|
||||||
if ( is_super_admin() ) {
|
if ( is_super_admin() ) {
|
||||||
require( ABSPATH . WPINC . '/admin-bar/admin-bar-superadmin.php' );
|
require( ABSPATH . WPINC . '/admin-bar/admin-bar-superadmin.php' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the protocol used throughout this code */
|
/* Set the protocol used throughout this code */
|
||||||
if ( is_ssl() )
|
if ( is_ssl() )
|
||||||
$this->proto = 'https://';
|
$this->proto = 'https://';
|
||||||
|
@ -184,7 +184,7 @@ class WP_Admin_Bar {
|
||||||
add_action( 'wp_before_admin_bar_render', 'wp_admin_bar_appearance_menu', 70 );
|
add_action( 'wp_before_admin_bar_render', 'wp_admin_bar_appearance_menu', 70 );
|
||||||
add_action( 'wp_before_admin_bar_render', 'wp_admin_bar_updates_menu', 80 );
|
add_action( 'wp_before_admin_bar_render', 'wp_admin_bar_updates_menu', 80 );
|
||||||
add_action( 'wp_before_admin_bar_render', 'wp_admin_bar_shortlink_menu', 90 );
|
add_action( 'wp_before_admin_bar_render', 'wp_admin_bar_shortlink_menu', 90 );
|
||||||
|
|
||||||
if ( is_multisite() && is_super_admin() && function_exists('wp_admin_bar_superadmin_settings_menu') )
|
if ( is_multisite() && is_super_admin() && function_exists('wp_admin_bar_superadmin_settings_menu') )
|
||||||
add_action( 'wp_before_admin_bar_render', 'wp_admin_bar_superadmin_settings_menu', 1000 );
|
add_action( 'wp_before_admin_bar_render', 'wp_admin_bar_superadmin_settings_menu', 1000 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue