From 3905811c9fab3491a42cd38cec97401ce743298c Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 14 Jan 2008 03:16:56 +0000 Subject: [PATCH] Have footer stay at the bottom even on short pages in long windows. Hat tip: DD32. git-svn-id: http://svn.automattic.com/wordpress/trunk@6606 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-footer.php | 6 +++--- wp-admin/admin-header.php | 2 ++ wp-admin/includes/template.php | 4 ++-- wp-admin/wp-admin.css | 13 +++++++++++++ 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/wp-admin/admin-footer.php b/wp-admin/admin-footer.php index a96770b53..07e4122cb 100644 --- a/wp-admin/admin-footer.php +++ b/wp-admin/admin-footer.php @@ -1,10 +1,10 @@ - + + diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index e8265ad11..da6d991f3 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -36,6 +36,8 @@ do_action('admin_head'); ?> +
+
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 66599380d..155a99b70 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -664,12 +664,12 @@ function parent_dropdown( $default = 0, $parent = 0, $level = 0 ) { function browse_happy() { $getit = __( 'WordPress recommends a better browser' ); echo ' -

Browse Happy

+

Browse Happy

'; } if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) - add_action( 'admin_footer', 'browse_happy' ); + add_action( 'in_admin_footer', 'browse_happy' ); function the_attachment_links( $id = false ) { $id = (int) $id; diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 4ef0baf6d..dfd3b58ac 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -971,6 +971,16 @@ a.view-comment-post-link { /* Admin Footer */ +html, body { + height:100%; +} +#wpwrap { + position: relative; + min-height: 100%; +} +#wpcontent{ + padding-bottom: 65px; +} #footer { clear: both; height: 65px; @@ -978,6 +988,8 @@ a.view-comment-post-link { margin: 0; background: #464646 url('images/logo-ghost.png') no-repeat 20px 10px; color: #999; + position: relative; + margin-top: -75px; } #footer a { @@ -1305,3 +1317,4 @@ ul.categorychecklist li { .wp-no-js-hidden { display: none; } .ui-tabs-hide { display: none; } .form-input-tip { color: #999; } +