Fix the position of the search field on all admin pages.

git-svn-id: https://develop.svn.wordpress.org/trunk@8867 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2008-09-11 18:54:05 +00:00
parent 57f978fede
commit 0bfa8da71c
12 changed files with 112 additions and 103 deletions

View File

@@ -101,9 +101,6 @@ if ( $http_post && isset($sidebars_widgets[$_POST['sidebar']]) ) {
exit;
}
// What widget (if any) are we editing
$edit_widget = -1;
@@ -225,17 +222,22 @@ $show_values = array(
$show = isset($_GET['show']) && isset($show_values[$_GET['show']]) ? attribute_escape( $_GET['show'] ) : false;
$messages = array(
'updated' => __('Changes saved.')
);
require_once( 'admin-header.php' );
require_once( 'admin-header.php' ); ?>
if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?>
<form class="search-form" action="" method="get">
<p id="widget-search" class="search-box">
<label class="hidden" for="widget-search-input"><?php _e( 'Search Widgets' ); ?></label>
<input type="text" id="widget-search-input" class="search-input" name="s" value="<?php echo attribute_escape( $widget_search ); ?>" />
<input type="submit" class="button" value="<?php _e( 'Search Widgets' ); ?>" />
</p>
</form>
<?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?>
<div id="message" class="updated fade"><p><?php echo $messages[$_GET['message']]; ?></p></div>
<?php endif; ?>
<div class="wrap">
@@ -243,11 +245,6 @@ if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) : ?>
<form id="widgets-filter" action="" method="get">
<h2><?php _e( 'Widgets' ); ?></h2>
<p id="widget-search" class="search-box">
<label class="hidden" for="widget-search-input"><?php _e( 'Search Widgets' ); ?></label>
<input type="text" id="widget-search-input" class="search-input" name="s" value="<?php echo attribute_escape( $widget_search ); ?>" />
<input type="submit" class="button" value="<?php _e( 'Search Widgets' ); ?>" />
</p>
<div class="widget-liquid-left-holder">
<div id="available-widgets-filter" class="widget-liquid-left">