Changeset 9545
- Timestamp:
- 11/06/2008 08:13:50 AM (16 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r9531 r9545 132 132 ?> 133 133 134 <?php screen_ options('category') ?>134 <?php screen_meta('category') ?> 135 135 136 136 <div class="wrap nosubsub"> -
trunk/wp-admin/edit-comments.php
r9530 r9545 82 82 $search = attribute_escape( $search_dirty ); ?> 83 83 84 <?php screen_ options('comment') ?>84 <?php screen_meta('comment') ?> 85 85 86 86 <div class="wrap"> -
trunk/wp-admin/edit-form-advanced.php
r9528 r9545 472 472 473 473 ?> 474 475 <?php screen_options('post', 1) ?> 474 <?php screen_meta('post', 1, 'edit-post'); ?> 476 475 477 476 <?php if ( (isset($mode) && 'bookmarklet' == $mode) || isset($_GET['popupurl']) ): ?> -
trunk/wp-admin/edit-link-categories.php
r9533 r9545 61 61 $messages[6] = __('Categories deleted.'); ?> 62 62 63 <?php screen_ options('link-category') ?>63 <?php screen_meta('link-category') ?> 64 64 65 65 <div class="wrap nosubsub"> -
trunk/wp-admin/edit-link-form.php
r9534 r9545 310 310 add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link', 'normal', 'core'); ?> 311 311 312 <?php screen_ options('link', 1) ?>312 <?php screen_meta('link', 1) ?> 313 313 314 314 <div class="wrap"> -
trunk/wp-admin/edit-page-form.php
r9506 r9545 377 377 ?> 378 378 379 <?php screen_ options('page', 1); ?>379 <?php screen_meta('page', 1); ?> 380 380 381 381 <div class="wrap"> -
trunk/wp-admin/edit-pages.php
r9528 r9545 101 101 require_once('admin-header.php'); ?> 102 102 103 <?php screen_ options('page') ?>103 <?php screen_meta('page') ?> 104 104 105 105 <div class="wrap"> -
trunk/wp-admin/edit-tags.php
r9531 r9545 130 130 $messages[6] = __('Tags deleted.'); ?> 131 131 132 <?php screen_ options('tag') ?>132 <?php screen_meta('tag') ?> 133 133 134 134 <div class="wrap nosubsub"> -
trunk/wp-admin/edit.php
r9533 r9545 91 91 $mode = attribute_escape($_GET['mode']); ?> 92 92 93 <?php screen_ options('post') ?>93 <?php screen_meta('post') ?> 94 94 95 95 <div class="wrap"> -
trunk/wp-admin/includes/template.php
r9529 r9545 3123 3123 } 3124 3124 3125 function screen_ options($screen, $metabox = false) {3125 function screen_meta($screen, $metabox = false, $page = '') { 3126 3126 ?> 3127 <div id="screen- options">3128 3127 <div id="screen-meta"> 3128 <div id="screen-options-wrap" class="hidden"> 3129 3129 <h5><?php _e('Show on screen') ?></h5> 3130 3130 <form id="adv-settings" action="" method="get"> … … 3140 3140 <br class="clear" /> 3141 3141 </div></form> 3142 </div> 3143 3144 <?php 3145 if ( '' != $page ) { 3146 // Allow a plugin to short-circuit 3147 $help = apply_filters('contextual_help', '', $page); 3148 if ( !empty($help) ) 3149 return; 3150 3151 global $title; 3152 3153 $help['edit-post'] = __('<a href="http://codex.wordpress.org/Writing_Posts">Writing Posts</a>'); 3154 $help['general-settings'] = __('<a href="http://codex.wordpress.org/Settings_General_SubPanel">General Settings</a>'); 3155 ?> 3156 <div id="contextual-help-wrap" class="hidden"> 3157 <?php 3158 if ( isset($help[$page]) ) { 3159 if ( isset($title) && 'edit-post' != $page ) 3160 echo '<h5>' . sprintf(__('Get help with "%s"'), $title) . '</h5>'; 3161 else 3162 echo '<h5>' . __('Get help with this page') . '</h5>'; 3163 echo '<div class="metabox-prefs">' . $help[$page] . "</div>\n"; 3164 3165 echo '<h5>' . __('Other Help') . '</h5>'; 3166 } else { 3167 echo '<h5>' . __('Help') . '</h5>'; 3168 } 3169 3170 echo '<div class="metabox-prefs">'; 3171 _e('<a href="http://codex.wordpress.org/">Documentation</a>'); 3172 echo '<br />'; 3173 _e('<a href="http://wordpress.org/support/">Support Forums</a>'); 3174 echo "</div>\n"; 3175 ?> 3142 3176 </div> 3143 3144 <div id="screen-options-link-wrap" class="hide-if-no-js screen-options-closed"> 3145 <a href="#screen-options" id="show-settings-link" class="show-settings"><?php _e('Screen Options') ?></a> 3146 </div> 3177 <?php 3178 } 3179 ?> 3180 3181 3182 <div id="screen-meta-links"> 3183 <?php if ( '' != $page ) { ?> 3184 <div id="contextual-help-link-wrap" class="hide-if-no-js screen-meta-toggle"> 3185 <a href="#contextual-help" id="contextual-help-link" class="show-settings"><?php _e('Help') ?></a> 3186 </div> 3187 <?php } ?> 3188 <div id="screen-options-link-wrap" class="hide-if-no-js screen-meta-toggle"> 3189 <a href="#screen-options" id="show-settings-link" class="show-settings"><?php _e('Screen Options') ?></a> 3190 </div> 3191 </div> 3147 3192 </div> 3148 3193 <?php 3194 3195 } 3196 3197 function contextual_help( ) { 3198 3149 3199 } 3150 3200 -
trunk/wp-admin/index.php
r9408 r9545 29 29 ?> 30 30 31 <?php screen_ options('dashboard', 1); ?>31 <?php screen_meta('dashboard', 1); ?> 32 32 33 33 <div class="wrap"> -
trunk/wp-admin/js/settings-box.js
r9454 r9545 1 1 jQuery(document).ready( function($) { 2 2 $('#show-settings-link').click(function () { 3 $('#screen-options-wrap').slideToggle(' normal', function(){3 $('#screen-options-wrap').slideToggle('fast', function(){ 4 4 if ( $(this).hasClass('screen-options-open') ) { 5 5 $('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right.gif")'}); 6 $('#contextual-help-link-wrap').removeClass('invisible'); 6 7 $(this).removeClass('screen-options-open'); 8 7 9 } else { 8 10 $('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right-up.gif")'}); 11 $('#contextual-help-link-wrap').addClass('invisible'); 9 12 $(this).addClass('screen-options-open'); 13 } 14 }); 15 return false; 16 }).parent(); 17 $('#contextual-help-link').click(function () { 18 $('#contextual-help-wrap').slideToggle('fast', function(){ 19 if ( $(this).hasClass('contextual-help-open') ) { 20 $('#contextual-help-link').css({'backgroundImage':'url("images/screen-options-right.gif")'}); 21 $('#screen-options-link-wrap').removeClass('invisible'); 22 $(this).removeClass('contextual-help-open'); 23 } else { 24 $('#contextual-help-link').css({'backgroundImage':'url("images/screen-options-right-up.gif")'}); 25 $('#screen-options-link-wrap').addClass('invisible'); 26 $(this).addClass('contextual-help-open'); 10 27 } 11 28 }); -
trunk/wp-admin/link-manager.php
r9533 r9545 75 75 } ?> 76 76 77 <?php screen_ options('link') ?>77 <?php screen_meta('link') ?> 78 78 79 79 <div class="wrap nosubsub"> -
trunk/wp-admin/upload.php
r9533 r9545 146 146 require_once('admin-header.php'); ?> 147 147 148 <?php screen_ options('media') ?>148 <?php screen_meta('media') ?> 149 149 150 150 <?php -
trunk/wp-admin/users.php
r9369 r9545 238 238 endif; ?> 239 239 240 <?php screen_ options('user') ?>240 <?php screen_meta('user') ?> 241 241 242 242 <?php if ( isset($errors) && is_wp_error( $errors ) ) : ?> -
trunk/wp-admin/wp-admin.css
r9538 r9545 1 2 3 4 #wpbody { 5 clear: both; 6 } 7 1 8 .plugins .name, 2 9 #pass-strength-result.strong, … … 1495 1502 padding: 6px 7px; 1496 1503 margin: 0 0 10px; 1504 line-height: 1; 1497 1505 } 1498 1506 … … 1503 1511 border-width: 1px; 1504 1512 border-style: solid; 1513 line-height: 1; 1505 1514 -moz-border-radius: 6px; 1506 1515 -khtml-border-radius: 6px; … … 2356 2365 /* show/hide settings */ 2357 2366 2358 #screen- options{2367 #screen-meta { 2359 2368 position: relative; 2360 2369 clear: both; 2361 2370 } 2362 2371 2363 #wpbody { 2364 clear: both; 2365 } 2366 2367 #screen-options-link-wrap { 2372 #screen-meta-links { 2373 margin: 0 20px 0 0; 2374 } 2375 2376 #screen-meta .invisible { 2377 visibility: hidden; 2378 } 2379 2380 #screen-options-link-wrap, 2381 #contextual-help-link-wrap { 2368 2382 float: right; 2369 2383 background: transparent url( images/screen-options-left.gif ) no-repeat 0 0; … … 2371 2385 height: 23px; 2372 2386 padding: 0; 2373 position: relative; 2374 right: 100px; 2375 top: -1px; 2376 } 2377 2378 #screen-options a.show-settings { 2387 margin: -1px 10px 0 0; 2388 } 2389 2390 #screen-meta a.show-settings { 2379 2391 text-decoration: none; 2380 2392 z-index: 1; … … 2389 2401 } 2390 2402 2391 #screen- options a#show-settings-link{2403 #screen-meta a.show-settings { 2392 2404 background-image: url( images/screen-options-right.gif ); 2393 2405 } 2394 2406 2395 #screen-options a#hide-settings-link { 2396 background-image: url( images/screen-options-right-up.gif ); 2397 } 2398 2399 #screen-options a.show-settings:hover { 2407 #screen-meta a.show-settings:hover { 2400 2408 text-decoration: none; 2401 2409 } 2402 2410 2403 #screen-options-wrap h5 { 2411 #screen-options-wrap h5, 2412 #contextual-help-wrap h5 { 2404 2413 padding: 10px 0 0 15px; 2405 2414 margin: 0; … … 2407 2416 } 2408 2417 2409 #screen-options-wrap { 2418 #screen-options-wrap, 2419 #contextual-help-wrap { 2410 2420 border-style: none solid solid; 2411 2421 border-top: 0 none;
Note: See TracChangeset
for help on using the changeset viewer.