Index: themes/bartik/bartik.info
===================================================================
RCS file: /cvs/drupal/drupal/themes/bartik/bartik.info,v
retrieving revision 1.3
diff -u -p -r1.3 bartik.info
--- themes/bartik/bartik.info	28 Jul 2010 01:40:39 -0000	1.3
+++ themes/bartik/bartik.info	20 Aug 2010 17:10:12 -0000
@@ -13,6 +13,7 @@ stylesheets[all][] = css/colors.css
 stylesheets[print][] = css/print.css
 
 scripts[] = scripts/search.js
+scripts[] = scripts/stickyfooter.js
 
 regions[header] = Header
 regions[help] = Help
Index: themes/bartik/template.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/bartik/template.php,v
retrieving revision 1.4
diff -u -p -r1.4 template.php
--- themes/bartik/template.php	9 Aug 2010 16:54:50 -0000	1.4
+++ themes/bartik/template.php	20 Aug 2010 17:10:12 -0000
@@ -25,6 +25,7 @@ function bartik_preprocess_html(&$variab
   // Add conditional stylesheets for IE
   drupal_add_css(path_to_theme() . '/css/ie.css', array('weight' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE)));
   drupal_add_css(path_to_theme() . '/css/ie6.css', array('weight' => CSS_THEME, 'browsers' => array('IE' => 'IE 6', '!IE' => FALSE)));
+  drupal_add_css(path_to_theme() . '/css/ie8.css', array('weight' => CSS_THEME, 'browsers' => array('IE' => 'IE 8', '!IE' => FALSE)));
 }
 
 /**
Index: themes/bartik/css/ie6.css
===================================================================
RCS file: /cvs/drupal/drupal/themes/bartik/css/ie6.css,v
retrieving revision 1.1
diff -u -p -r1.1 ie6.css
--- themes/bartik/css/ie6.css	6 Jul 2010 05:25:51 -0000	1.1
+++ themes/bartik/css/ie6.css	20 Aug 2010 17:10:12 -0000
@@ -1,5 +1,11 @@
 /* $Id: ie6.css,v 1.1 2010/07/06 05:25:51 webchick Exp $ */
 
+/* sticky footer */
+#page-wrapper {
+  display: table;
+  height: 100%
+}
+
 #content {
   overflow: hidden;
 }
Index: themes/bartik/css/ie8.css
===================================================================
RCS file: themes/bartik/css/ie8.css
diff -N themes/bartik/css/ie8.css
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ themes/bartik/css/ie8.css	20 Aug 2010 17:10:12 -0000
@@ -0,0 +1,8 @@
+/* $Id$ */
+
+/* sticky footer */
+#page-wrapper {
+  display: table;
+  height: 100%;
+  width: 100%;
+}
Index: themes/bartik/css/layout.css
===================================================================
RCS file: /cvs/drupal/drupal/themes/bartik/css/layout.css,v
retrieving revision 1.1
diff -u -p -r1.1 layout.css
--- themes/bartik/css/layout.css	6 Jul 2010 05:25:51 -0000	1.1
+++ themes/bartik/css/layout.css	20 Aug 2010 17:10:12 -0000
@@ -27,6 +27,9 @@
   float: left; /* LTR */
   position: relative;
 }
+#page-wrapper {
+  min-height: 100%;
+}
 .one-sidebar #content {
   width: 720px;
 }
@@ -40,8 +43,8 @@
 .sidebar {
   width: 240px;
 }
-#main-wrapper {
-  min-height: 500px;
+#page {
+  overflow: auto;
 }
 #messages div.section,
 #content .section,
@@ -58,6 +61,10 @@
   width: 280px;
 }
 #footer-wrapper {
+  position: relative;
+  clear: both;
+}
+#footer-wrapper .section {
   padding: 35px 5px 30px;
 }
 #footer-firstcolumn,
Index: themes/bartik/css/style.css
===================================================================
RCS file: /cvs/drupal/drupal/themes/bartik/css/style.css,v
retrieving revision 1.3
diff -u -p -r1.3 style.css
--- themes/bartik/css/style.css	6 Aug 2010 01:40:29 -0000	1.3
+++ themes/bartik/css/style.css	20 Aug 2010 17:10:12 -0000
@@ -1,7 +1,10 @@
 /* $Id: style.css,v 1.3 2010/08/06 01:40:29 webchick Exp $ */
 
 /* ---------- Overall Specifications ---------- */
-
+html,
+body {
+  height: 100%;
+}
 body,
 #preview {
   background-color: #fff;
Index: themes/bartik/scripts/stickyfooter.js
===================================================================
RCS file: themes/bartik/scripts/stickyfooter.js
diff -N themes/bartik/scripts/stickyfooter.js
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ themes/bartik/scripts/stickyfooter.js	20 Aug 2010 17:10:12 -0000
@@ -0,0 +1,20 @@
+/* $Id$ */
+
+/**
+  * This script gets the height of the footer
+  * after the browser has rendered it so that
+  * the sticky footer will work.
+  */
+
+jQuery.noConflict();
+jQuery(document).ready(function() {
+  var height = jQuery('#footer-wrapper').height();
+  var toolbar = jQuery('#toolbar').height();
+
+  jQuery('#footer-wrapper').css('height', height + 'px');
+  jQuery('#footer-wrapper').css('margin-top', '-' + height + 'px');
+
+  jQuery('#page').css('padding-bottom', height + 'px');
+  jQuery('#page').css('padding-top', toolbar + 'px');
+  jQuery('#page').css('margin-top', '-' + toolbar + 'px');
+});
Index: themes/bartik/templates/page.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/bartik/templates/page.tpl.php,v
retrieving revision 1.3
diff -u -p -r1.3 page.tpl.php
--- themes/bartik/templates/page.tpl.php	8 Aug 2010 19:35:49 -0000	1.3
+++ themes/bartik/templates/page.tpl.php	20 Aug 2010 17:10:12 -0000
@@ -225,56 +225,56 @@
     </div></div> <!-- /#triptych, /#triptych-wrapper -->
   <?php endif; ?>
 
