Make WordPress Core


Ignore:
Timestamp:
10/03/2008 12:13:12 AM (16 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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' ); ?>
Note: See TracChangeset for help on using the changeset viewer.