From 28d9d8fde9d3ff1799f3c642d08e5f0b6c8492fb Mon Sep 17 00:00:00 2001 From: azaozz Date: Thu, 2 Oct 2008 01:32:27 +0000 Subject: [PATCH] Move Page Options button to the header git-svn-id: http://svn.automattic.com/wordpress/trunk@9054 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-header.php | 9 ++++++++- wp-admin/categories.php | 5 +---- wp-admin/edit-comments.php | 5 +---- wp-admin/edit-form-advanced.php | 5 +---- wp-admin/edit-link-categories.php | 5 +---- wp-admin/edit-link-form.php | 5 +---- wp-admin/edit-page-form.php | 5 +---- wp-admin/edit-pages.php | 5 +---- wp-admin/edit-tags.php | 5 +---- wp-admin/edit.php | 6 +----- wp-admin/js/settings-box.js | 9 +++++++-- wp-admin/link-manager.php | 5 +---- wp-admin/upload.php | 5 +---- wp-admin/users.php | 5 +---- wp-admin/wp-admin.css | 28 ++++++++-------------------- 15 files changed, 35 insertions(+), 72 deletions(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 9933effffe..2e090f5763 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -105,4 +105,11 @@ if ( $parent_file == 'options-general.php' ) { favorite_actions(); -?> +$settings_pages = array( 'categories.php', 'edit.php', 'edit-comments.php', 'edit-form-advanced.php', 'edit-link-categories.php', 'edit-link-form.php', 'edit-page-form.php', 'edit-tags.php', 'link-manager.php', 'upload.php', 'users.php', 'edit-pages.php' ); + +if ( in_array( $pagenow, $settings_pages ) ) { ?> +
+ + +
+ diff --git a/wp-admin/categories.php b/wp-admin/categories.php index c29c783c96..5a3473db6b 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -121,10 +121,7 @@ $messages[4] = __('Category not added.'); $messages[5] = __('Category not updated.'); ?> -
-
+ diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index ba3a3f1d08..32da3bc4d1 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -81,10 +81,7 @@ $post_id = isset($_GET['p']) ? (int) $_GET['p'] : 0; $search_dirty = ( isset($_GET['s']) ) ? $_GET['s'] : ''; $search = attribute_escape( $search_dirty ); ?> -
-
+ -
-
+

diff --git a/wp-admin/edit-link-categories.php b/wp-admin/edit-link-categories.php index 0efaf51bab..954364f956 100644 --- a/wp-admin/edit-link-categories.php +++ b/wp-admin/edit-link-categories.php @@ -58,10 +58,7 @@ $messages[4] = __('Category not added.'); $messages[5] = __('Category not updated.'); $messages[6] = __('Categories deleted.'); ?> -
-
+

diff --git a/wp-admin/edit-link-form.php b/wp-admin/edit-link-form.php index a24420ff26..46824c0adb 100644 --- a/wp-admin/edit-link-form.php +++ b/wp-admin/edit-link-form.php @@ -263,10 +263,7 @@ function link_advanced_meta_box($link) { } add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', 'link', 'normal', 'core'); ?> -
-
+
diff --git a/wp-admin/edit-page-form.php b/wp-admin/edit-page-form.php index 111ffd193a..62e529554d 100644 --- a/wp-admin/edit-page-form.php +++ b/wp-admin/edit-page-form.php @@ -277,10 +277,7 @@ add_meta_box('revisionsdiv', __('Page Revisions'), 'page_revisions_meta_box', 'p endif; ?> -
-
+
diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index e1d6ecd6e4..0d45db259d 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -100,10 +100,7 @@ if ( is_singular() ) { require_once('admin-header.php'); ?> -
-
+
diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 7869b20592..9b327f1e68 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -125,10 +125,7 @@ $messages[4] = __('Tag not added.'); $messages[5] = __('Tag not updated.'); $messages[6] = __('Tags deleted.'); ?> -
-
+

diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 4a8f1b0759..2ba92cdbe5 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -90,10 +90,7 @@ if ( empty($_GET['mode']) ) else $mode = attribute_escape($_GET['mode']); ?> -
-
- +
-
-
+
-
-
+ -
-
+
diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 88cb4b0da8..36394b2d49 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -2052,31 +2052,19 @@ a.togbox { } /* show/hide settings */ -#show-settings-link, -#hide-settings-link { +#edit-settings { + position: absolute; + right: 200px; + top: 46px; +} + +.show-settings { display: block; height: 18px; font-size: 11px; text-decoration: none; z-index: 1; -} - -#show-settings-link { - position: absolute; - padding: 3px 8px 1px; - right: 15px; - top: 0; -} - -#hide-settings-link { - float: right; padding: 3px 8px; - position: relative; -} - -#edit-settings { - position: relative; - top: -12px; } #edit-settings-wrap h5 { @@ -2089,7 +2077,7 @@ a.togbox { border-style: none solid solid; border-top: 0 none; border-width: 0 1px 1px; - margin: 0 15px; + margin: -10px 15px 10px; -moz-border-radius: 0 0 4px 4px; -webkit-border-bottom-left-radius: 4px; -webkit-border-bottom-right-radius: 4px;