Changeset 9016

Show
Ignore:
Timestamp:
09/28/08 04:11:27 (2 months ago)
Author:
azaozz
Message:

Move and adjust "Page Options" box

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/categories.php

    r8984 r9016  
    118118$messages[4] = __('Category not added.'); 
    119119$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 
    121136if ( isset($_GET['message']) && ( $msg = (int) $_GET['message'] ) ) : ?> 
    122137<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div> 
     
    126141<div class="wrap"> 
    127142 
    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  
    142143    <h2><?php printf( current_user_can('manage_categories') ? __('Categories (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addcat' ); ?></h2> 
    143  
    144 <br class="clear" /> 
    145144 
    146145<form id="posts-filter" action="" method="get"> 
  • trunk/wp-admin/css/colors-classic.css

    r9003 r9016  
    5151} 
    5252 
    53 #user_info a:hover, li.widget-list-control-item h4.widget-title a:hover, 
     53li.widget-list-control-item h4.widget-title a:hover, 
    5454#dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link,  
    5555li.widget-list-control-item h4.widget-title a, 
     
    240240#login form .submit input:hover, div.dashboard-widget-submit input:hover, 
    241241#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
    243243    color: #d54e21; 
    244244} 
     
    801801} 
    802802 
    803 #edit-settings-wrap, 
    804 #show-settings { 
     803#edit-settings-wrap { 
    805804    background-color: #14568A; 
    806805    border-color: #14568A; 
     
    811810#show-settings a:visited { 
    812811    color: #CFEBF6; 
    813 } 
    814  
    815 #show-settings.show-settings-opened { 
    816     border-bottom-color: #14568A; 
    817812} 
    818813 
  • trunk/wp-admin/css/colors-fresh.css

    r9008 r9016  
    5151} 
    5252 
    53 #user_info a:hover, li.widget-list-control-item h4.widget-title a:hover, 
     53li.widget-list-control-item h4.widget-title a:hover, 
    5454#dashmenu a:hover, #footer a, #upload-menu li a.upload-tab-link,  
    5555li.widget-list-control-item h4.widget-title a, 
     
    240240#login form .submit input:hover, div.dashboard-widget-submit input:hover, 
    241241#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
    243243    color: #d54e21; 
    244244} 
     
    790790} 
    791791 
    792 #edit-settings-wrap, 
    793 #show-settings { 
     792#edit-settings-wrap { 
    794793    background-color: #E4F2FD; 
    795794    border-color: #c6d9e9; 
    796 } 
    797  
    798 #show-settings.show-settings-opened { 
    799     border-bottom-color: #E4F2FD; 
    800795} 
    801796 
  • trunk/wp-admin/edit-comments.php

    r8988 r9016  
    6767 
    6868$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 
    7185if ( isset( $_GET['approved'] ) || isset( $_GET['deleted'] ) || isset( $_GET['spam'] ) ) { 
    7286    $approved = isset( $_GET['approved'] ) ? (int) $_GET['approved'] : 0; 
     
    97111?> 
    98112<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> 
    113113 
    114114<form id="posts-filter" action="" method="get"> 
  • trunk/wp-admin/edit-form-advanced.php

    r8946 r9016  
    5555} 
    5656 
    57 ?> 
    58  
    59 <form name="post" action="post.php" method="post" id="post"> 
    60 <?php 
    61  
    6257// All meta boxes should be defined and added before the first do_meta_boxes() call (or potentially during the do_meta_boxes action). 
    63  
    6458function post_submit_meta_box($post) { 
    6559    global $action; 
     
    408402?> 
    409403 
    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> 
    428408<h5><?php _e('Show on screen') ?></h5> 
     409<form id="adv-settings" action="" method="get"> 
    429410<div class="metabox-prefs"> 
    430411<?php meta_box_prefs('post') ?> 
    431412<br class="clear" /> 
     413</div></form> 
    432414</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"> 
    434428 
    435429<h2><?php 
     
    440434?></h2> 
    441435 
     436<form name="post" action="post.php" method="post" id="post"> 
    442437<?php 
    443438 
     
    556551</div> 
    557552</div><!-- /poststuff --> 
    558  
    559 </div> 
    560553</form> 
     554</div> 
    561555 
    562556<?php wp_comment_reply(); ?> 
  • trunk/wp-admin/edit-link-categories.php

    r8984 r9016  
    5656$messages[4] = __('Category not added.'); 
    5757$messages[5] = __('Category not updated.'); 
    58 $messages[6] = __('Categories deleted.'); 
     58$messages[6] = __('Categories deleted.'); ?> 
    5959 
    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'] ) ) : ?> 
    6174<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div> 
    6275<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']); 
     
    6578<div class="wrap"> 
    6679 
    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  
    8180    <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" /> 
    8481 
    8582<form id="posts-filter" action="" method="get"> 
  • trunk/wp-admin/edit-link-form.php

    r9014 r9016  
    262262<?php 
    263263} 
    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"> 
     264add_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> 
    280270<h5><?php _e('Show on screen') ?></h5> 
     271<form id="adv-settings" action="" method="get"> 
    281272<div class="metabox-prefs"> 
    282273<?php meta_box_prefs('link') ?> 
     274<?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 
    283275<br class="clear" /> 
     276</div></form> 
    284277</div></div> 
    285 </div> 
     278 
     279<div class="wrap"> 
    286280 
    287281<h2><?php echo $heading; ?></h2> 
     
    313307</div> 
    314308--> 
     309<?php 
     310echo $form; 
     311echo $link_added; 
     312 
     313wp_nonce_field( $nonce_action ); 
     314wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); 
     315wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?> 
    315316 
    316317<div id="poststuff"> 
  • trunk/wp-admin/edit-page-form.php

    r8946 r9016  
    4646$user_ID = (int) $user_ID; 
    4747?> 
    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; ?> 
    5648 
    5749<?php 
     
    286278?> 
    287279 
    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> 
    295284<h5><?php _e('Show on screen') ?></h5> 
     285<form id="adv-settings" action="" method="get"> 
    296286<div class="metabox-prefs"> 
    297287<?php meta_box_prefs('page') ?> 
     288<?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 
    298289<br class="clear" /> 
     290</div></form> 
    299291</div></div> 
    300 </div> 
     292 
     293<div class="wrap"> 
    301294 
    302295<h2><?php 
     
    306299        printf( __( '<a href="%s">Pages</a> / Edit Page' ), 'edit-pages.php' ); 
    307300?></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; ?> 
    308309 
    309310<?php 
     
    432433</div> 
    433434 
    434 </div> 
    435435</form> 
     436</div> 
    436437 
    437438<script type="text/javascript"> 
  • trunk/wp-admin/edit-pages.php

    r8984 r9016  
    9393} 
    9494 
    95 require_once('admin-header.php'); 
    96  
    97 if ( isset($_GET['upd']) && (int) $_GET['upd'] ) { ?> 
     95require_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'] ) { ?> 
    98111<div id="message" class="updated fade"><p> 
    99112<?php printf( __ngettext( '%d page updated.', '%d pages updated.', $_GET['upd'] ), number_format_i18n( $_GET['upd'] ) ); 
     
    108121 
    109122<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> 
    123123 
    124124<h2><?php 
  • trunk/wp-admin/edit-tags.php

    r8984 r9016  
    123123$messages[4] = __('Tag not added.'); 
    124124$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'] ) ) : ?> 
    128141<div id="message" class="updated fade"><p><?php echo $messages[$msg]; ?></p></div> 
    129142<?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']); 
     
    132145<div class="wrap"> 
    133146 
    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  
    148147    <h2><?php printf( current_user_can('manage_categories') ? __('Tags (<a href="%s">Add New</a>)') : __('Manage Tags'), '#addtag' ); ?></h2> 
    149  
    150 <br class="clear" /> 
    151148 
    152149<form id="posts-filter" action="" method="get"> 
  • trunk/wp-admin/edit.php

    r8997 r9016  
    9090    $mode = 'list'; 
    9191else 
    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 
    94108if ( isset($_GET['posted']) && $_GET['posted'] ) : $_GET['posted'] = (int) $_GET['posted']; ?> 
    95109<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> 
     
    110124 
    111125<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> 
    126126 
    127127<h2><?php 
  • trunk/wp-admin/js/settings-box.js

    r8988 r9016  
    11jQuery(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'); 
    95        return false; 
    106    }); 
    117     
    128    $('#hide-settings-link').click(function () { 
    13         $('#edit-settings').slideUp('normal', function(){ 
    14             $('#hide-settings-link').hide(); 
     9        $('#edit-settings-wrap').slideUp('normal', function(){ 
    1510            $('#show-settings-link').show(); 
    16             $('#show-settings').removeClass('show-settings-opened'); 
    1711        }); 
    18          
    1912        return false; 
    2013    }); 
  • trunk/wp-admin/link-manager.php

    r8984 r9016  
    7272        $sqlorderby = 'name'; 
    7373        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 
    7690if ( isset($_GET['deleted']) ) { 
    7791    echo '<div id="message" class="updated fade"><p>'; 
     
    8599<div class="wrap"> 
    86100 
    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  
    101101<h2><?php printf( __('Links (<a href="%s">Add New</a>)' ), 'link-add.php' ); ?></h2> 
    102  
    103 <br class="clear" /> 
    104102 
    105103<form id="posts-filter" action="" method="get"> 
  • trunk/wp-admin/upload.php

    r9014 r9016  
    138138require_once('admin-header.php'); ?> 
    139139 
    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> 
    142145<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> 
    149146<div class="metabox-prefs"> 
    150147<?php manage_columns_prefs('media') ?> 
     148<?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 
    151149<br class="clear" /> 
     150</div></form> 
    152151</div></div> 
    153 <?php wp_nonce_field( 'hiddencolumns', 'hiddencolumnsnonce', false ); ?> 
    154 </div></form
     152 
     153<div class="wrap"
    155154 
    156155<h2><?php 
  • trunk/wp-admin/users.php

    r8973 r9016  
    237237    endif; ?> 
    238238 
    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> 
    246251 
    247252<?php if ( isset($errors) && is_wp_error( $errors ) ) : ?> 
     
    263268<div class="wrap"> 
    264269 
    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  
    279270<form id="posts-filter" action="" method="get"> 
    280271    <?php if ( $wp_user_search->is_search() ) : ?> 
  • trunk/wp-admin/wp-admin.css

    r9008 r9016  
    20622062 
    20632063/* 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  
    20792064#show-settings-link, 
    20802065#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; 
    20852071} 
    20862072 
    20872073#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; 
    20892078} 
    20902079 
    20912080#hide-settings-link { 
    2092     background-image: url(images/menu-open.png); 
     2081    float: right; 
     2082    padding: 3px 8px; 
     2083    position: relative; 
    20932084} 
    20942085 
    20952086#edit-settings { 
    2096     padding: 29px 0 0
    2097     margin: 0 0 20px; 
     2087    position: relative
     2088    top: -12px; 
    20982089} 
    20992090 
    21002091#edit-settings-wrap h5 { 
    2101     padding: 10px 0 5px 20px; 
     2092    padding: 10px 0 0 15px; 
    21022093    margin: 0; 
    21032094    font-size: 13px; 
     
    21052096 
    21062097#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; 
    21262109} 
    21272110 
    21282111.metabox-prefs { 
    2129     padding: 8px 15px 15px; 
     2112    padding: 5px 10px 10px; 
    21302113} 
    21312114 
     
    21352118    padding: 5px 3px; 
    21362119    white-space: nowrap; 
    2137     width: 15em; 
     2120    width: 12em; 
    21382121} 
    21392122