Closed (fixed)
Project:
Context
Version:
6.x-3.0-alpha1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2009 at 11:09 UTC
Updated:
25 Dec 2009 at 23:46 UTC
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
Comment #1
Jeff Burnz commentedI've decided to re-factor body classes to support any module that adds its own classes. Thanks for the great module guys.