mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Attach 'Screen Options' button to the sliding layer and related changes
git-svn-id: https://develop.svn.wordpress.org/trunk@9363 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3090,4 +3090,31 @@ function _post_states($post) {
|
||||
}
|
||||
}
|
||||
|
||||
function screen_options($screen, $metabox = false) {
|
||||
?>
|
||||
<div id="screen-options">
|
||||
<div id="screen-options-wrap" class="hidden">
|
||||
<h5><?php _e('Show on screen') ?></h5>
|
||||
<form id="adv-settings" action="" method="get">
|
||||
<div class="metabox-prefs">
|
||||
<?php
|
||||
if ( $metabox ) {
|
||||
meta_box_prefs($screen);
|
||||
} else {
|
||||
manage_columns_prefs($screen);
|
||||
wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false );
|
||||
}
|
||||
?>
|
||||
<br class="clear" />
|
||||
</div></form>
|
||||
</div>
|
||||
|
||||
<div id="screen-options-link-wrap" class="hide-if-no-js screen-options-closed">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user