Screen Options tweaks. Uparrow when expanded.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9330 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b871689484
commit
3d3c4ec630
|
@ -82,8 +82,8 @@ if ( '' == $blog_name )
|
||||||
<img id="logo50" src="images/wp-logo.gif" alt="" /> <h1><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit site') ?>"><?php echo $blog_name ?></a>
|
<img id="logo50" src="images/wp-logo.gif" alt="" /> <h1><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit site') ?>"><?php echo $blog_name ?></a>
|
||||||
<?php if ( in_array( $pagenow, $settings_pages ) ) { ?>
|
<?php if ( in_array( $pagenow, $settings_pages ) ) { ?>
|
||||||
|
|
||||||
<span id="screen-options-link-wrap" class="hide-if-no-js">
|
<span id="screen-options-link-wrap" class="hide-if-no-js screen-options-closed">
|
||||||
<span id="screen-options" class="screen-options-closed">
|
<span id="screen-options">
|
||||||
<a href="#screen-options" id="show-settings-link" class="show-settings"><?php _e('Screen Options') ?></a>
|
<a href="#screen-options" id="show-settings-link" class="show-settings"><?php _e('Screen Options') ?></a>
|
||||||
<a href="#screen-options" id="hide-settings-link" class="show-settings" style="display:none;"><?php _e('Hide Options') ?></a>
|
<a href="#screen-options" id="hide-settings-link" class="show-settings" style="display:none;"><?php _e('Hide Options') ?></a>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -172,6 +172,7 @@ header( 'Content-Type: application/x-javascript; charset=UTF-8' );
|
||||||
{ "url" : "images/se.png" },
|
{ "url" : "images/se.png" },
|
||||||
{ "url" : "images/screen-options-left.gif" },
|
{ "url" : "images/screen-options-left.gif" },
|
||||||
{ "url" : "images/screen-options-right.gif" },
|
{ "url" : "images/screen-options-right.gif" },
|
||||||
|
{ "url" : "images/screen-options-right-up.gif" },
|
||||||
|
|
||||||
<?php if ( is_file('../wp-includes/js/tinymce/tiny_mce.js') ) { ?>
|
<?php if ( is_file('../wp-includes/js/tinymce/tiny_mce.js') ) { ?>
|
||||||
{ "url" : "../wp-includes/js/tinymce/tiny_mce.js", "src" : "../wp-includes/js/tinymce/tiny_mce.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true },
|
{ "url" : "../wp-includes/js/tinymce/tiny_mce.js", "src" : "../wp-includes/js/tinymce/tiny_mce.js?ver=<?php echo $mce_ver; ?>", "ignoreQuery" : true },
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 278 B |
|
@ -3,6 +3,7 @@ jQuery(document).ready( function($) {
|
||||||
$('#screen-options-wrap').slideDown('normal', function(){
|
$('#screen-options-wrap').slideDown('normal', function(){
|
||||||
$('#hide-settings-link').show();
|
$('#hide-settings-link').show();
|
||||||
$('#show-settings-link').hide();
|
$('#show-settings-link').hide();
|
||||||
|
$('#screen-options-link-wrap').removeClass('screen-options-closed').addClass('screen-options-open');
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -12,6 +13,7 @@ jQuery(document).ready( function($) {
|
||||||
$('#screen-options-wrap').slideUp('normal', function(){
|
$('#screen-options-wrap').slideUp('normal', function(){
|
||||||
$('#show-settings-link').show();
|
$('#show-settings-link').show();
|
||||||
$('#hide-settings-link').hide();
|
$('#hide-settings-link').hide();
|
||||||
|
$('#screen-options-link-wrap').removeClass('screen-options-open').addClass('screen-options-closed');
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -2221,6 +2221,10 @@ fieldset {
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.screen-options-open #screen-options {
|
||||||
|
background: url( images/screen-options-right-up.gif ) no-repeat 100% 0;
|
||||||
|
}
|
||||||
|
|
||||||
#screen-options a.show-settings {
|
#screen-options a.show-settings {
|
||||||
color: #666;
|
color: #666;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -2265,8 +2269,7 @@ fieldset {
|
||||||
float: left;
|
float: left;
|
||||||
padding: 5px 3px;
|
padding: 5px 3px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
min-width: 14em;
|
||||||
width: 14em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.metabox-prefs label input {
|
.metabox-prefs label input {
|
||||||
|
|
|
@ -272,7 +272,7 @@ function wp_default_scripts( &$scripts ) {
|
||||||
'requestFile' => admin_url('admin-ajax.php'),
|
'requestFile' => admin_url('admin-ajax.php'),
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$scripts->add( 'settings-box', '/wp-admin/js/settings-box.js', array( 'jquery' ), '20081023' );
|
$scripts->add( 'settings-box', '/wp-admin/js/settings-box.js', array( 'jquery' ), '20081024' );
|
||||||
|
|
||||||
$scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox', 'settings-box' ), '20081016' );
|
$scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox', 'settings-box' ), '20081016' );
|
||||||
|
|
||||||
|
@ -308,7 +308,7 @@ function wp_default_styles( &$styles ) {
|
||||||
|
|
||||||
$rtl_styles = array( 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'press-this-ie' );
|
$rtl_styles = array( 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'press-this-ie' );
|
||||||
|
|
||||||
$styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20081023d' );
|
$styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20081024' );
|
||||||
$styles->add_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' );
|
$styles->add_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' );
|
||||||
|
|
||||||
$styles->add( 'ie', '/wp-admin/css/ie.css' );
|
$styles->add( 'ie', '/wp-admin/css/ie.css' );
|
||||||
|
|
Loading…
Reference in New Issue