summaryrefslogtreecommitdiff
path: root/modules/toolbar
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-27 04:12:39 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-27 04:12:39 +0000
commit0e05035b7104baa80614eefab90b6d90996ca3dc (patch)
treead6180c49c429e48e5d191077aa0b8de0fabb1eb /modules/toolbar
parentca7b56e7351a7fe57d2c1d4c6feef44e2879caf0 (diff)
downloadbrdo-0e05035b7104baa80614eefab90b6d90996ca3dc.tar.gz
brdo-0e05035b7104baa80614eefab90b6d90996ca3dc.tar.bz2
#610204 by effulgentsia, Gábor Hojtsy, sun, Damien Tournoud and ksenzee: API changes to support overlays: lays ground work for implementation.
Diffstat (limited to 'modules/toolbar')
-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>