disable accessibilityamt mode是什么意思思

E-Banking to increase accessibility for disabled
BEIJING -- China's electronic banking service is required to provide easier access for the disabled, according to a guideline co-issued by China Disabled Persons Federation (CDPF) and China Banking Association on Monday.
The guideline asks banks to promote accessibility primarily for three kinds of disabled people using E-Banking services such as phone and online banking.
For visually impaired users, E-banking will provide specially designed shortcut touch menu, active ID recognition and easy verification codes.
For the deaf customers, the primary concern will be offering multiple visual facilities and instant short message service.
For the physically disabled, the bank will establish a long-distance self-service system allowing them to open accounts from home, which traditionally requires a physical presence at the bank.
The guideline is a holiday gift for the 85 million disabled people in China to enable the convenience of technology, just ahead of the International Day of Disabled Persons observed on Dec 3 annually, said Lv Shiming, vice-chairman of the CDFP.
Related Stories
Hot Topics
Editor's PicksProduct Update - Valve
Official 1.002(Released February 19th, 2013) Fixed a bug in the prior version where mouse aiming was on by default. Thanks to Varone for reporting. Updated the crates room to include text telling you that you can enable mouse aiming in the settings menu. Updated the controls display at the start of the game and the armory with the same.Official 1.001 Mouse Aiming For Those Who Stood And Fought(Released February 19th, 2013) Fixed a bug that could occasionally cause exceptions to be thrown when first generating the interior of a new building. - Thanks to windgen, Vatticson, and Mick for reporting. Previously, there was a bug where the "enter NPC movement mode" keybind could work in side view, causing a warning message to pop up. - Thanks to Mick and Penumbra for reporting.Fixed a minor graphical issue where "molten lava damage" was reporting damage 100x higher than was actually being done to you.Mouse Aiming Option Added To SettingsAn option has now been provided in the settings menu for "Enable Mouse Aiming." This lets players who find keyboard or gamepad controls to be repugnant to experience the game in some manner. Our view is that this manner is sub-par and watered-down, but we've finally started looking at this as more of an accessibility mode. It's not ideal, but it allows a certain demographic to play who is otherwise unable/unwilling to do so. There is also a corresponding default keybinding set that has been added, which gives you WASD + mouse controls when used in tandem with the above option. Or you can set your own.
Product Release - Valve
Train Simulator 2013 brings to Steam a new standalone route for train enthusiasts to enjoy.
brings together the exhilaration of high speed trains with the more serene ‘classic’ third rail lines of Kent all in one route, complete with the streamlined Southeastern Class 395.Departing London St Pancras, the route for Train Simulator passes under the City with Class 395s reaching speeds of 140mph before stopping at Stratford International on the edge of the London 2012 Olympic Park. Speeding through the Essex countryside and under the River Thames, high speed services stop at Ebbsfleet International Station, where power switches from overhead electrification to third rail pick-up. From here, Class 395s cross onto the ‘classic’ Kent lines, pausing at stations including Gravesend, Rochester and Sittingbourne, before terminating at Faversham. is an accurate depiction of a fantastic modern image UK route with stunning scenery through the Kent countryside.
It features accurate depictions of London St Pancras Station, Ebbsfleet International Station, Rochester Castle and Cathedral, and the QEII Bridge at Dartford, and many hours of enjoyable and challenging driving.
Announcement - Valve
for FREE until Sunday at 1PM Pacific Time. You can also purchase
at 75% off during this time.If you already have Steam installed, click
to install or play Gratuitous Space Battles.
If you don't have Steam, you can download it .Who needs backstory? Who needs resource-gathering? Diplomacy is so last year. Gratuitous Space Battles cuts right to the chase of sci-fi strategy games, and deals with large, completely unjustified space battles between huge opposing space fleets.Gratuitous Space Battles combines the visual appeal of an RTS, with the addictive unit-placement and design gameplay from tower defense games. In GSB, the player does not control individual ships at all during battle. The ships fight to a pre-determined set of orders and formations given to them by you before the battles.GSB casts you as supreme space admiral, tasked with the design of individual spaceships, and the composition of your fleet, as well as general orders of engagement. This is not a twitch-based real time arcade game like many an RTS, but a game of careful thought, planning and big-picture strategy. Huge space battles can be won or lost depending on just how cleverly you balanced the needs of defensive shielding and armor against the expensive punch of laser cannons and plasma torpedoes.
Announcement - Valve
for FREE until Sunday at 1PM Pacific Time. You can also purchase
at 33% off during this time.If you already have Steam installed, click
to install or play the Multiplayer portion of Black Ops II.
If you don't have Steam, you can download it .Pushing the boundaries of what fans have come to expect from the record-setting entertainment franchise, Call of Duty&: Black Ops II propels players into a near future, 21st Century Cold War, where technology and weapons have converged to create a new generation of warfare.
Announcement - Valve
Today's Deal: Save 75% on !Look for the deals each day on the front page of Steam.
Or follow us on
for instant notifications wherever you are!
Product Release - Valve
is Now Available on Steam!More Stories, More Weapons, More Characters. Extend the narrative and adventure with the BioShock Infinite Season Pass.Get three add-ons for the price of two, plus an instant bonus on Day 1 with The Early Bird Special Pack, only available to Season Pass holders.The Instant Day 1 bonus pack contains four pieces of exclusive gear, a Machine Gun Damage Upgrade, a Pistol Damage Upgrade, a gold skin for both weapons and five Infusion bottles that allow players to increase their health, their shield durability or their ability to use Vigors by increasing the quantity of Salts they can carry.
Product Update - Valve
Contents- New Trailer out, now!!
- New maps:-- Battle on the Dunes 3v3 Deathmatch-- Fight over Firnfeld 3v3 Deathmatch (based on Anglean Raiders)-- Canyon Ambush 3v3 Deathmatch-- Northern Fjords 3v3 Deathmatch- New hats in the storeFeatures- First release on Linux!
(Awaiting steam for store integration to go live in store)-- Known issues: black patches on some ships at some angles, antialiasing does not yet work-- this build, while stable, is primarily intended to collect feedback from the community- Added automatic AFK detection: kicks players from a match after 2 minutes with no input- Added a “Go AFK” button in Options that allows you to temporarily replace yourself with an AI and resume later. (Will still be removed after 5 inactive minutes)- Added effects to indicate buffed and fireproofed components- Practice: added hotkeys to toggle AI on/off, damage your ship, and light your ship on fire -- You may need to manually bind these keys in the Options menu, or reset your bindings to default to get their default bindings (this is a known bug with our keybinding system)- Tutorial text is much more detailed and context-sensitive, including explanation of various tools- Gun tooltip UI in ship customization changed to a more graphical design for clarity- Guns now gradually lose functionality as they are damaged (like engines and the balloon)-- Time between shots and time to reload increases linearly with damage, up to 150% normal-- Rotation speed decreases linearly with damageMap Changes- New spawn logic to combat “spawn camping.”
Please report any issues with screenshots of the map screen and the map you were playing to - Adjusted spawn points to support new logic- Reduced “Scrap on the Dunes” point limit to 800Balance- Changes to fire and fire-related equipment:-- Maximum fire charge count increased to 20 (from 16)-- 8 charges required to disable guns (guns will glow red when 8 charges are reached)-- Fires deal base 8 each charge deals an additional 2 fire damage per second-- Fire damage multiplier against mechanical parts reduced to 0.25 (from 0.8)-- Fire damage multiplier against armor increase to 0.5 (from 0.4)-- Chemical Spray: extinguish power 2, makes component immune to additional charges for 12 seconds, causes 6 seconds of repair cooldown-- Fire Extinguisher: Extinguishes all charges, causes 10 seconds of repair cooldown-- Reminder: Fire-fighting tools bypass repair cooldown to extinguish fires but do not cancel them-- Banshee Rocket has 12% chance to apply 3 charges on direct hit, 30% change to apply 1 on AoE as well-- Dragon Tongue has 13% chance to apply 1 charge per particle (13 particles per second)-- Incendiary Rounds adds a separate 10% chance to apply 1 charge on hit to all weapons.- Typhon Flak Cannon:-- Arming time of 1 does not apply area damage until ~240m-- Damage is split evenly between direct and area (so it will deal half damage under arming distance)- Mercury Field Gun-- Decreased piercing damage (from 100 to 75)-- Increased projectile drop (from 12 to 15 m/s^2)- Hellhound Heavy Twin Carronade-- Increased spread (from 2.5 degrees to 6)- Banshee Rocket Carousel-- Increased direct and area damage (from 15/20 to 20/25)-- Added chance to cause fires (12% chance of 3 charges on direct hit, 30% chance of 1 charge on area hit)-- Decreased spread (from 5 degrees to 3)-- Reduced burst area radius (from 14 to 8)- Dragon Tongue Light Flamethrower-- Increased damage per particle (from 3 to 4)-- Reduced chance to add fire charge per particle (from 25% to 13%)- Artemis Light Rocket Launcher-- Decreased area radius from 4 to 3-- Decreased direct damage from 80 to 60-- Increased area damage from 70 to 120- Other skills:-- Tar Barrel clouds slightly larger (by about 30%)-- Lochnagar Shot: rate of fire reduction change to -25% (from -15%), spread reduction increased to -100% (from -90%), rotation speed penalty increased to -100% (from -95%)-- Lesmok Rounds: rotation speed penalty changed to -40% (from -30%)-- Doubled the number of hits required to rebuild guns and engines- Squid received small boost to armor, from 200 to 220 (Charged Rounds + Field Gun now requires 2 shots to destroy full Squid armor)- Other damage type changes:-- Explosive damage multiplier against armor reduced to 0.3 (from 0.5)-- Flechette damage multiplier against armor increased to 0.5 (from 0.2)-- Flechette damage multiplier against hull health decreased to 0.2 (from 0.3)- Reduced damage dealt by sandstorms (from 7 to 5 shatter damage per second)Fixes and Optimization- Fixed a small difference in vertical positioning of gun interaction boxes between client and server (previously you could get kicked off the gun unexpectedly in edge cases)- Projectiles that detonate due to damage no longer cause friendly fire.- Spectators: Opening the menu in spectator mode no longer resets your position- Spectators: Fixed interest management issue that could cause guns or engines to disappear from ships near the edge of the map or in cloud cover.- Optimized most level and ship assets to reduce vert count, texture size, and draw count where possible.
Should improve frame rate, particularly on low-end machines.Player- Call for video submission! Show off how and why you fly in a 2 min short video, and add another 2 minutes of you and your crew in game.
All for a chance to win a one-of-a-kind Guns of Icarus Online bullet USB. /community/blog/we-want-to-hear-from-you/- Facebook and Steam like drive still going on.
We are 500 away from 2000 recommends on Steam, and a bit over 2,500 likes on facebook, so plenty of chances to win stuff still.
Give us a like and help us spread the word! - Inaugural “the Cogs” league open for sign ups!/community/forumarchive/discussion/1202/guns-of-icarus-league-official-sign-up#Item_3
Product Release - Valve
is now available on Steam!Join the scores of desperate survivors in the free award-winning and massively popular persistent multiplayer mod for Arma 2: Combined Operations!Go Solo, team up with friends or take on the world as you choose your path in this brutal and chilling landscape using whatever means you stumble upon to survive. However the infected are not your only threat. You will be forced to fight for your life against other survivors, over rare necessities like food and water, in your constant battle to survive in this wicked world.
Product Update - Valve
Release Notes for 2/20/2013[ MISC ]- Reduced Glock damage.- Reduced Deagle inaccuracy.- Reduced Fiveseven and Tec9 prices.- Added checks to prevent clients from executing workshop concommands.- GameModes.txt and individual map kv files now get updated and loaded everytime a new map is loaded.- Newly subscribed maps in workshop map selector are sorted to the start of the list.- Fixed some cases where workshop maps failed to download.- Added status indicator to main menu that shows if maps are currently downloading.- Added convar sv_rcon_whitelist_address, rcon clients failing to auth from the specified IP address will never get banned.- Fixed Windows GOTV relays crashing when running without Steam client.- Improved handling of workshop maps on GOTV relays.- Added support for specifying +tv_enable 1 +tv_relay ip:port on GOTV relay commandline.
Announcement - Valve
is now available on Mac and Linux ans is now 50% off*!With those closest to him under attack, Shank is once again forced on the offensive. Now he must put his trusty arsenal of handguns, shotguns, automatic weapons, chainsaws, machetes, grenades, plus all-new weaponry and moves to use in order to protect those close to him. The original game set a new standard for its visual style and Shank 2 raises the bar. Shank 2 expands on the original game’s amazing combat system to redefine the 2D side-scrolling brawler.*Offer valid until February 27th at 10AM Pacific timewordpress_mobile_12
readme.txt
bigdoc.html
bigdocutf.html
docutf.html
color-picker-rtl.css
color-picker-rtl.min.css
color-picker.css
color-picker.min.css
colors-classic.css
colors-classic.min.css
colors-fresh.css
colors-fresh.min.css
customize-controls-rtl.css
customize-controls-rtl.min.css
customize-controls.css
customize-controls.min.css
farbtastic.css
ie-rtl.css
ie-rtl.min.css
ie.min.css
install.css
install.min.css
media-rtl.css
media-rtl.min.css
media.min.css
wp-admin-rtl.css
wp-admin-rtl.min.css
wp-admin.css
wp-admin.min.css
screenshots
about-color-picker.png
about-media.png
about-retina.png
about-twenty-twelve.png
align-center-2x.png
align-center.png
align-left-2x.png
align-left.png
align-none-2x.png
align-none.png
align-right-2x.png
align-right.png
arrows-2x.png
arrows-dark-2x.png
arrows-dark-vs-2x.png
arrows-dark-vs.png
arrows-dark.png
arrows-vs-2x.png
arrows-vs.png
arrows.png
bubble_bg-2x.gif
bubble_bg-rtl-2x.gif
bubble_bg-rtl.gif
bubble_bg.gif
comment-grey-bubble-2x.png
comment-grey-bubble.png
date-button-2x.gif
date-button.gif
generic.png
icons32-2x.png
icons32-vs-2x.png
icons32-vs.png
icons32.png
imgedit-icons-2x.png
imgedit-icons.png
list-2x.png
loading.gif
marker.png
media-button-2x.png
media-button-image.gif
media-button-music.gif
media-button-other.gif
media-button-video.gif
media-button.png
menu-2x.png
menu-shadow-rtl.png
menu-shadow.png
menu-vs-2x.png
menu-vs.png
press-this-2x.png
press-this.png
resize-2x.gif
resize-rtl-2x.gif
resize-rtl.gif
resize.gif
sort-2x.gif
stars-2x.png
stars-rtl-2x.png
stars-rtl.png
welcome-icons-2x.png
welcome-icons.png
wordpress-logo-2x.png
wordpress-logo.png
wp-badge-2x.png
wp-badge.png
wp-logo-2x.png
wp-logo-vs-2x.png
wp-logo-vs.png
wp-logo.png
wpspin_light-2x.gif
wpspin_light.gif
xit-2x.gif
wp-content
twentyeleven-zh_CN.mo
twentyeleven-zh_CN.po
twentyten-zh_CN.mo
twentyten-zh_CN.po
twentytwelve-zh_CN.mo
twentytwelve-zh_CN.po
admin-network-zh_CN.mo
admin-network-zh_CN.po
admin-zh_CN.mo
admin-zh_CN.po
continents-cities-zh_CN.mo
continents-cities-zh_CN.po
zh_CN-administration-screens.css
zh_CN-administration-screens.dev.css
Mobile-better(grey)
google-code-prettify
screenshot.png
mobile_pack
screenshot.jpg
sofa_iBloggr
backgrounds.png
baloon.png
body_bg.jpg
bullet.png
delicious.png
facebook.png
flickr.png
google.png
iBloggr_logo.png
linkedin.png
nav-bullet.gif
navigation-icon.png
navigation.gif
twitter-bird.png
twitter-bubble-bottom.png
twitter-bubble-spike.png
twitter-bubble-top.png
twitter.png
ie-style.css
screenshot.png
wp-includes
admin-bar-rtl.css
admin-bar-rtl.min.css
admin-bar.css
admin-bar.min.css
buttons.css
buttons.min.css
editor.css
editor.min.css
jquery-ui-dialog.css
jquery-ui-dialog.min.css
media-views-rtl.css
media-views-rtl.min.css
media-views.css
media-views.min.css
wp-pointer.css
wp-pointer.min.css
archive.png
default.png
document.png
interactive.png
license.txt
spreadsheet.png
icon_arrow.gif
icon_biggrin.gif
icon_confused.gif
icon_cool.gif
icon_cry.gif
icon_eek.gif
icon_evil.gif
icon_exclaim.gif
icon_idea.gif
icon_lol.gif
icon_mad.gif
icon_mrgreen.gif
icon_neutral.gif
icon_question.gif
icon_razz.gif
icon_redface.gif
icon_rolleyes.gif
icon_sad.gif
icon_smile.gif
icon_surprised.gif
icon_twisted.gif
icon_wink.gif
wp-comments.png
wp-icon.png
wp-watermark.png
admin-bar-sprite-2x.png
admin-bar-sprite.png
arrow-pointer-blue-2x.png
arrow-pointer-blue.png
down_arrow-2x.gif
down_arrow.gif
icon-pointer-flag-2x.png
icon-pointer-flag.png
rss-2x.png
toggle-arrow-2x.png
toggle-arrow.png
uploader-icons-2x.png
uploader-icons.png
wpicons-2x.png
wpicons.png
wpmini-blue-2x.png
wpmini-blue.png
wpspin-2x.gif
wpspin.gif
xit-2x.gif
cropper.css
marqueeHoriz.gif
marqueeVert.gif
imgareaselect
border-anim-h.gif
border-anim-v.gif
imgareaselect.css
jquery.Jcrop.min.css
changelog.txt
license.txt
plupload.flash.swf
plupload.silverlight.xap
license.txt
swfupload.swf
loadingAnimation.gif
macFFBgHack.png
tb-close-2x.png
tb-close.png
thickbox.css
directionality
fullscreen
fullscreen.htm
inlinepopups
clearlooks2
button.gif
buttons.gif
confirm.gif
corners.gif
horizontal.gif
vertical.gif
window.css
template.htm
moxieplayer.swf
pastetext.htm
pasteword.htm
spellchecker
content.css
changelog.txt
wpeditimage
editimage.css
delete-2x.png
delete.png
image-2x.png
editimage.html
wpfullscreen
wp-fullscreen.css
delete-2x.png
delete.png
edit-2x.png
colorpicker.jpg
gotmoxie.png
iframe.gif
pagebreak.gif
quicktime.gif
realmedia.gif
shockwave.gif
windowsmedia.gif
buttons.png
menu_arrow.gif
menu_check.gif
progress.gif
content.css
dialog.css
highcontrast
content.css
dialog.css
button_bg.png
button_bg_black.png
button_bg_silver.png
content.css
dialog.css
ui_black.css
ui_silver.css
embedded.png
gallery.png
more_bug.gif
page_bug.gif
content.css
dialog.css
anchor.htm
charmap.htm
color_picker.htm
shortcuts.htm
source_editor.htm
license.txt
wp-tinymce.js.gz
Declaration
theme-compat
wlwmanifest.xml
.buildpath
license.txt
readme.html
* WordPress Administration Screen API.
* @package WordPress
* @subpackage Administration
* Get the column headers for a screen
* @since 2.7.0
* @param string|WP_Screen $screen The screen you want the headers for
* @return array Containing the headers in the format id =& UI String
function get_column_headers( $screen ) {
if ( is_string( $screen ) )
$screen = convert_to_screen( $screen );
static $column_headers = array();
if ( ! isset( $column_headers[ $screen-&id ] ) )
$column_headers[ $screen-&id ] = apply_filters( 'manage_' . $screen-&id . '_columns', array() );
return $column_headers[ $screen-&id ];
* Get a list of hidden columns.
* @since 2.7.0
* @param string|WP_Screen $screen The screen you want the hidden columns for
* @return array
function get_hidden_columns( $screen ) {
if ( is_string( $screen ) )
$screen = convert_to_screen( $screen );
return (array) get_user_option( 'manage' . $screen-&id . 'columnshidden' );
* Prints the meta box preferences for screen meta.
* @since 2.7.0
* @param string|WP_Screen $screen
function meta_box_prefs( $screen ) {
global $wp_meta_
if ( is_string( $screen ) )
$screen = convert_to_screen( $screen );
if ( empty($wp_meta_boxes[$screen-&id]) )
$hidden = get_hidden_meta_boxes($screen);
foreach ( array_keys($wp_meta_boxes[$screen-&id]) as $context ) {
foreach ( array_keys($wp_meta_boxes[$screen-&id][$context]) as $priority ) {
foreach ( $wp_meta_boxes[$screen-&id][$context][$priority] as $box ) {
if ( false == $box || ! $box['title'] )
// Submit box cannot be hidden
if ( 'submitdiv' == $box['id'] || 'linksubmitdiv' == $box['id'] )
$box_id = $box['id'];
echo '&label for=&' . $box_id . '-hide&&';
echo '&input class=&hide-postbox-tog& name=&' . $box_id . '-hide& type=&checkbox& id=&' . $box_id . '-hide& value=&' . $box_id . '&' . (! in_array($box_id, $hidden) ? ' checked=&checked&' : '') . ' /&';
echo &{$box['title']}&/label&\n&;
* Get Hidden Meta Boxes
* @since 2.7.0
* @param string|WP_Screen $screen Screen identifier
* @return array Hidden Meta Boxes
function get_hidden_meta_boxes( $screen ) {
if ( is_string( $screen ) )
$screen = convert_to_screen( $screen );
$hidden = get_user_option( &metaboxhidden_{$screen-&id}& );
$use_defaults = ! is_array( $hidden );
// Hide slug boxes by default
if ( $use_defaults ) {
$hidden = array();
if ( 'post' == $screen-&base ) {
if ( 'post' == $screen-&post_type || 'page' == $screen-&post_type || 'attachment' == $screen-&post_type )
$hidden = array('slugdiv', 'trackbacksdiv', 'postcustom', 'postexcerpt', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'revisionsdiv');
$hidden = array( 'slugdiv' );
$hidden = apply_filters( 'default_hidden_meta_boxes', $hidden, $screen );
return apply_filters( 'hidden_meta_boxes', $hidden, $screen, $use_defaults );
* Register and configure an admin screen option
* @since 3.1.0
* @param string $option An option name.
* @param mixed $args Option-dependent arguments.
function add_screen_option( $option, $args = array() ) {
$current_screen = get_current_screen();
if ( ! $current_screen )
$current_screen-&add_option( $option, $args );
* Displays a screen icon.
* @uses get_screen_icon()
* @since 2.7.0
* @param string|WP_Screen $screen Optional. Accepts a screen object (and defaults to the current screen object)
which it uses to determine an icon HTML ID. Or, if a string is provided, it is used to form the icon HTML ID.
function screen_icon( $screen = '' ) {
echo get_screen_icon( $screen );
* Gets a screen icon.
* @since 3.2.0
* @param string|WP_Screen $screen Optional. Accepts a screen object (and defaults to the current screen object)
which it uses to determine an icon HTML ID. Or, if a string is provided, it is used to form the icon HTML ID.
* @return string HTML for the screen icon.
function get_screen_icon( $screen = '' ) {
if ( empty( $screen ) )
$screen = get_current_screen();
elseif ( is_string( $screen ) )
$icon_id = $
$class = 'icon32';
if ( empty( $icon_id ) ) {
if ( ! empty( $screen-&parent_base ) )
$icon_id = $screen-&parent_
$icon_id = $screen-&
if ( 'page' == $screen-&post_type )
$icon_id = 'edit-pages';
if ( $screen-&post_type )
$class .= ' ' . sanitize_html_class( 'icon32-posts-' . $screen-&post_type );
return '&div id=&icon-' . esc_attr( $icon_id ) . '& class=&' . $class . '&&&br /&&/div&';
* Get the current screen object
* @since 3.1.0
* @return WP_Screen Current screen object
function get_current_screen() {
global $current_
if ( ! isset( $current_screen ) )
return $current_
* Set the current screen object
* @since 3.0.0
* @uses $current_screen
* @param mixed $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen,
* or an existing screen object.
function set_current_screen( $hook_name = '' ) {
WP_Screen::get( $hook_name )-&set_current_screen();
* A class representing the admin screen.
* @since 3.3.0
* @access public
final class WP_Screen {
* Any action associated with the screen. 'add' for *-add.php and *-new.php screens. Empty otherwise.
* @since 3.3.0
* @var string
* @access public
* The base type of the screen. This is typically the same as $id but with any post types and taxonomies stripped.
* For example, for an $id of 'edit-post' the base is 'edit'.
* @since 3.3.0
* @var string
* @access public
* The number of columns to display. Access with get_columns().
* @since 3.4.0
* @var int
* @access private
private $columns = 0;
* The unique ID of the screen.
* @since 3.3.0
* @var string
* @access public
* Which admin the screen is in. network | user | site | false
* @since 3.5.0
* @var string
* @access protected
protected $in_
* Whether the screen is in the network admin.
* Deprecated. Use in_admin() instead.
* @since 3.3.0
* @deprecated 3.5.0
* @var bool
* @access public
public $is_
* Whether the screen is in the user admin.
* Deprecated. Use in_admin() instead.
* @since 3.3.0
* @deprecated 3.5.0
* @var bool
* @access public
public $is_
* The base menu parent.
* This is derived from $parent_file by removing the query string and any .php extension.
* $parent_file values of 'edit.php?post_type=page' and 'edit.php?post_type=post' have a $parent_base of 'edit'.
* @since 3.3.0
* @var string
* @access public
public $parent_
* The parent_file for the screen per the admin menu system.
* Some $parent_file values are 'edit.php?post_type=page', 'edit.php', and 'options-general.php'.
* @since 3.3.0
* @var string
* @access public
public $parent_
* The post type associated with the screen, if any.
* The 'edit.php?post_type=page' screen has a post type of 'page'.
* The 'edit-tags.php?taxonomy=$taxonomy&post_type=page' screen has a post type of 'page'.
* @since 3.3.0
* @var string
* @access public
public $post_
* The taxonomy associated with the screen, if any.
* The 'edit-tags.php?taxonomy=category' screen has a taxonomy of 'category'.
* @since 3.3.0
* @var string
* @access public
* The help tab data associated with the screen, if any.
* @since 3.3.0
* @var array
* @access private
private $_help_tabs = array();
* The help sidebar data associated with screen, if any.
* @since 3.3.0
* @var string
* @access private
private $_help_sidebar = '';
* Stores old string-based help.
private static $_old_compat_help = array();
* The screen options associated with screen, if any.
* @since 3.3.0
* @var array
* @access private
private $_options = array();
* The screen object registry.
* @since 3.3.0
* @var array
* @access private
private static $_registry = array();
* Stores the result of the public show_screen_options function.
* @since 3.3.0
* @var bool
* @access private
private $_show_screen_
* Stores the 'screen_settings' section of screen options.
* @since 3.3.0
* @var string
* @access private
private $_screen_
* Fetches a screen object.
* @since 3.3.0
* @access public
* @param string $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen.
Defaults to the current $hook_suffix global.
* @return WP_Screen Screen object.
public static function get( $hook_name = '' ) {
if ( is_a( $hook_name, 'WP_Screen' ) )
return $hook_
$post_type = $taxonomy =
$in_admin =
$action = '';
if ( $hook_name )
$id = $hook_
$id = $GLOBALS['hook_suffix'];
// For those pesky meta boxes.
if ( $hook_name && post_type_exists( $hook_name ) ) {
$post_type = $
$id = 'post'; // changes later. ends up being $base.
if ( '.php' == substr( $id, -4 ) )
$id = substr( $id, 0, -4 );
if ( 'post-new' == $id || 'link-add' == $id || 'media-new' == $id || 'user-new' == $id ) {
$id = substr( $id, 0, -4 );
$action = 'add';
if ( ! $post_type && $hook_name ) {
if ( '-network' == substr( $id, -8 ) ) {
$id = substr( $id, 0, -8 );
$in_admin = 'network';
} elseif ( '-user' == substr( $id, -5 ) ) {
$id = substr( $id, 0, -5 );
$in_admin = 'user';
$id = sanitize_key( $id );
if ( 'edit-comments' != $id && 'edit-tags' != $id && 'edit-' == substr( $id, 0, 5 ) ) {
$maybe = substr( $id, 5 );
if ( taxonomy_exists( $maybe ) ) {
$id = 'edit-tags';
$taxonomy = $
} elseif ( post_type_exists( $maybe ) ) {
$id = 'edit';
$post_type = $
if ( ! $in_admin )
$in_admin = 'site';
if ( defined( 'WP_NETWORK_ADMIN' ) && WP_NETWORK_ADMIN )
$in_admin = 'network';
elseif ( defined( 'WP_USER_ADMIN' ) && WP_USER_ADMIN )
$in_admin = 'user';
$in_admin = 'site';
if ( 'index' == $id )
$id = 'dashboard';
elseif ( 'front' == $id )
$in_admin =
// If this is the current screen, see if we can be more accurate for post types and taxonomies.
if ( ! $hook_name ) {
if ( isset( $_REQUEST['post_type'] ) )
$post_type = post_type_exists( $_REQUEST['post_type'] ) ? $_REQUEST['post_type'] :
if ( isset( $_REQUEST['taxonomy'] ) )
$taxonomy = taxonomy_exists( $_REQUEST['taxonomy'] ) ? $_REQUEST['taxonomy'] :
switch ( $base ) {
case 'post' :
if ( isset( $_GET['post'] ) )
$post_id = (int) $_GET['post'];
elseif ( isset( $_POST['post_ID'] ) )
$post_id = (int) $_POST['post_ID'];
$post_id = 0;
if ( $post_id ) {
$post = get_post( $post_id );
if ( $post )
$post_type = $post-&post_
case 'edit-tags' :
if ( null === $post_type && is_object_in_taxonomy( 'post', $taxonomy ? $taxonomy : 'post_tag' ) )
$post_type = 'post';
switch ( $base ) {
case 'post' :
if ( null === $post_type )
$post_type = 'post';
$id = $post_
case 'edit' :
if ( null === $post_type )
$post_type = 'post';
$id .= '-' . $post_
case 'edit-tags' :
if ( null === $taxonomy )
$taxonomy = 'post_tag';
// The edit-tags ID does not contain the post type. Look for it in the request.
if ( null === $post_type ) {
$post_type = 'post';
if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) )
$post_type = $_REQUEST['post_type'];
$id = 'edit-' . $
if ( 'network' == $in_admin ) {
.= '-network';
$base .= '-network';
} elseif ( 'user' == $in_admin ) {
.= '-user';
$base .= '-user';
if ( isset( self::$_registry[ $id ] ) ) {
$screen = self::$_registry[ $id ];
if ( $screen === get_current_screen() )
$screen = new WP_Screen();
$screen-&id
$screen-&base
$screen-&action
$screen-&post_type
= (string) $post_
$screen-&taxonomy
= (string) $
$screen-&is_user
= ( 'user' == $in_admin );
$screen-&is_network = ( 'network' == $in_admin );
$screen-&in_admin
self::$_registry[ $id ] = $
* Makes the screen object the current screen.
* @see set_current_screen()
* @since 3.3.0
function set_current_screen() {
global $current_screen, $taxnow, $
$current_screen = $
$taxnow = $this-&
$typenow = $this-&post_
do_action( 'current_screen', $current_screen );
* Constructor
* @since 3.3.0
* @access private
private function __construct() {}
* Indicates whether the screen is in a particular admin
* @since 3.5.0
* @param string $admin The admin to check against (network | user | site).
* If empty any of the three admins will result in true.
* @return boolean True if the screen is in the indicated admin, false otherwise.
public function in_admin( $admin = null ) {
if ( empty( $admin ) )
return (bool) $this-&in_
return ( $admin == $this-&in_admin );
* Sets the old string-based contextual help for the screen.
* For backwards compatibility.
* @since 3.3.0
* @param WP_Screen $screen A screen object.
* @param string $help Help text.
static function add_old_compat_help( $screen, $help ) {
self::$_old_compat_help[ $screen-&id ] = $
* Set the parent information for the screen.
* This is called in admin-header.php after the menu parent for the screen has been determined.
* @since 3.3.0
* @param string $parent_file The parent file of the screen. Typically the $parent_file global.
function set_parentage( $parent_file ) {
$this-&parent_file = $parent_
list( $this-&parent_base ) = explode( '?', $parent_file );
$this-&parent_base = str_replace( '.php', '', $this-&parent_base );
* Adds an option for the screen.
* Call this in template files after admin.php is loaded and before admin-header.php is loaded to add screen options.
* @since 3.3.0
* @param string $option Option ID
* @param mixed $args Option-dependent arguments.
public function add_option( $option, $args = array() ) {
$this-&_options[ $option ] = $
* Gets the arguments for an option for the screen.
* @since 3.3.0
* @param string $option Option ID.
* @param mixed $key Optional. Specific array key for when the option is an array.
public function get_option( $option, $key = false ) {
if ( ! isset( $this-&_options[ $option ] ) )
if ( $key ) {
if ( isset( $this-&_options[ $option ][ $key ] ) )
return $this-&_options[ $option ][ $key ];
return $this-&_options[ $option ];
* Gets the help tabs registered for the screen.
* @since 3.4.0
* @return array Help tabs with arguments.
public function get_help_tabs() {
return $this-&_help_
* Gets the arguments for a help tab.
* @since 3.4.0
* @param string $id Help Tab ID.
* @return array Help tab arguments.
public function get_help_tab( $id ) {
if ( ! isset( $this-&_help_tabs[ $id ] ) )
return $this-&_help_tabs[ $id ];
* Add a help tab to the contextual help for the screen.
* Call this on the load-$pagenow hook for the relevant screen.
* @since 3.3.0
* @param array $args
* - string
- Title for the tab.
* - string
- Tab ID. Must be HTML-safe.
* - string
- Help tab content in plain text or HTML. Optional.
* - callback - callback - A callback to generate the tab content. Optional.
public function add_help_tab( $args ) {
$defaults = array(
'title'
'id'
'content'
=& '',
'callback' =& false,
$args = wp_parse_args( $args, $defaults );
$args['id'] = sanitize_html_class( $args['id'] );
// Ensure we have an ID and title.
if ( ! $args['id'] || ! $args['title'] )
// Allows for overriding an existing tab with that ID.
$this-&_help_tabs[ $args['id'] ] = $
* Removes a help tab from the contextual help for the screen.
* @since 3.3.0
* @param string $id The help tab ID.
public function remove_help_tab( $id ) {
unset( $this-&_help_tabs[ $id ] );
* Removes all help tabs from the contextual help for the screen.
* @since 3.3.0
public function remove_help_tabs() {
$this-&_help_tabs = array();
* Gets the content from a contextual help sidebar.
* @since 3.4.0
* @return string Contents of the help sidebar.
public function get_help_sidebar() {
return $this-&_help_
* Add a sidebar to the contextual help for the screen.
* Call this in template files after admin.php is loaded and before admin-header.php is loaded to add a sidebar to the contextual help.
* @since 3.3.0
* @param string $content Sidebar content in plain text or HTML.
public function set_help_sidebar( $content ) {
$this-&_help_sidebar = $
* Gets the number of layout columns the user has selected.
* The layout_columns option controls the max number and default number of
* columns. This method returns the number of columns within that range selected
* by the user via Screen Options. If no selection has been made, the default
* provisioned in layout_columns is returned. If the screen does not support
* selecting the number of layout columns, 0 is returned.
* @since 3.4.0
* @return int Number of columns to display.
public function get_columns() {
return $this-&
* Render the screen's help section.
* This will trigger the deprecated filters for backwards compatibility.
* @since 3.3.0
public function render_screen_meta() {
// Call old contextual_help_list filter.
self::$_old_compat_help = apply_filters( 'contextual_help_list', self::$_old_compat_help, $this );
$old_help = isset( self::$_old_compat_help[ $this-&id ] ) ? self::$_old_compat_help[ $this-&id ] : '';
$old_help = apply_filters( 'contextual_help', $old_help, $this-&id, $this );
// Default help only if there is no old-style block of text and no new-style help tabs.
if ( empty( $old_help ) && ! $this-&get_help_tabs() ) {
$default_help = apply_filters( 'default_contextual_help', '' );
if ( $default_help )
$old_help = '&p&' . $default_help . '&/p&';
if ( $old_help ) {
$this-&add_help_tab( array(
'id'
=& 'old-contextual-help',
'title'
=& __('Overview'),
'content' =& $old_help,
$help_sidebar = $this-&get_help_sidebar();
$help_class = 'hidden';
if ( ! $help_sidebar )
$help_class .= ' no-sidebar';
// Time to render!
&div id=&screen-meta& class=&metabox-prefs&&
&div id=&contextual-help-wrap& class=&&?php echo esc_attr( $help_class ); ?&& tabindex=&-1& aria-label=&&?php esc_attr_e('Contextual Help Tab'); ?&&&
&div id=&contextual-help-back&&&/div&
&div id=&contextual-help-columns&&
&div class=&contextual-help-tabs&&
$class = ' class=&active&';
foreach ( $this-&get_help_tabs() as $tab ) :
= &tab-link-{$tab['id']}&;
$panel_id = &tab-panel-{$tab['id']}&;
&li id=&&?php echo esc_attr( $link_id ); ?&&&?php echo $ ?&&
&a href=&&?php echo esc_url( &#$panel_id& ); ?&& aria-controls=&&?php echo esc_attr( $panel_id ); ?&&&
&?php echo esc_html( $tab['title'] ); ?&
$class = '';
&?php if ( $help_sidebar ) : ?&
&div class=&contextual-help-sidebar&&
&?php echo $help_ ?&
&div class=&contextual-help-tabs-wrap&&
$classes = 'help-tab-content active';
foreach ( $this-&get_help_tabs() as $tab ):
$panel_id = &tab-panel-{$tab['id']}&;
&div id=&&?php echo esc_attr( $panel_id ); ?&& class=&&?php echo $ ?&&&
// Print tab content.
echo $tab['content'];
// If it exists, fire tab callback.
if ( ! empty( $tab['callback'] ) )
call_user_func_array( $tab['callback'], array( $this, $tab ) );
$classes = 'help-tab-content';
// Setup layout columns
// Back compat for plugins using the filter instead of add_screen_option()
$columns = apply_filters( 'screen_layout_columns', array(), $this-&id, $this );
if ( ! empty( $columns ) && isset( $columns[ $this-&id ] ) )
$this-&add_option( 'layout_columns', array('max' =& $columns[ $this-&id ] ) );
if ( $this-&get_option( 'layout_columns' ) ) {
$this-&columns = (int) get_user_option(&screen_layout_$this-&id&);
if ( ! $this-&columns && $this-&get_option( 'layout_columns', 'default' ) )
$this-&columns = $this-&get_option( 'layout_columns', 'default' );
$GLOBALS[ 'screen_layout_columns' ] = $this-& // Set the global for back-compat.
// Add screen options
if ( $this-&show_screen_options() )
$this-&render_screen_options();
if ( ! $this-&get_help_tabs() && ! $this-&show_screen_options() )
&div id=&screen-meta-links&&
&?php if ( $this-&get_help_tabs() ) : ?&
&div id=&contextual-help-link-wrap& class=&hide-if-no-js screen-meta-toggle&&
&a href=&#contextual-help-wrap& id=&contextual-help-link& class=&show-settings& aria-controls=&contextual-help-wrap& aria-expanded=&false&&&?php _e( 'Help' ); ?&&/a&
if ( $this-&show_screen_options() ) : ?&
&div id=&screen-options-link-wrap& class=&hide-if-no-js screen-meta-toggle&&
&a href=&#screen-options-wrap& id=&show-settings-link& class=&show-settings& aria-controls=&screen-options-wrap& aria-expanded=&false&&&?php _e( 'Screen Options' ); ?&&/a&
public function show_screen_options() {
global $wp_meta_
if ( is_bool( $this-&_show_screen_options ) )
return $this-&_show_screen_
$columns = get_column_headers( $this );
$show_screen = ! empty( $wp_meta_boxes[ $this-&id ] ) || $columns || $this-&get_option( 'per_page' );
$this-&_screen_settings = apply_filters( 'screen_settings', '', $this );
switch ( $this-&id ) {
case 'widgets':
$this-&_screen_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&;
if ( $this-&_screen_settings || $this-&_options )
$show_screen =
$this-&_show_screen_options = apply_filters( 'screen_options_show_screen', $show_screen, $this );
return $this-&_show_screen_
* Render the screen options tab.
* @since 3.3.0
public function render_screen_options() {
global $wp_meta_boxes, $wp_list_
$columns = get_column_headers( $this );
= get_hidden_columns( $this );
&div id=&screen-options-wrap& class=&hidden& tabindex=&-1& aria-label=&&?php esc_attr_e('Screen Options Tab'); ?&&&
&form id=&adv-settings& action=&& method=&post&&
&?php if ( isset( $wp_meta_boxes[ $this-&id ] ) || $this-&get_option( 'per_page' ) || ( $columns && empty( $columns['_title'] ) ) ) : ?&
&h5&&?php _e( 'Show on screen' ); ?&&/h5&
if ( isset( $wp_meta_boxes[ $this-&id ] ) ) : ?&
&div class=&metabox-prefs&&
meta_box_prefs( $this );
if ( 'dashboard' === $this-&id && has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) {
if ( isset( $_GET['welcome'] ) ) {
$welcome_checked = empty( $_GET['welcome'] ) ? 0 : 1;
update_user_meta( get_current_user_id(), 'show_welcome_panel', $welcome_checked );
$welcome_checked = get_user_meta( get_current_user_id(), 'show_welcome_panel', true );
if ( 2 == $welcome_checked && wp_get_current_user()-&user_email != get_option( 'admin_email' ) )
$welcome_checked =
echo '&label for=&wp_welcome_panel-hide&&';
echo '&input type=&checkbox& id=&wp_welcome_panel-hide&' . checked( (bool) $welcome_checked, true, false ) . ' /&';
echo _x( 'Welcome', 'Welcome panel' ) . &&/label&\n&;
&br class=&clear& /&
if ( $columns ) :
if ( ! empty( $columns['_title'] ) ) : ?&
&h5&&?php echo $columns['_title']; ?&&/h5&
&div class=&metabox-prefs&&
$special = array('_title', 'cb', 'comment', 'media', 'name', 'title', 'username', 'blogname');
foreach ( $columns as $column =& $title ) {
// Can't hide these for they are special
if ( in_array( $column, $special ) )
if ( empty( $title ) )
if ( 'comments' == $column )
$title = __( 'Comments' );
$id = &$column-hide&;
echo '&label for=&' . $id . '&&';
echo '&input class=&hide-column-tog& name=&' . $id . '& type=&checkbox& id=&' . $id . '& value=&' . $column . '&' . checked( !in_array($column, $hidden), true, false ) . ' /&';
echo &$title&/label&\n&;
&br class=&clear& /&
$this-&render_screen_layout();
$this-&render_per_page_options();
echo $this-&_screen_
&div&&?php wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false ); ?&&/div&
* Render the option for number of columns on the page
* @since 3.3.0
function render_screen_layout() {
if ( ! $this-&get_option('layout_columns') )
$screen_layout_columns = $this-&get_columns();
$num = $this-&get_option( 'layout_columns', 'max' );
&h5 class=&screen-layout&&&?php _e('Screen Layout'); ?&&/h5&
&div class='columns-prefs'&&?php
_e('Number of Columns:');
for ( $i = 1; $i &= $ ++$i ):
&label class=&columns-prefs-&?php echo $i; ?&&&
&input type='radio' name='screen_columns' value='&?php echo esc_attr( $i ); ?&'
&?php checked( $screen_layout_columns, $i ); ?& /&
&?php echo esc_html( $i ); ?&
* Render the items per page option
* @since 3.3.0
function render_per_page_options() {
if ( ! $this-&get_option( 'per_page' ) )
$per_page_label = $this-&get_option( 'per_page', 'label' );
$option = $this-&get_option( 'per_page', 'option' );
if ( ! $option )
$option = str_replace( '-', '_', &{$this-&id}_per_page& );
$per_page = (int) get_user_option( $option );
if ( empty( $per_page ) || $per_page & 1 ) {
$per_page = $this-&get_option( 'per_page', 'default' );
if ( ! $per_page )
$per_page = 20;
if ( 'edit_comments_per_page' == $option ) {
$comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all';
$per_page = apply_filters( 'comments_per_page', $per_page, $comment_status );
} elseif ( 'categories_per_page' == $option ) {
$per_page = apply_filters( 'edit_categories_per_page', $per_page );
$per_page = apply_filters( $option, $per_page );
// Back compat
if ( isset( $this-&post_type ) )
$per_page = apply_filters( 'edit_posts_per_page', $per_page, $this-&post_type );
&div class=&screen-options&&
&?php if ( $per_page_label ) : ?&
&input type=&number& step=&1& min=&1& max=&999& class=&screen-per-page& name=&wp_screen_options[value]&
id=&&?php echo esc_attr( $option ); ?&& maxlength=&3&
value=&&?php echo esc_attr( $per_page ); ?&& /&
&label for=&&?php echo esc_attr( $option ); ?&&&
&?php echo esc_html( $per_page_label ); ?&
echo get_submit_button( __( 'Apply' ), 'button', 'screen-options-apply', false ); ?&
&input type='hidden' name='wp_screen_options[option]' value='&?php echo esc_attr($option); ?&' /&
Copyright(C)
OKBASE.NET All Rights Reserved 好库网 版权所有

我要回帖

更多关于 mode是什么意思 的文章

 

随机推荐