? .git
? .gitignore
? clean-conditional-styles-1.patch
? template.conditional-styles.inc
Index: clean.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/themes/clean/Attic/clean.info,v
retrieving revision 1.1.2.10.2.2
diff -u -p -r1.1.2.10.2.2 clean.info
--- clean.info	2 Dec 2009 00:31:00 -0000	1.1.2.10.2.2
+++ clean.info	7 May 2010 21:47:36 -0000
@@ -11,9 +11,11 @@ stylesheets[all][] = css/layout.css
 stylesheets[all][] = css/navigation.css
 stylesheets[all][] = css/typography.css
 stylesheets[all][] = css/color.css
+conditional-stylesheets[if lt IE 8][all][] = css/ie-lt8.css
 scripts[] = js/clean.js
 regions[left] = Left sidebar
 regions[right] = Right sidebar
 regions[content] = Content
 regions[header] = Header
 regions[footer] = Footer
+
Index: page.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/themes/clean/page.tpl.php,v
retrieving revision 1.1.2.5.2.14.2.12
diff -u -p -r1.1.2.5.2.14.2.12 page.tpl.php
--- page.tpl.php	1 Mar 2010 13:37:46 -0000	1.1.2.5.2.14.2.12
+++ page.tpl.php	7 May 2010 21:47:36 -0000
@@ -6,7 +6,6 @@
 <head>
   <?php print $head; ?>
   <?php print $styles; ?>
-  <!--[if lt IE 8]><link type="text/css" rel="stylesheet" media="all" href="<?php print $base_theme; ?>css/ie-lt8.css" /><![endif]-->
   <?php print $scripts; ?>
   <title><?php print $head_title; ?></title>
 </head>
Index: template.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/themes/clean/template.php,v
retrieving revision 1.1.2.7.2.17.2.36
diff -u -p -r1.1.2.7.2.17.2.36 template.php
--- template.php	21 Apr 2010 22:28:05 -0000	1.1.2.7.2.17.2.36
+++ template.php	7 May 2010 21:47:37 -0000
@@ -9,13 +9,24 @@ if (theme_get_setting('clean_rebuild_reg
 /**
  * Implementation of hook_theme().
  */
-function clean_theme() {
+function clean_theme(&$existing, $type, $theme, $path) {
+  
+  // Compute the conditional stylesheets.
+  if (!module_exists('conditional_styles')) {
+    include_once $base_path . drupal_get_path('theme', 'clean') . '/template.conditional-styles.inc';
+    // _conditional_styles_theme() only needs to be run once.
+    if ($theme == 'clean') {
+      _conditional_styles_theme($existing, $type, $theme, $path);
+    }
+  }
+  
   return array(
     'fieldset' => array(
       'arguments' => array('element' => array()),
       'template' => 'fieldset',
     ),
   );
+  
 }
 
 /**
@@ -118,6 +129,10 @@ function clean_preprocess_page(&$variabl
   }
 
   $variables['styles'] = drupal_get_css(clean_css_stripped());
+  // Add conditional stylesheets.
+  if (!module_exists('conditional_styles')) {
+    $variables['styles'] .= $variables['conditional_styles'] = variable_get('conditional_styles_' . $GLOBALS['theme'], '');
+  }
 }
 
 function clean_html_attributes(&$variables) {
Index: subthemes/clean_1kb/page.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/themes/clean/subthemes/clean_1kb/Attic/page.tpl.php,v
retrieving revision 1.1.2.3
diff -u -p -r1.1.2.3 page.tpl.php
--- subthemes/clean_1kb/page.tpl.php	22 Apr 2010 13:50:30 -0000	1.1.2.3
+++ subthemes/clean_1kb/page.tpl.php	7 May 2010 21:47:37 -0000
@@ -6,7 +6,6 @@
 <head>
   <?php print $head; ?>
   <?php print $styles; ?>
-  <!--[if lt IE 8]><link type="text/css" rel="stylesheet" media="all" href="<?php print $path; ?>/css/ie-lt8.css" /><![endif]-->
   <?php print $scripts; ?>
   <title><?php print $head_title; ?></title>
 </head>
Index: subthemes/clean_960gs/page.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/themes/clean/subthemes/clean_960gs/Attic/page.tpl.php,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 page.tpl.php
--- subthemes/clean_960gs/page.tpl.php	22 Apr 2010 13:50:30 -0000	1.1.2.4
+++ subthemes/clean_960gs/page.tpl.php	7 May 2010 21:47:37 -0000
@@ -6,7 +6,6 @@
 <head>
   <?php print $head; ?>
   <?php print $styles; ?>
-  <!--[if lt IE 8]><link type="text/css" rel="stylesheet" media="all" href="<?php print $path; ?>/css/ie-lt8.css" /><![endif]-->
   <?php print $scripts; ?>
   <title><?php print $head_title; ?></title>
 </head>
Index: subthemes/clean_liquid/page.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/themes/clean/subthemes/clean_liquid/Attic/page.tpl.php,v
retrieving revision 1.1.2.1.2.6
diff -u -p -r1.1.2.1.2.6 page.tpl.php
--- subthemes/clean_liquid/page.tpl.php	22 Apr 2010 13:50:30 -0000	1.1.2.1.2.6
+++ subthemes/clean_liquid/page.tpl.php	7 May 2010 21:47:37 -0000
@@ -6,7 +6,6 @@
 <head>
   <?php print $head; ?>
   <?php print $styles; ?>
-  <!--[if lt IE 8]><link type="text/css" rel="stylesheet" media="all" href="<?php print $path; ?>/css/ie-lt8.css" /><![endif]-->
   <?php print $scripts; ?>
   <title><?php print $head_title; ?></title>
 </head>
