Make WordPress Core


Ignore:
Timestamp:
10/27/2008 01:22:24 AM (17 years ago)
Author:
azaozz
Message:

Attach 'Screen Options' button to the sliding layer and related changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r9350 r9363  
    30913091}
    30923092
     3093function screen_options($screen, $metabox = false) {
    30933094?>
     3095<div id="screen-options">
     3096    <div id="screen-options-wrap" class="hidden">
     3097    <h5><?php _e('Show on screen') ?></h5>
     3098    <form id="adv-settings" action="" method="get">
     3099    <div class="metabox-prefs">
     3100<?php
     3101    if ( $metabox ) {
     3102        meta_box_prefs($screen);
     3103    } else {
     3104        manage_columns_prefs($screen);
     3105        wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false );
     3106    }
     3107?>
     3108    <br class="clear" />
     3109    </div></form>
     3110    </div>
     3111
     3112    <div id="screen-options-link-wrap" class="hide-if-no-js screen-options-closed">
     3113    <a href="#screen-options" id="show-settings-link" class="show-settings"><?php _e('Screen Options') ?></a>
     3114    <a href="#screen-options" id="hide-settings-link" class="show-settings" style="display:none;"><?php _e('Hide Options') ?></a>
     3115    </div>
     3116</div>
     3117<?php
     3118}
     3119
     3120?>
Note: See TracChangeset for help on using the changeset viewer.