-  <div id="footer-wrapper"><div class="section">
+</div></div> <!-- /#page, /#page-wrapper -->
 
-    <?php if ($page['footer_firstcolumn'] || $page['footer_secondcolumn'] || $page['footer_thirdcolumn'] || $page['footer_fourthcolumn']): ?>
-      <div id="footer-columns" class="clearfix">
+<div id="footer-wrapper"><div class="section">
 
-        <?php if ($page['footer_firstcolumn']): ?>
-          <div id="footer-firstcolumn" class="region sitemap"><div class="section">
-            <?php print render($page['footer_firstcolumn']); ?>
-          </div></div> <!-- /.section, /#footer-firstcolumn -->
-        <?php endif; ?>
-
-        <?php if ($page['footer_secondcolumn']): ?>
-          <div id="footer-secondcolumn" class="region sitemap"><div class="section">
-            <?php print render($page['footer_secondcolumn']); ?>
-          </div></div> <!-- /.section, /#footer-secondcolumn -->
-        <?php endif; ?>
-
-        <?php if ($page['footer_thirdcolumn']): ?>
-          <div id="footer-thirdcolumn" class="region sitemap"><div class="section">
-            <?php print render($page['footer_thirdcolumn']); ?>
-          </div></div> <!-- /.section, /#footer-thirdcolumn -->
-        <?php endif; ?>
-
-        <?php if ($page['footer_fourthcolumn']): ?>
-          <div id="footer-fourthcolumn" class="region sitemap"><div class="section">
-            <?php print render($page['footer_fourthcolumn']); ?>
-          </div></div> <!-- /.section, /#footer-fourthcolumn -->
-        <?php endif; ?>
-
-      </div><!-- /#footer-columns -->
-    <?php endif; ?>
-
-    <?php if ($page['footer'] || $secondary_menu): ?>
-      <div id="footer" class="clearfix">
-        <?php print theme('links__system_secondary_menu', array(
-          'links' => $secondary_menu,
-          'attributes' => array(
-            'id' => 'secondary-menu',
-            'class' => array('links', 'clearfix'),
-          ),
-          'heading' => array(
-            'text' => t('Secondary menu'),
-            'level' => 'h2',
-            'class' => array('element-invisible'),
-          ),
-        )); ?>
-        <?php print render($page['footer']); ?>
-    </div><!-- /#footer -->
-    <?php endif; ?>
+  <?php if ($page['footer_firstcolumn'] || $page['footer_secondcolumn'] || $page['footer_thirdcolumn'] || $page['footer_fourthcolumn']): ?>
+    <div id="footer-columns" class="clearfix">
 
-  </div></div> <!-- /.section, /#footer-wrapper -->
+      <?php if ($page['footer_firstcolumn']): ?>
+        <div id="footer-firstcolumn" class="region sitemap"><div class="section">
+          <?php print render($page['footer_firstcolumn']); ?>
+        </div></div> <!-- /.section, /#footer-firstcolumn -->
+      <?php endif; ?>
+
+      <?php if ($page['footer_secondcolumn']): ?>
+        <div id="footer-secondcolumn" class="region sitemap"><div class="section">
+          <?php print render($page['footer_secondcolumn']); ?>
+        </div></div> <!-- /.section, /#footer-secondcolumn -->
+      <?php endif; ?>
+
+      <?php if ($page['footer_thirdcolumn']): ?>
+        <div id="footer-thirdcolumn" class="region sitemap"><div class="section">
+          <?php print render($page['footer_thirdcolumn']); ?>
+        </div></div> <!-- /.section, /#footer-thirdcolumn -->
+      <?php endif; ?>
+
+      <?php if ($page['footer_fourthcolumn']): ?>
+        <div id="footer-fourthcolumn" class="region sitemap"><div class="section">
+          <?php print render($page['footer_fourthcolumn']); ?>
+        </div></div> <!-- /.section, /#footer-fourthcolumn -->
+      <?php endif; ?>
+
+    </div><!-- /#footer-columns -->
+  <?php endif; ?>
+
+  <?php if ($page['footer'] || $secondary_menu): ?>
+    <div id="footer" class="clearfix">
+      <?php print theme('links__system_secondary_menu', array(
+        'links' => $secondary_menu,
+        'attributes' => array(
+          'id' => 'secondary-menu',
+          'class' => array('links', 'clearfix'),
+        ),
+        'heading' => array(
+          'text' => t('Secondary menu'),
+          'level' => 'h2',
+          'class' => array('element-invisible'),
+        ),
+      )); ?>
+      <?php print render($page['footer']); ?>
+  </div><!-- /#footer -->
+  <?php endif; ?>
 
-</div></div> <!-- /#page, /#page-wrapper -->
+</div></div> <!-- /.section, /#footer-wrapper -->
