function theme_environment_indicator_indicator_bar in Environment Indicator 8.2
Same name and namespace in other branches
- 7.2 environment_indicator.theme.inc \theme_environment_indicator_indicator_bar()
Theme function for the indicator bar.
1 theme call to theme_environment_indicator_indicator_bar()
- environment_indicator_attach_indicator in ./
environment_indicator.module - Helper function to attach the indicator to the page.
File
- ./
environment_indicator.theme.inc, line 48 - Theme implementation file.
Code
function theme_environment_indicator_indicator_bar($variables) {
$info = $variables['info'];
$output = array(
'#type' => 'container',
'#attributes' => array(
'class' => array(
drupal_html_class('environment-indicator-' . $info['machine']),
'position-' . $info['position'],
'fixed-' . ($info['fixed'] ? 'yes' : 'no'),
),
'id' => 'environment-indicator',
'style' => 'background-color: ' . $info['color'],
),
'name' => array(
'#theme' => 'environment_indicator_indicator_name',
'#name' => $info,
'#prefix' => '<div class="gradient-bar">',
'#suffix' => '</div>',
),
);
return drupal_render($output);
}