Changeset 9016
- Timestamp:
- 09/28/08 04:11:27 (2 months ago)
- Files:
-
- trunk/wp-admin/categories.php (modified) (2 diffs)
- trunk/wp-admin/css/colors-classic.css (modified) (4 diffs)
- trunk/wp-admin/css/colors-fresh.css (modified) (3 diffs)
- trunk/wp-admin/edit-comments.php (modified) (2 diffs)
- trunk/wp-admin/edit-form-advanced.php (modified) (4 diffs)
- trunk/wp-admin/edit-link-categories.php (modified) (2 diffs)
- trunk/wp-admin/edit-link-form.php (modified) (2 diffs)
- trunk/wp-admin/edit-page-form.php (modified) (4 diffs)
- trunk/wp-admin/edit-pages.php (modified) (2 diffs)
- trunk/wp-admin/edit-tags.php (modified) (2 diffs)
- trunk/wp-admin/edit.php (modified) (2 diffs)
- trunk/wp-admin/js/settings-box.js (modified) (1 diff)
- trunk/wp-admin/link-manager.php (modified) (2 diffs)
- trunk/wp-admin/upload.php (modified) (1 diff)
- trunk/wp-admin/users.php (modified) (2 diffs)
- trunk/wp-admin/wp-admin.css (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/categories.php
r8984 r9016 118 118 $messages[4] = __('Category not added.'); 119 119 $messages[5] = __('Category not updated.'); 120 120 ?> 121 122 <div id="edit-settings"> 123 <a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a> 124 <div id="edit-settings-wrap" class="hidden"> 125 <a href="#edit_settings" id="hide-settings-link" class="show-settings"><?php _e('Hide Options') ?></a> 126 <h5><?php _e('Show on screen') ?></h5> 127 <form id="adv-settings" action="" method="get"> 128 <div class="metabox-prefs"> 129 <?php manage_columns_prefs('category') ?> 130 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 131 <br class="clear" /> 132 </div></form> 133 </div></div> 134 135 <?php 121 136 if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?> 122 137 <div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div> … … 126 141 <div class="wrap"> 127 142 128 <form id="adv-settings" action="" method="get">129 <div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a>130 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div>131 132 <div id="edit-settings" class="hide-if-js hide-if-no-js">133 <div id="edit-settings-wrap">134 <h5><?php _e('Show on screen') ?></h5>135 <div class="metabox-prefs">136 <?php manage_columns_prefs('category') ?>137 <br class="clear" />138 </div></div>139 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?>140 </div></form>141 142 143 <h2><?php printf( current_user_can('manage_categories') ? __('Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2> 143 144 <br class="clear" />145 144 146 145 <form id="posts-filter" action="" method="get"> trunk/wp-admin/css/colors-classic.css
r9003 r9016 51 51 } 52 52 53 #user_info a:hover,li.widget-list-control-item h4.widget-title a:hover,53 li.widget-list-control-item h4.widget-title a:hover, 54 54 #dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link, 55 55 li.widget-list-control-item h4.widget-title a, … … 240 240 #login form .submit input:hover, div.dashboard-widget-submit input:hover, 241 241 #edit-slug-buttons a.save:hover, #media-upload a.delete:hover, 242 #media-upload a.del-link:hover, .ui-tabs-nav a:hover {242 #media-upload a.del-link:hover, .ui-tabs-nav a:hover, #user_info a:hover { 243 243 color: #d54e21; 244 244 } … … 801 801 } 802 802 803 #edit-settings-wrap, 804 #show-settings { 803 #edit-settings-wrap { 805 804 background-color: #14568A; 806 805 border-color: #14568A; … … 811 810 #show-settings a:visited { 812 811 color: #CFEBF6; 813 }814 815 #show-settings.show-settings-opened {816 border-bottom-color: #14568A;817 812 } 818 813 trunk/wp-admin/css/colors-fresh.css
r9008 r9016 51 51 } 52 52 53 #user_info a:hover,li.widget-list-control-item h4.widget-title a:hover,53 li.widget-list-control-item h4.widget-title a:hover, 54 54 #dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link, 55 55 li.widget-list-control-item h4.widget-title a, … … 240 240 #login form .submit input:hover, div.dashboard-widget-submit input:hover, 241 241 #edit-slug-buttons a.save:hover, #media-upload a.delete:hover, 242 #media-upload a.del-link:hover, .ui-tabs-nav a:hover {242 #media-upload a.del-link:hover, .ui-tabs-nav a:hover, #user_info a:hover { 243 243 color: #d54e21; 244 244 } … … 790 790 } 791 791 792 #edit-settings-wrap, 793 #show-settings { 792 #edit-settings-wrap { 794 793 background-color: #E4F2FD; 795 794 border-color: #c6d9e9; 796 }797 798 #show-settings.show-settings-opened {799 border-bottom-color: #E4F2FD;800 795 } 801 796 trunk/wp-admin/edit-comments.php
r8988 r9016 67 67 68 68 $search_dirty = ( isset($_GET['s']) ) ? $_GET['s'] : ''; 69 $search = attribute_escape( $search_dirty ); 70 69 $search = attribute_escape( $search_dirty ); ?> 70 71 <div id="edit-settings"> 72 <a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a> 73 <div id="edit-settings-wrap" class="hidden"> 74 <a href="#edit_settings" id="hide-settings-link" class="show-settings"><?php _e('Hide Options') ?></a> 75 <h5><?php _e('Show on screen') ?></h5> 76 <form id="adv-settings" action="" method="get"> 77 <div class="metabox-prefs"> 78 <?php manage_columns_prefs('comment') ?> 79 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 80 <br class="clear" /> 81 </div></form> 82 </div></div> 83 84 <?php 71 85 if ( isset( $_GET['approved'] ) || isset( $_GET['deleted'] ) || isset( $_GET['spam'] ) ) { 72 86 $approved = isset( $_GET['approved'] ) ? (int) $_GET['approved'] : 0; … … 97 111 ?> 98 112 <div class="wrap"> 99 100 <form id="adv-settings" action="" method="get">101 <div id="show-settings" class="hide-if-no-js"><a href="#edit_settings" id="show-settings-link"><?php _e('Advanced Options') ?></a>102 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js"><?php _e('Hide Options') ?></a></div>103 104 <div id="edit-settings" class="hide-if-js hide-if-no-js">105 <div id="edit-settings-wrap">106 <h5><?php _e('Show on screen') ?></h5>107 <div class="metabox-prefs">108 <?php manage_columns_prefs('comment') ?>109 <br class="clear" />110 </div></div>111 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?>112 </div></form>113 113 114 114 <form id="posts-filter" action="" method="get"> trunk/wp-admin/edit-form-advanced.php
r8946 r9016 55 55 } 56 56 57 ?>58 59 <form name="post" action="post.php" method="post" id="post">60 <?php61 62 57 // All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). 63 64 58 function post_submit_meta_box($post) { 65 59 global $action; … … 408 402 ?> 409 403 410 <?php if ( $notice ) : ?> 411 <div id="notice" class="error"><p><?php echo $notice ?></p></div> 412 <?php endif; ?> 413 <?php if (isset($_GET['message'])) : ?> 414 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div> 415 <?php endif; ?> 416 417 <?php if ( (isset($mode) && 'bookmarklet' == $mode) || isset($_GET['popupurl']) ): ?> 418 <input type="hidden" name="mode" value="bookmarklet" /> 419 <?php endif; ?> 420 421 <div class="wrap"> 422 423 <div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a> 424 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div> 425 426 <div id="edit-settings" class="hide-if-js hide-if-no-js"> 427 <div id="edit-settings-wrap"> 404 <div id="edit-settings"> 405 <a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a> 406 <div id="edit-settings-wrap" class="hidden"> 407 <a href="#edit_settings" id="hide-settings-link" class="show-settings"><?php _e('Hide Options') ?></a> 428 408 <h5><?php _e('Show on screen') ?></h5> 409 <form id="adv-settings" action="" method="get"> 429 410 <div class="metabox-prefs"> 430 411 <?php meta_box_prefs('post') ?> 431 412 <br class="clear" /> 413 </div></form> 432 414 </div></div> 433 </div> 415 416 <?php if ( $notice ) : ?> 417 <div id="notice" class="error"><p><?php echo $notice ?></p></div> 418 <?php endif; ?> 419 <?php if (isset($_GET['message'])) : ?> 420 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div> 421 <?php endif; ?> 422 423 <?php if ( (isset($mode) && 'bookmarklet' == $mode) || isset($_GET['popupurl']) ): ?> 424 <input type="hidden" name="mode" value="bookmarklet" /> 425 <?php endif; ?> 426 427 <div class="wrap"> 434 428 435 429 <h2><?php … … 440 434 ?></h2> 441 435 436 <form name="post" action="post.php" method="post" id="post"> 442 437 <?php 443 438 … … 556 551 </div> 557 552 </div><!-- /poststuff --> 558 559 </div>560 553 </form> 554 </div> 561 555 562 556 <?php wp_comment_reply(); ?> trunk/wp-admin/edit-link-categories.php
r8984 r9016 56 56 $messages[4] = __('Category not added.'); 57 57 $messages[5] = __('Category not updated.'); 58 $messages[6] = __('Categories deleted.'); 58 $messages[6] = __('Categories deleted.'); ?> 59 59 60 if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?> 60 <div id="edit-settings"> 61 <a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a> 62 <div id="edit-settings-wrap" class="hidden"> 63 <a href="#edit_settings" id="hide-settings-link" class="show-settings"><?php _e('Hide Options') ?></a> 64 <h5><?php _e('Show on screen') ?></h5> 65 <form id="adv-settings" action="" method="get"> 66 <div class="metabox-prefs"> 67 <?php manage_columns_prefs('link-category') ?> 68 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 69 <br class="clear" /> 70 </div></form> 71 </div></div> 72 73 <?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?> 61 74 <div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div> 62 75 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']); … … 65 78 <div class="wrap"> 66 79 67 <form id="adv-settings" action="" method="get">68 <div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a>69 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div>70 71 <div id="edit-settings" class="hide-if-js hide-if-no-js">72 <div id="edit-settings-wrap">73 <h5><?php _e('Show on screen') ?></h5>74 <div class="metabox-prefs">75 <?php manage_columns_prefs('link-category') ?>76 <br class="clear" />77 </div></div>78 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?>79 </div></form>80 81 80 <h2><?php printf( current_user_can('manage_categories') ? __('Link Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2> 82 83 <br class="clear" />84 81 85 82 <form id="posts-filter" action="" method="get"> trunk/wp-admin/edit-link-form.php
r9014 r9016 262 262 <?php 263 263 } 264 add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link', 'normal', 'core'); 265 266 echo $form; 267 echo $link_added; 268 269 wp_nonce_field($nonce_action); 270 wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); 271 wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?> 272 273 <div class="wrap"> 274 275 <div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a> 276 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div> 277 278 <div id="edit-settings" class="hide-if-js hide-if-no-js"> 279 <div id="edit-settings-wrap"> 264 add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link', 'normal', 'core'); ?> 265 266 <div id="edit-settings"> 267 <a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a> 268 <div id="edit-settings-wrap" class="hidden"> 269 <a href="#edit_settings" id="hide-settings-link" class="show-settings"><?php _e('Hide Options') ?></a> 280 270 <h5><?php _e('Show on screen') ?></h5> 271 <form id="adv-settings" action="" method="get"> 281 272 <div class="metabox-prefs"> 282 273 <?php meta_box_prefs('link') ?> 274 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 283 275 <br class="clear" /> 276 </div></form> 284 277 </div></div> 285 </div> 278 279 <div class="wrap"> 286 280 287 281 <h2><?php echo $heading; ?></h2> … … 313 307 </div> 314 308 --> 309 <?php 310 echo $form; 311 echo $link_added; 312 313 wp_nonce_field( $nonce_action ); 314 wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); 315 wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?> 315 316 316 317 <div id="poststuff"> trunk/wp-admin/edit-page-form.php
r8946 r9016 46 46 $user_ID = (int) $user_ID; 47 47 ?> 48 49 <form name="post" action="page.php" method="post" id="post">50 <?php if ( $notice ) : ?>51 <div id="notice" class="error"><p><?php echo $notice ?></p></div>52 <?php endif; ?>53 <?php if (isset($_GET['message'])) : ?>54 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>55 <?php endif; ?>56 48 57 49 <?php … … 286 278 ?> 287 279 288 <div class="wrap"> 289 290 <div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a> 291 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div> 292 293 <div id="edit-settings" class="hide-if-js hide-if-no-js"> 294 <div id="edit-settings-wrap"> 280 <div id="edit-settings"> 281 <a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a> 282 <div id="edit-settings-wrap" class="hidden"> 283 <a href="#edit_settings" id="hide-settings-link" class="show-settings"><?php _e('Hide Options') ?></a> 295 284 <h5><?php _e('Show on screen') ?></h5> 285 <form id="adv-settings" action="" method="get"> 296 286 <div class="metabox-prefs"> 297 287 <?php meta_box_prefs('page') ?> 288 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 298 289 <br class="clear" /> 290 </div></form> 299 291 </div></div> 300 </div> 292 293 <div class="wrap"> 301 294 302 295 <h2><?php … … 306 299 printf( __( '<a href="%s">Pages</a> / Edit Page' ), 'edit-pages.php' ); 307 300 ?></h2> 301 302 <form name="post" action="page.php" method="post" id="post"> 303 <?php if ( $notice ) : ?> 304 <div id="notice" class="error"><p><?php echo $notice ?></p></div> 305 <?php endif; ?> 306 <?php if (isset($_GET['message'])) : ?> 307 <div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div> 308 <?php endif; ?> 308 309 309 310 <?php … … 432 433 </div> 433 434 434 </div>435 435 </form> 436 </div> 436 437 437 438 <script type="text/javascript"> trunk/wp-admin/edit-pages.php
r8984 r9016 93 93 } 94 94 95 require_once('admin-header.php'); 96 97 if ( isset($_GET['upd']) && (int) $_GET['upd'] ) { ?> 95 require_once('admin-header.php'); ?> 96 97 <div id="edit-settings"> 98 <a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a> 99 <div id="edit-settings-wrap" class="hidden"> 100 <a href="#edit_settings" id="hide-settings-link" class="show-settings"><?php _e('Hide Options') ?></a> 101 <h5><?php _e('Show on screen') ?></h5> 102 <form id="adv-settings" action="" method="get"> 103 <div class="metabox-prefs"> 104 <?php manage_columns_prefs('page') ?> 105 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 106 <br class="clear" /> 107 </div></form> 108 </div></div> 109 110 <?php if ( isset($_GET['upd']) && (int) $_GET['upd'] ) { ?> 98 111 <div id="message" class="updated fade"><p> 99 112 <?php printf( __ngettext( '%d page updated.', '%d pages updated.', $_GET['upd'] ), number_format_i18n( $_GET['upd'] ) ); … … 108 121 109 122 <div class="wrap"> 110 <form id="adv-settings" action="" method="get">111 <div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a>112 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div>113 114 <div id="edit-settings" class="hide-if-js hide-if-no-js">115 <div id="edit-settings-wrap">116 <h5><?php _e('Show on screen') ?></h5>117 <div class="metabox-prefs">118 <?php manage_columns_prefs('page') ?>119 <br class="clear" />120 </div></div>121 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?>122 </div></form>123 123 124 124 <h2><?php trunk/wp-admin/edit-tags.php
r8984 r9016 123 123 $messages[4] = __('Tag not added.'); 124 124 $messages[5] = __('Tag not updated.'); 125 $messages[6] = __('Tags deleted.'); 126 127 if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?> 125 $messages[6] = __('Tags deleted.'); ?> 126 127 <div id="edit-settings"> 128 <a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a> 129 <div id="edit-settings-wrap" class="hidden"> 130 <a href="#edit_settings" id="hide-settings-link" class="show-settings"><?php _e('Hide Options') ?></a> 131 <h5><?php _e('Show on screen') ?></h5> 132 <form id="adv-settings" action="" method="get"> 133 <div class="metabox-prefs"> 134 <?php manage_columns_prefs('tag') ?> 135 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 136 <br class="clear" /> 137 </div></form> 138 </div></div> 139 140 <?php if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?> 128 141 <div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div> 129 142 <?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']); … … 132 145 <div class="wrap"> 133 146 134 <form id="adv-settings" action="" method="get">135 <div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a>136 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div>137 138 <div id="edit-settings" class="hide-if-js hide-if-no-js">139 <div id="edit-settings-wrap">140 <h5><?php _e('Show on screen') ?></h5>141 <div class="metabox-prefs">142 <?php manage_columns_prefs('tag') ?>143 <br class="clear" />144 </div></div>145 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?>146 </div></form>147 148 147 <h2><?php printf( current_user_can('manage_categories') ? __('Tags (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addtag' ); ?></h2> 149 150 <br class="clear" />151 148 152 149 <form id="posts-filter" action="" method="get"> trunk/wp-admin/edit.php
r8997 r9016 90 90 $mode = 'list'; 91 91 else 92 $mode = attribute_escape($_GET['mode']); 93 92 $mode = attribute_escape($_GET['mode']); ?> 93 94 <div id="edit-settings"> 95 <a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a> 96 <div id="edit-settings-wrap" class="hidden"> 97 <a href="#edit_settings" id="hide-settings-link" class="show-settings"><?php _e('Hide Options') ?></a> 98 <h5><?php _e('Show on screen') ?></h5> 99 <form id="adv-settings" action="" method="get"> 100 <div class="metabox-prefs"> 101 <?php manage_columns_prefs('post') ?> 102 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 103 <br class="clear" /> 104 </div></form> 105 </div></div> 106 107 <?php 94 108 if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?> 95 109 <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $_GET['posted'] ); ?>"><?php _e('Edit post'); ?></a></p></div> … … 110 124 111 125 <div class="wrap"> 112 113 <form id="adv-settings" action="" method="get">114 <div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a>115 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div>116 117 <div id="edit-settings" class="hide-if-js hide-if-no-js">118 <div id="edit-settings-wrap">119 <h5><?php _e('Show on screen') ?></h5>120 <div class="metabox-prefs">121 <?php manage_columns_prefs('post') ?>122 <br class="clear" />123 </div></div>124 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?>125 </div></form>126 126 127 127 <h2><?php trunk/wp-admin/js/settings-box.js
r8988 r9016 1 1 jQuery(document).ready( function($) { 2 $('#show-settings-link').click(function () { 3 $('#edit-settings').slideDown('normal', function(){ 4 $('#show-settings-link').hide(); 5 $('#hide-settings-link').show(); 6 7 }); 8 $('#show-settings').addClass('show-settings-opened'); 2 $('#show-settings-link').click(function () { 3 $(this).hide() 4 $('#edit-settings-wrap').slideDown('normal'); 9 5 return false; 10 6 }); 11 7 12 8 $('#hide-settings-link').click(function () { 13 $('#edit-settings').slideUp('normal', function(){ 14 $('#hide-settings-link').hide(); 9 $('#edit-settings-wrap').slideUp('normal', function(){ 15 10 $('#show-settings-link').show(); 16 $('#show-settings').removeClass('show-settings-opened');17 11 }); 18 19 12 return false; 20 13 }); trunk/wp-admin/link-manager.php
r8984 r9016 72 72 $sqlorderby = 'name'; 73 73 break; 74 } 75 74 } ?> 75 76 <div id="edit-settings"> 77 <a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a> 78 <div id="edit-settings-wrap" class="hidden"> 79 <a href="#edit_settings" id="hide-settings-link" class="show-settings"><?php _e('Hide Options') ?></a> 80 <h5><?php _e('Show on screen') ?></h5> 81 <form id="adv-settings" action="" method="get"> 82 <div class="metabox-prefs"> 83 <?php manage_columns_prefs('link') ?> 84 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 85 <br class="clear" /> 86 </div></form> 87 </div></div> 88 89 <?php 76 90 if ( isset($_GET['deleted']) ) { 77 91 echo '<div id="message" class="updated fade"><p>'; … … 85 99 <div class="wrap"> 86 100 87 <form id="adv-settings" action="" method="get">88 <div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a>89 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div>90 91 <div id="edit-settings" class="hide-if-js hide-if-no-js">92 <div id="edit-settings-wrap">93 <h5><?php _e('Show on screen') ?></h5>94 <div class="metabox-prefs">95 <?php manage_columns_prefs('link') ?>96 <br class="clear" />97 </div></div>98 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?>99 </div></form>100 101 101 <h2><?php printf( __('Links (<a href="%s">Add New</a>)' ), 'link-add.php' ); ?></h2> 102 103 <br class="clear" />104 102 105 103 <form id="posts-filter" action="" method="get"> trunk/wp-admin/upload.php
r9014 r9016 138 138 require_once('admin-header.php'); ?> 139 139 140 <div class="wrap"> 141 140 <div id="edit-settings"> 141 <a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a> 142 <div id="edit-settings-wrap" class="hidden"> 143 <a href="#edit_settings" id="hide-settings-link" class="show-settings"><?php _e('Hide Options') ?></a> 144 <h5><?php _e('Show on screen') ?></h5> 142 145 <form id="adv-settings" action="" method="get"> 143 <div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a>144 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div>145 146 <div id="edit-settings" class="hide-if-js hide-if-no-js">147 <div id="edit-settings-wrap">148 <h5><?php _e('Show on screen') ?></h5>149 146 <div class="metabox-prefs"> 150 147 <?php manage_columns_prefs('media') ?> 148 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 151 149 <br class="clear" /> 150 </div></form> 152 151 </div></div> 153 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 154 < /div></form>152 153 <div class="wrap"> 155 154 156 155 <h2><?php trunk/wp-admin/users.php
r8973 r9016 237 237 endif; ?> 238 238 239 <form class="search-form" action="" method="get"> 240 <p id="user-search" class="search-box"> 241 <label class="hidden" for="user-search-input"><?php _e( 'Search Users' ); ?></label> 242 <input type="text" id="user-search-input" class="search-input" name="usersearch" value="<?php echo attribute_escape($wp_user_search->search_term); ?>" /> 243 <input type="submit" value="<?php _e( 'Search Users' ); ?>" class="button" /> 244 </p> 245 </form> 239 <div id="edit-settings"> 240 <a href="#edit_settings" id="show-settings-link" class="hide-if-no-js show-settings"><?php _e('Page Options') ?></a> 241 <div id="edit-settings-wrap" class="hidden"> 242 <a href="#edit_settings" id="hide-settings-link" class="show-settings"><?php _e('Hide Options') ?></a> 243 <h5><?php _e('Show on screen') ?></h5> 244 <form id="adv-settings" action="" method="get"> 245 <div class="metabox-prefs"> 246 <?php manage_columns_prefs('user') ?> 247 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 248 <br class="clear" /> 249 </div></form> 250 </div></div> 246 251 247 252 <?php if ( isset($errors) && is_wp_error( $errors ) ) : ?> … … 263 268 <div class="wrap"> 264 269 265 <form id="adv-settings" action="" method="get">266 <div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a>267 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div>268 269 <div id="edit-settings" class="hide-if-js hide-if-no-js">270 <div id="edit-settings-wrap">271 <h5><?php _e('Show on screen') ?></h5>272 <div class="metabox-prefs">273 <?php manage_columns_prefs('user') ?>274 <br class="clear" />275 </div></div>276 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?>277 </div></form>278 279 270 <form id="posts-filter" action="" method="get"> 280 271 <?php if ( $wp_user_search->is_search() ) : ?> trunk/wp-admin/wp-admin.css
r9008 r9016 2062 2062 2063 2063 /* show/hide settings */ 2064 #show-settings {2065 float: right;2066 margin: 0 0 -30px;2067 position: relative;2068 z-index: 1;2069 width: 218px;2070 height: 28px;2071 border-width: 1px;2072 border-style: solid;2073 -moz-border-radius: 4px;2074 -khtml-border-radius: 4px;2075 -webkit-border-radius: 4px;2076 border-radius: 4px;2077 }2078 2079 2064 #show-settings-link, 2080 2065 #hide-settings-link { 2081 background-position: 8px center; 2082 background-repeat: no-repeat; 2083 line-height: 28px; 2084 padding: 0 0 0 26px; 2066 display: block; 2067 height: 18px; 2068 font-size: 11px; 2069 text-decoration: none; 2070 z-index: 1; 2085 2071 } 2086 2072 2087 2073 #show-settings-link { 2088 background-image: url(images/menu-closed.png); 2074 position: absolute; 2075 padding: 3px 8px 1px; 2076 right: 15px; 2077 top: 0; 2089 2078 } 2090 2079 2091 2080 #hide-settings-link { 2092 background-image: url(images/menu-open.png); 2081 float: right; 2082 padding: 3px 8px; 2083 position: relative; 2093 2084 } 2094 2085 2095 2086 #edit-settings { 2096 p adding: 29px 0 0;2097 margin: 0 0 20px;2087 position: relative; 2088 top: -12px; 2098 2089 } 2099 2090 2100 2091 #edit-settings-wrap h5 { 2101 padding: 10px 0 5px 20px;2092 padding: 10px 0 0 15px; 2102 2093 margin: 0; 2103 2094 font-size: 13px; … … 2105 2096 2106 2097 #edit-settings-wrap { 2107 -moz-border-radius: 4px 0 4px 4px; 2108 -khtml-border-radius: 4px; 2109 -khtml-border-top-right-radius: 0; 2110 -webkit-border-radius: 4px; 2111 -webkit-border-top-right-radius: 0; 2112 border-radius: 4px; 2113 border-top-right-radius: 0; 2114 border-width: 1px; 2115 border-style: solid; 2116 } 2117 2118 #show-settings.show-settings-opened { 2119 -moz-border-radius: 4px 4px 0 0; 2120 -webkit-border-bottom-left-radius: 0; 2121 -webkit-border-bottom-right-radius: 0; 2122 -khtml-border-bottom-left-radius: 0; 2123 -khtml-border-bottom-right-radius: 0; 2124 border-bottom-left-radius: 0; 2125 border-bottom-right-radius: 0; 2098 border-style: none solid solid; 2099 border-top: 0 none; 2100 border-width: 0 1px 1px; 2101 margin: 0 15px; 2102 -moz-border-radius: 0 0 4px 4px; 2103 -webkit-border-bottom-left-radius: 4px; 2104 -webkit-border-bottom-right-radius: 4px; 2105 -khtml-border-bottom-left-radius: 4px; 2106 -khtml-border-bottom-right-radius: 4px; 2107 border-bottom-left-radius: 4px; 2108 border-bottom-right-radius: 4px; 2126 2109 } 2127 2110 2128 2111 .metabox-prefs { 2129 padding: 8px 15px 15px;2112 padding: 5px 10px 10px; 2130 2113 } 2131 2114 … … 2135 2118 padding: 5px 3px; 2136 2119 white-space: nowrap; 2137 width: 1 5em;2120 width: 12em; 2138 2121 } 2139 2122
