In my .info file:

stylesheets[screen][] = styles/reset.css
stylesheets[screen][] = styles/960.css
stylesheets[screen][] = styles/core.css
conditional-stylesheets[IE][screen][] = styles/ie.css

In my template.php file:

function mytheme_preprocess_page(&$vars) {

  if ($vars['is_front']) {
    $vars['css']['screen']['theme']['sites/all/themes/mytheme/styles/homepage.css'] = 1;
    $vars['styles'] = drupal_get_css($vars['css']);
  }
  $vars['styles'] .= $vars['conditional_styles'] = variable_get('conditional_styles_' . $GLOBALS['theme'], '');

}

The "conditional_styles" key exists in the $vars array, but $vars['conditional_styles'] is empty. I have cleared the cache. Have I missed something?

Comments

johnalbin’s picture

Status: Active » Postponed (maintainer needs more info)

Have you rebuilt the .info file cache like it says in the README?

*** IMPORTANT ***

Drupal 6 also stores a cache of the data in .info files. If you modify any lines
in your theme's .info file, you MUST refresh Drupal 6's cache by simply visiting
the admin/build/themes page.

johnalbin’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

No feedback. Closing.