WordPress.org

Make WordPress Core

Changeset 9073


Ignore:
Timestamp:
10/03/08 00:13:12 (6 years ago)
Author:
azaozz
Message:

Reposition the Search and Filter. Brings the top of the screen closer to the wireframes.

Location:
trunk/wp-admin
Files:
12 edited

Legend:

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

    r9069 r9073  
    140140<div class="wrap"> 
    141141 
    142 <form id="posts-filter" action="" method="get"> 
    143  
    144 <p id="post-search"> 
     142<ul class="subsubsub"><li class="current"><a class="current"><br /></a></li></ul> 
     143<form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     144<p class="search-box"> 
    145145    <label class="hidden" for="post-search-input"><?php _e('Search Categories'); ?>:</label> 
    146     <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
     146    <input type="text" class="search-input" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
    147147    <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" /> 
    148148</p> 
    149  
     149</form> 
     150<br class="clear" /> 
     151 
     152<form id="posts-filter" action="" method="get"> 
    150153<div class="tablenav"> 
    151154 
     
    180183</div> 
    181184 
    182 <br class="clear" /> 
     185<div class="clear"></div> 
    183186 
    184187<table class="widefat"> 
  • trunk/wp-admin/css/global.css

    r9060 r9073  
    132132.subsubsub { 
    133133    list-style: none; 
    134     margin: 0 0 8px; 
    135     padding: 0; 
     134    margin: 0; 
     135    padding: 0; 
     136    position: relative; 
     137    top: -5px; 
    136138    white-space: nowrap; 
    137139    font-size: 12px; 
     
    224226    border-style: solid; 
    225227    padding: 0 0.6em; 
    226     margin-bottom: 1em; 
     228    margin: 3px 15px 5px; 
    227229} 
    228230 
  • trunk/wp-admin/css/ie.css

    r8827 r9073  
    118118} 
    119119 
    120 .search-box .button, #widget-search .button { 
    121     padding: 1px; 
    122 } 
    123  
    124120.widefat tr, .widefat th { 
    125121    margin-bottom: 0; 
  • trunk/wp-admin/edit-comments.php

    r9069 r9073  
    174174</div> 
    175175 
    176 <form id="posts-filter" action="" method="get"> 
    177  
    178 <p id="post-search"> 
     176<form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     177<p class="search-box"> 
    179178    <label class="hidden" for="post-search-input"><?php _e( 'Search Comments' ); ?>:</label> 
    180     <input type="text" id="post-search-input" name="s" value="<?php echo $search; ?>" /> 
     179    <input type="text" class="search-input" id="post-search-input" name="s" value="<?php echo $search; ?>" /> 
    181180    <input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button" /> 
    182181</p> 
    183  
    184182</form> 
    185183 
     
    250248</div> 
    251249 
    252 <br class="clear" /> 
     250<div class="clear"></div> 
    253251 
    254252<?php if ( $comments ) { ?> 
  • trunk/wp-admin/edit-link-categories.php

    r9069 r9073  
    7676<div class="wrap"> 
    7777 
    78 <form id="posts-filter" action="" method="get"> 
    79  
    80 <p id="post-search"> 
     78<ul class="subsubsub"><li><a class="current"><br /></a></li></ul> 
     79<form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     80<p class="search-box"> 
    8181    <label class="hidden" for="post-search-input"><?php _e( 'Search Categories' ); ?>:</label> 
    82     <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
     82    <input type="text" class="search-input" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
    8383    <input type="submit" value="<?php _e( 'Search Categories' ); ?>" class="button" /> 
    8484</p> 
     85</form> 
     86<br class="clear" /> 
    8587 
     88<form id="posts-filter" action="" method="get"> 
    8689<div class="tablenav"> 
    8790 
     
    116119</div> 
    117120 
    118 <br class="clear" /> 
     121<div class="clear"></div> 
    119122 
    120123<table class="widefat"> 
  • trunk/wp-admin/edit-pages.php

    r9069 r9073  
    111111</div> 
    112112 
    113 <div class="wrap"> 
    114  
    115113<?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) ) { ?> 
    116114<div id="message" class="updated fade"><p> 
     
    137135endif; ?> 
    138136 
     137<div class="wrap"> 
    139138<ul class="subsubsub"> 
    140139<?php 
     
    164163</ul> 
    165164 
    166 <form id="posts-filter" action="" method="get"> 
    167  
    168 <p id="post-search"> 
     165<form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     166<p class="search-box"> 
    169167    <label class="hidden" for="post-search-input"><?php _e( 'Search Pages' ); ?>:</label> 
    170     <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
     168    <input type="text" class="search-input" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
    171169    <input type="submit" value="<?php _e( 'Search Pages' ); ?>" class="button" /> 
    172170</p> 
     171</form> 
     172 
     173<form id="posts-filter" action="" method="get"> 
    173174 
    174175<?php if ( isset($_GET['post_status'] ) ) : ?> 
     
    210211</div> 
    211212 
    212 <br class="clear" /> 
     213<div class="clear"></div> 
    213214 
    214215<?php 
  • trunk/wp-admin/edit-tags.php

    r9069 r9073  
    143143<div class="wrap"> 
    144144 
    145 <form id="posts-filter" action="" method="get"> 
    146  
    147 <p id="post-search"> 
     145<ul class="subsubsub"><li class="current"><a class="current"><br /></a></li></ul> 
     146<form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     147<p class="search-box"> 
    148148    <label class="hidden" for="post-search-input"><?php _e( 'Search Tags' ); ?>:</label> 
    149     <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
     149    <input type="text" class="search-input" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
    150150    <input type="submit" value="<?php _e( 'Search Tags' ); ?>" class="button" /> 
    151151</p> 
    152  
     152</form> 
     153<br class="clear" /> 
     154 
     155<form id="posts-filter" action="" method="get"> 
    153156<div class="tablenav"> 
    154157 
     
    183186</div> 
    184187 
    185 <br class="clear" /> 
     188<div class="clear"></div> 
    186189 
    187190<table class="widefat"> 
  • trunk/wp-admin/edit.php

    r9069 r9073  
    100100</div></form> 
    101101</div> 
    102 <div class="wrap"> 
    103102 
    104103<?php 
     
    111110<div id="message" class="updated fade"><p> 
    112111<?php if ( (int) $_GET['updated'] ) { 
    113     printf( __ngettext( '%d page updated.', '%d pages updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) ); 
     112    printf( __ngettext( '%d post updated.', '%d posts updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) ); 
    114113    unset($_GET['updated']); 
    115114} 
     
    119118 
    120119if ( (int) $_GET['locked'] ) { 
    121     printf( __ngettext( ' %d page not updated, somebody is editing it.', ' %d pages not updated, somebody is editing them.', $_GET['locked'] ), number_format_i18n( $_GET['skipped'] ) ); 
     120    printf( __ngettext( ' %d post not updated, somebody is editing it.', ' %d posts not updated, somebody is editing them.', $_GET['locked'] ), number_format_i18n( $_GET['locked'] ) ); 
    122121    unset($_GET['locked']); 
    123122} ?> 
     
    125124<?php } ?> 
    126125 
     126<div class="wrap"> 
    127127<ul class="subsubsub"> 
    128128<?php 
     
    198198</div> 
    199199 
    200 <div class="view-switch"> 
    201     <a href="<?php echo clean_url(add_query_arg('mode', 'list', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'list' == $mode ) echo 'class="current"'; ?> src="images/list.gif" title="<?php _e('List View') ?>" alt="<?php _e('List View') ?>" /></a> 
    202     <a href="<?php echo clean_url(add_query_arg('mode', 'excerpt', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'excerpt' == $mode ) echo 'class="current"'; ?> src="images/exc.gif" title="<?php _e('Excerpt View') ?>" alt="<?php _e('Excerpt View') ?>" /></a> 
    203 </div> 
    204  
    205 <form id="posts-filter" action="" method="get"> 
    206  
    207 <p id="post-search"> 
     200<form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     201<p class="search-box"> 
    208202    <label class="hidden" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label> 
    209     <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> 
     203    <input type="text" class="search-input" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> 
    210204    <input type="submit" value="<?php _e( 'Search Posts' ); ?>" class="button" /> 
    211205</p> 
     206</form> 
     207 
     208<form id="posts-filter" action="" method="get"> 
    212209 
    213210<?php if ( isset($_GET['post_status'] ) ) : ?> 
     
    225222)); 
    226223 
    227 if ( $page_links ) 
    228     echo "<div class='tablenav-pages'>$page_links</div>"; 
    229224?> 
    230225 
     
    239234</div> 
    240235 
    241 <br class="clear" /> 
    242 </div> 
    243  
    244 <br class="clear" /> 
     236<?php if ( $page_links ) { ?> 
     237<div class="tablenav-pages"><?php echo $page_links; ?></div> 
     238<?php } ?> 
     239 
     240<div class="view-switch"> 
     241    <a href="<?php echo clean_url(add_query_arg('mode', 'list', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'list' == $mode ) echo 'class="current"'; ?> src="images/list.gif" title="<?php _e('List View') ?>" alt="<?php _e('List View') ?>" /></a> 
     242    <a href="<?php echo clean_url(add_query_arg('mode', 'excerpt', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'excerpt' == $mode ) echo 'class="current"'; ?> src="images/exc.gif" title="<?php _e('Excerpt View') ?>" alt="<?php _e('Excerpt View') ?>" /></a> 
     243</div> 
     244 
     245<div class="clear"></div> 
     246</div> 
     247 
     248<div class="clear"></div> 
    245249 
    246250<?php include( 'edit-post-rows.php' ); ?> 
  • trunk/wp-admin/link-manager.php

    r9069 r9073  
    9797<div class="wrap"> 
    9898 
     99<div class="filter"> 
    99100<form id="list-filter" action="" method="get"> 
    100101<?php 
     
    118119?> 
    119120<input type="submit" id="post-query-submit" value="<?php _e('Filter'); ?>" class="button-secondary" /> 
    120 </form> 
    121  
    122 <form id="posts-filter" action="" method="get"> 
    123  
    124 <p id="post-search"> 
     121</form></div> 
     122 
     123<ul class="subsubsub"><li><a class="current"><br /></a></li></ul> 
     124<form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     125<p class="search-box"> 
    125126    <label class="hidden" for="post-search-input"><?php _e( 'Search Links' ); ?>:</label> 
    126     <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
     127    <input type="text" class="search-input" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" /> 
    127128    <input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" /> 
    128129</p> 
    129  
     130</form> 
     131<br class="clear" /> 
     132 
     133<form id="posts-filter" action="" method="get"> 
    130134<div class="tablenav"> 
    131135 
     
    141145</div> 
    142146 
    143 <br class="clear" /> 
     147<div class="clear"></div> 
    144148 
    145149<?php 
  • trunk/wp-admin/plugins.php

    r9032 r9073  
    345345    </div> 
    346346</div> 
    347 <br class="clear" /> 
     347<div class="clear"></div> 
    348348<?php print_plugins_table($active_plugins, 'active') ?> 
    349349</form> 
     
    371371    </div> 
    372372</div> 
    373 <br class="clear" /> 
     373<div class="clear"></div> 
    374374<?php print_plugins_table($recent_plugins, 'recent') ?> 
    375375</form> 
     
    389389    </div> 
    390390</div> 
    391 <br class="clear" /> 
     391<div class="clear"></div> 
    392392<?php print_plugins_table($inactive_plugins, 'inactive') ?> 
    393393</form> 
  • trunk/wp-admin/upload.php

    r9069 r9073  
    253253</form></div> 
    254254 
    255 <form id="posts-filter" action="" method="get"> 
    256  
    257 <p id="post-search"> 
     255<form class="search-form" action="<?php echo $pagenow ?>" method="get"> 
     256<p class="search-box"> 
    258257    <label class="hidden" for="post-search-input"><?php _e( 'Search Media' ); ?>:</label> 
    259     <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> 
     258    <input type="text" class="search-input" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> 
    260259    <input type="submit" value="<?php _e( 'Search Media' ); ?>" class="button" /> 
    261260</p> 
    262  
     261</form> 
     262 
     263<form id="posts-filter" action="" method="get"> 
    263264<div class="tablenav"> 
    264265<?php 
     
    297298</div> 
    298299 
    299 <br class="clear" /> 
     300<div class="clear"></div> 
    300301 
    301302<?php if ( isset($orphans) ) { ?> 
  • trunk/wp-admin/wp-admin.css

    r9068 r9073  
    545545 
    546546.tablenav { 
     547    clear: both; 
     548    vertical-align: text-top; 
     549    /* 
    547550    height: 2em; 
    548551    padding: 7px 10px; 
    549     clear: both; 
    550552    margin-bottom: -10px; 
    551553    margin-top: 8px; 
    552     vertical-align: text-top; 
     554    */ 
    553555} 
    554556 
     
    15661568p.search-box { 
    15671569    position: absolute; 
    1568     right: 15px; 
    1569     top: 52px; 
    1570     margin: 0; 
    1571 } 
    1572  
    1573 p.search-box .button, #widget-search .button { 
    1574     padding: 3px; 
    1575     font-size: 13px; 
     1570    right: 0; 
     1571    top: -5px; 
     1572    margin: 0; 
    15761573} 
    15771574 
    15781575.search-input { 
    1579     margin-right: 2px; 
    15801576    border-width: 1px; 
    15811577    border-style: solid; 
     1578    padding: 2px; 
    15821579} 
    15831580 
     
    16291626.view-switch { 
    16301627    float: right; 
    1631     margin: 3px 5px; 
     1628    margin: 0 20px; 
    16321629    position: relative; 
     1630    top: 2px; 
    16331631} 
    16341632 
     
    16431641 
    16441642.filter { 
    1645     float: left; 
    1646     margin: 0 30px; 
     1643    left: 180px; 
     1644    position: absolute; 
     1645    top: 24px; 
    16471646} 
    16481647 
Note: See TracChangeset for help on using the changeset viewer.