Make WordPress Core


Ignore:
Timestamp:
04/29/2010 03:43:39 AM (14 years ago)
Author:
nacin
Message:

Nav menu UI updates. props koopersmith, see #13134.

File:
1 edited

Legend:

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

    r14235 r14287  
    35833583        $_wp_contextual_help = array();
    35843584
    3585     $settings = '';
     3585    $settings = apply_filters('screen_settings', '', $screen);
    35863586
    35873587    switch ( $screen->id ) {
    35883588        case 'widgets':
    35893589            $settings = '<p><a id="access-on" href="widgets.php?widgets-access=on">' . __('Enable accessibility mode') . '</a><a id="access-off" href="widgets.php?widgets-access=off">' . __('Disable accessibility mode') . "</a></p>\n";
    3590             $show_screen = true;
    35913590            break;
    35923591    }
     3592    if( $settings )
     3593        $show_screen = true;
    35933594?>
    35943595<div id="screen-meta">
    35953596<?php
    35963597    if ( $show_screen ) :
     3598        $default_text = __('Show on screen');
    35973599?>
    35983600<div id="screen-options-wrap" class="hidden">
    35993601    <form id="adv-settings" action="" method="post">
    3600     <h5><?php _e('Show on screen') ?></h5>
    3601     <div class="metabox-prefs">
    3602 <?php
    3603     if ( !meta_box_prefs($screen) && isset($column_screens) ) {
    3604         manage_columns_prefs($screen);
    3605     }
    3606 ?>
    3607     <br class="clear" />
    3608     </div>
    3609 <?php echo screen_layout($screen); ?>
    3610 <?php echo $screen_options; ?>
    3611 <?php echo $settings; ?>
     3602    <?php if ( isset($wp_meta_boxes[$screen->id]) ) : ?>
     3603        <h5><?php echo apply_filters('meta_box_prefs_header', $default_text); ?></h5>
     3604        <div class="metabox-prefs">
     3605            <?php meta_box_prefs($screen); ?>
     3606            <br class="clear" />
     3607        </div>
     3608        <?php endif;
     3609        if ( isset($column_screens) ) : ?>
     3610        <h5><?php echo apply_filters('columns_prefs_header', $default_text); ?></h5>
     3611        <div class="metabox-prefs">
     3612            <?php manage_columns_prefs($screen); ?>
     3613            <br class="clear" />
     3614        </div>
     3615    <?php endif;
     3616    echo screen_layout($screen);
     3617    echo $screen_options;
     3618    echo $settings; ?>
    36123619<div><?php wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false ); ?></div>
    36133620</form>
Note: See TracChangeset for help on using the changeset viewer.