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
This commit is contained in:
matt 2008-01-14 03:16:56 +00:00
parent d01592f0ae
commit 3905811c9f
4 changed files with 20 additions and 5 deletions

View File

@ -1,10 +1,10 @@
</div><!-- wpcontent -->
</div><!-- wpwrap -->
<div id="footer">
<p><?php
do_action('in_admin_footer', '');
$upgrade = apply_filters( 'update_footer', '' );
echo __('Thank you for creating with <a href="http://wordpress.org/">WordPress</a>').' | '.__('<a href="http://codex.wordpress.org/">Documentation</a>').' | '.__('<a href="http://wordpress.org/support/forum/4">Feedback</a>').' '.$upgrade;
?></p>
</div>
<?php do_action('admin_footer', ''); ?>

View File

@ -36,6 +36,8 @@ do_action('admin_head');
?>
</head>
<body class="wp-admin <?php echo apply_filters( 'admin_body_class', '' ); ?>">
<div id="wpwrap">
<div id="wpcontent">
<div id="wphead">
<h1><?php bloginfo('name'); ?> <span id="viewsite"><a href="<?php echo get_option('home') . '/'; ?>"><?php _e('Visit Site') ?></a></span></h1>
</div>

View File

@ -664,12 +664,12 @@ function parent_dropdown( $default = 0, $parent = 0, $level = 0 ) {
function browse_happy() {
$getit = __( 'WordPress recommends a better browser' );
echo '
<p id="bh" style="text-align: center;"><a href="http://browsehappy.com/" title="'.$getit.'"><img src="images/browse-happy.gif" alt="Browse Happy" /></a></p>
<p id="bh" style="float: right"><a href="http://browsehappy.com/" title="'.$getit.'"><img src="images/browse-happy.gif" alt="Browse Happy" /></a></p>
';
}
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;

View File

@ -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; }