In my base theme I don't use Drupals body_classes at all, mainly because I dont want half the crap it pushes out and for the sake of simplicity I define all my own - this is a problem for me with context 3.

In 6.x-2 beta7 I could just do this to get the classes (in preprocess_page)

if (module_exists('context')) {
  foreach (context_active_contexts() as $context) {
    if (!empty($context->theme_section['class'])) {
     $classes[] = $context->theme_section['class'];
    }
  }
}

But in 3 things are looking way different and I'm not sure how I can get to the classes - can I at all? If not then that,s a deal breaker for me and I will refactor my base theme, this module is too important for me not to support ;)

Comments

Jeff Burnz’s picture

Status: Active » Closed (fixed)

I've decided to re-factor body classes to support any module that adds its own classes. Thanks for the great module guys.