Make WordPress Core


Ignore:
Timestamp:
06/01/2009 11:31:34 PM (17 years ago)
Author:
azaozz
Message:

Add "Accessibility Mode" for widgets screen (can be turned on from Screen Options). Add set_user_setting() to the UI state saving functions.

File:
1 edited

Legend:

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

    r11485 r11503  
    34323432        $_wp_contextual_help = array();
    34333433
     3434    $widgets_access = '';
     3435
    34343436    switch ( $screen ) {
    34353437        case 'post':
     
    34753477                $_wp_contextual_help['widgets'] = $help;
    34763478            }
     3479            $widgets_access = '<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";
     3480            $show_screen = true;
    34773481            break;
    34783482    }
     
    34973501<?php echo screen_layout($screen); ?>
    34983502<?php echo $screen_options; ?>
     3503<?php echo $widgets_access; ?>
    34993504<div><?php wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false ); ?></div>
    35003505</form>
Note: See TracChangeset for help on using the changeset viewer.