From d419fdb777b5cc1652637e4a5cf263a6bab5e8e6 Mon Sep 17 00:00:00 2001 From: azaozz Date: Sun, 28 Sep 2008 12:29:19 +0000 Subject: [PATCH] Move posts filter above tablenav git-svn-id: http://svn.automattic.com/wordpress/trunk@9018 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/colors-classic.css | 4 +- wp-admin/css/colors-fresh.css | 3 +- wp-admin/css/global.css | 3 +- wp-admin/css/ie-rtl.css | 2 +- wp-admin/edit-comments.php | 14 +------ wp-admin/edit-pages.php | 3 +- wp-admin/edit.php | 71 +++++++++++++++++--------------- wp-admin/images/exc.gif | Bin 0 -> 73 bytes wp-admin/images/list.gif | Bin 0 -> 82 bytes wp-admin/link-manager.php | 20 +++++---- wp-admin/rtl.css | 7 +--- wp-admin/wp-admin.css | 36 +++++----------- 12 files changed, 72 insertions(+), 91 deletions(-) create mode 100644 wp-admin/images/exc.gif create mode 100644 wp-admin/images/list.gif diff --git a/wp-admin/css/colors-classic.css b/wp-admin/css/colors-classic.css index 07ead81c6e..59a2adab1d 100644 --- a/wp-admin/css/colors-classic.css +++ b/wp-admin/css/colors-classic.css @@ -61,7 +61,7 @@ li.widget-list-control-item h4.widget-title a, } li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, -ul.view-switch li.current, .form-table tr, #poststuff h3, #replyhandle, +.form-table tr, #poststuff h3, #replyhandle, .login form, h3.info-box-title, #post-status-info, #edit-settings-wrap, #wpbody-content .describe tr { background-color: #cfebf7; @@ -248,7 +248,7 @@ div.dashboard-widget-submit input, background-color: #a6d2e5 !important; } -.submitbox #autosave .error, ul.view-switch li.current a, +.submitbox #autosave .error, #side-info-column #category-tabs .ui-tabs-selected a { color: #333; } diff --git a/wp-admin/css/colors-fresh.css b/wp-admin/css/colors-fresh.css index 7c6f2dd9f0..3c47547bbd 100644 --- a/wp-admin/css/colors-fresh.css +++ b/wp-admin/css/colors-fresh.css @@ -61,7 +61,7 @@ li.widget-list-control-item h4.widget-title a, } li.widget-list-control-item, div.nav, .tablenav, #dashboard-widgets p.dashboard-widget-links, -ul.view-switch li.current, .form-table tr, #poststuff h3, #replyhandle, +.form-table tr, #poststuff h3, #replyhandle, .login form, h3.info-box-title, #post-status-info, #edit-settings-wrap, #wpbody-content .describe tr { background-color: #eaf3fa; @@ -247,7 +247,6 @@ div.dashboard-widget-submit input, border-color: #328ab2; } -ul.view-switch li.current a, #side-info-column #category-tabs .ui-tabs-selected a { color: #333; } diff --git a/wp-admin/css/global.css b/wp-admin/css/global.css index feaaede747..7340dce297 100644 --- a/wp-admin/css/global.css +++ b/wp-admin/css/global.css @@ -131,10 +131,11 @@ h6 { .subsubsub { list-style: none; - margin: 14px 0 8px 0; + margin: 0 0 8px; padding: 0; white-space: nowrap; font-size: 12px; + float: left; } .subsubsub a { line-height: 200%; padding: 3px; text-decoration: none; } diff --git a/wp-admin/css/ie-rtl.css b/wp-admin/css/ie-rtl.css index 9c9dc49c20..ef0798b772 100644 --- a/wp-admin/css/ie-rtl.css +++ b/wp-admin/css/ie-rtl.css @@ -51,7 +51,7 @@ form#widgets-filter { display:none; } /* fix manage comment page */ -ul.view-switch li { +.view-switch { float:left; } form#posts-filter { diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 42fa114857..f06e17631c 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -111,7 +111,6 @@ if ( isset( $_GET['approved'] ) || isset( $_GET['deleted'] ) || isset( $_GET['sp ?>
-

    @@ -141,17 +140,6 @@ unset($status_links); ?>
