//al template php del tema corresponent.
/*add a ember class to the header to give targetability for css enhancements */
function ember_preprocess_html(&$variables) {
$variables['classes_array'][] = 'ember';
if ($variables['user']) {
foreach($variables['user']->roles as $key => $role){
$role_class = 'role-' . str_replace(' ', '-', $role);
$variables['classes_array'][] = $role_class;
}
}
}
function emfasiomgen_preprocess_html(&$vars) {
$body_classes = array($vars['classes_array']);
if ($vars['user']) {
foreach($vars['user']->roles as $key => $role){
$role_class = 'role-' . str_replace(' ', '-', $role);
$vars['attributes_array']['class'][] = $role_class;
}
}
}