Index: template.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/themes/html5_base/template.php,v
retrieving revision 1.5
diff -u -p -r1.5 template.php
--- template.php	16 Aug 2010 04:07:59 -0000	1.5
+++ template.php	18 Aug 2010 16:47:49 -0000
@@ -129,6 +129,16 @@ function html5_base_preprocess_page(&$va
       $vars['template_files'][] = "page-node-" . $vars['node']->nid;
     }
   $vars['body_classes'] = implode(' ', $body_classes); // Concatenate with spaces
+  
+  // 
+  // Append Internet Explorer specific conditional comments
+  $ie_conditionals = array(
+    // add Remy Sharpe's HTML5 Shiv script for IE 8 and below
+    'lt IE 9' => array(
+      '<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>',
+    ),
+  );
+  $vars['ie_conditionals'] = html5_base_ie_conditionals($ie_conditionals);
 }
 
 /*
@@ -445,3 +455,22 @@ function html5_base_breadcrumb($breadcru
   // Otherwise, return an empty string.
   return '';
 }
+
+
+/**
+ * Returns a conditional statement for Internet Explorer browsers.
+ *
+ * @return
+ * @param $conditions Array
+ */
+function html5_base_ie_conditionals($conditions) {
+  $output = '';
+  foreach($conditions as $condition => $actions){
+    $output .= '<!--[if ' . $condition . ']>' . "\n";
+    foreach($actions as $action) {
+      $output .= $action . "\n";
+    }
+    $output .= '<![endif]-->' . "\n";
+  }
+  return $output;
+}
\ No newline at end of file
Index: templates/page.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/themes/html5_base/templates/page.tpl.php,v
retrieving revision 1.5
diff -u -p -r1.5 page.tpl.php
--- templates/page.tpl.php	16 Aug 2010 02:23:22 -0000	1.5
+++ templates/page.tpl.php	18 Aug 2010 16:47:49 -0000
@@ -5,8 +5,8 @@
   <title><?php print $head_title; ?></title>
   <?php print $head; ?>
   <?php print $styles; ?>
-  <?php print $scripts; ?>    
-  <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+  <?php print $scripts; ?>  
+  <?php print $ie_conditionals; ?>
 </head>
 
   <body class="<?php print $body_classes; ?>">