- - -
- - -
+ +
diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index 7cd92f82e7..5b54febaeb 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -132,7 +132,6 @@ if ( isset($_GET['author']) && $_GET['author'] ) { printf( _c( '%1$s%2$s%3$s (Add New)|You can reorder these: 1: Pages, 2: by {s}, 3: matching {s}' ), $post_status_label, $h2_author, $h2_search, 'page-new.php' ); ?> -
    $page_links
"; ?> + +
- - - -
    -
  • >
  • -
  • >
  • -
- -
- - add_query_arg( 'paged', '%#%' ), - 'format' => '', - 'total' => $wp_query->max_num_pages, - 'current' => $_GET['paged'] -)); - -if ( $page_links ) - echo "
$page_links
"; -?> - -
- - - +
+ posts WHERE post_type = 'post' ORDER BY post_date DESC"; @@ -256,6 +225,42 @@ do_action('restrict_manage_posts'); + +
+ + + +
+ + + + + + +
+ add_query_arg( 'paged', '%#%' ), + 'format' => '', + 'total' => $wp_query->max_num_pages, + 'current' => $_GET['paged'] +)); + +if ( $page_links ) + echo "
$page_links
"; +?> + +
+ + +

diff --git a/wp-admin/images/exc.gif b/wp-admin/images/exc.gif new file mode 100644 index 0000000000000000000000000000000000000000..c6e4d711534bb3e5a0cd5982080b5ad0a5e9daaf GIT binary patch literal 73 zcmZ?wbhEHb6k!lyn8?6z>(;IR|NsAEWMW`oQ2fclBEs;WK?leN%8D>BFiExauRQ&h cfAJiV*6z*s_Wb5=d*l)JtaI6`C=0C9&JY5)KL literal 0 HcmV?d00001 diff --git a/wp-admin/images/list.gif b/wp-admin/images/list.gif new file mode 100644 index 0000000000000000000000000000000000000000..c6304d0b07eb332cc3d381656ac4acd8f52f3e50 GIT binary patch literal 82 zcmZ?wbhEHb6k!lyn8?6z>(;Gr-@g6-|NkE&lj2VnRuKkf1|0?<0Le2jDYx{mJpGp6 lcgB_|?M?Ug{N`_qahdjPX3Q$BZSS@n6Y;vfEs%l18UXScAbbD- literal 0 HcmV?d00001 diff --git a/wp-admin/link-manager.php b/wp-admin/link-manager.php index 2a8e5ec24e..903bcccd27 100644 --- a/wp-admin/link-manager.php +++ b/wp-admin/link-manager.php @@ -100,15 +100,7 @@ if ( isset($_GET['deleted']) ) {

Add New)' ), 'link-add.php' ); ?>

- -
- -
- - + \n"; @@ -129,7 +121,17 @@ echo $select_order; ?> + +
+
+ +
+ +

diff --git a/wp-admin/rtl.css b/wp-admin/rtl.css index 8f9f258d55..d927e75e65 100644 --- a/wp-admin/rtl.css +++ b/wp-admin/rtl.css @@ -310,13 +310,10 @@ p#tag-search, p.search-box { #posts-filter fieldset legend { padding: 0 1px .2em 0; } -ul.view-switch { +.view-switch { float: left; - margin: -23px 0 -2px 5px; -} -ul.view-switch li { - float: right; } + #the-comment-list td.comment p.comment-author { margin-right: 0 ; } diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index c2ff1907df..32471e45df 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -223,7 +223,7 @@ table#availablethemes td.bottom { .submit input, .button, .button-secondary, .button-highlighted { font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif; - padding: 3px 5px; + padding: 2px 4px; font-size: 12px; line-height: 1.5em; border-width: 1px; @@ -1540,10 +1540,6 @@ form#tags-filter { position: relative; } -form#posts-filter { - position: relative; -} - p#big-add-button { position: absolute; right: 0; @@ -1616,37 +1612,27 @@ td.post-title p { } body.minwidth { - min-width: 808px; + min-width: 785px; } -ul.view-switch { +.view-switch { float: right; - list-style: none; - margin: -23px 5px -2px 0; + margin: 3px 5px; position: relative; } -ul.view-switch li { - float: left; +.view-switch img { margin: 0; - font-size: 11px; - padding: 4px 6px; - font-weight: bold; + border: 1px solid #fff; } -ul.view-switch a { - text-decoration: none; +.view-switch img.current { + border: 1px solid #999; } -ul.view-switch li.current { - border: none; - -moz-border-radius: 3px 3px 0 0; - -webkit-border-top-left-radius: 3px; - -webkit-border-top-right-radius: 3px; - -khtml-border-top-left-radius: 3px; - -khtml-border-top-right-radius: 3px; - border-top-left-radius: 3px; - border-top-right-radius: 3px; +.filter { + float: left; + margin: 0 30px; } #the-comment-list td.comment p.comment-author {