function quickbar_preprocess_html in Quickbar 7
Same name and namespace in other branches
- 7.2 quickbar.module \quickbar_preprocess_html()
Implements hook_preprocess_html().
File
- ./
quickbar.module, line 222
Code
function quickbar_preprocess_html(&$vars) {
if ($return = quickbar_available()) {
$vars['classes_array'][] = 'quickbar-enabled';
// If the toolbar should be sticky add a sticky class to the body.
$settings = variable_get('quickbar_settings_' . $return['rid'], array());
if (!empty($settings['sticky'])) {
$vars['classes_array'][] = 'quickbar-sticky';
}
elseif (!empty($settings['float'])) {
$vars['classes_array'][] = 'quickbar-float';
}
}
}