This came up in the IRC but using the pre-process to add the delta class (if it's available) to the body div would allow for delta specific theming w/o having to add classes to the regions/zones

Thoughts?

Comments

PCateNumbersUSA’s picture

Would like this as well.

Cellar Door’s picture

Add the following to your template.php file to get this function (I'll make a core omega patch for it in a bit)

function YOURTHEMENAME_alpha_preprocess_html(&$vars) {
// Adding in Delta class to body
  if (module_exists('delta') && $deltaname != null){
  	$vars['attributes_array']['class'][] = 'delta-'.$deltaname;
  	}
  else {
 	$vars['attributes_array']['class'][] = 'delta-none';
  }
}
Cellar Door’s picture

My bad - forgot to declare $deltaname :)

function YOURTHEMENAME_alpha_preprocess_html(&$vars) {
// Adding in Delta class to body
  $deltaname = delta_get_current($GLOBALS['theme']);
  if (module_exists('delta') && $deltaname != null){
  	$vars['attributes_array']['class'][] = 'delta-'.$deltaname;
  	}
  else {
 	$vars['attributes_array']['class'][] = 'delta-none';
  }
}
apaderno’s picture

Component: Feature Request » Code
Assigned: himerus » Unassigned
Issue summary: View changes