summaryrefslogtreecommitdiff
path: root/modules/toolbar/toolbar.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/toolbar/toolbar.tpl.php')
-rw-r--r--modules/toolbar/toolbar.tpl.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/toolbar/toolbar.tpl.php b/modules/toolbar/toolbar.tpl.php
index 64576ceaf..41e7696d2 100644
--- a/modules/toolbar/toolbar.tpl.php
+++ b/modules/toolbar/toolbar.tpl.php
@@ -6,15 +6,23 @@
* Default template for admin toolbar.
*
* Available variables:
+ * - $classes: String of classes that can be used to style contextually through
+ * CSS. It can be manipulated through the variable $classes_array from
+ * preprocess functions. The default value has the following:
+ * - toolbar: The current template type, i.e., "theming hook".
* - $toolbar['toolbar_user']: User account / logout links.
* - $toolbar['toolbar_menu']: Top level management menu links.
* - $toolbar['toolbar_drawer']: A place for extended toolbar content.
*
+ * Other variables:
+ * - $classes_array: Array of html class attribute values. It is flattened
+ * into a string within the variable $classes.
+ *
* @see template_preprocess()
- * @see template_preprocess_admin_toolbar()
+ * @see template_preprocess_toolbar()
*/
?>
-<div id="toolbar" class="clearfix">
+<div id="toolbar" class="<?php print $classes; ?> clearfix">
<div class="toolbar-menu clearfix">
<?php if ($toolbar['toolbar_drawer']):?>
<span class="toggle toggle-active"><?php print t('Open'); ?></span>