toolbar.tpl.php

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 also

template_preprocess()

template_preprocess_toolbar()

6 string references to the theme hook from toolbar.tpl.php

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

ShortcutTestCase::setUp in drupal/modules/shortcut/shortcut.test
Sets up a Drupal site for running functional and integration tests.
shortcut_page_alter in drupal/modules/shortcut/shortcut.module
Implements hook_page_alter().
toolbar_page_build in drupal/modules/toolbar/toolbar.module
Implements hook_page_build().
toolbar_preprocess_html in drupal/modules/toolbar/toolbar.module
Implements hook_preprocess_html().
toolbar_theme in drupal/modules/toolbar/toolbar.module
Implements hook_theme().

... See full list

File

drupal/modules/toolbar/toolbar.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default template for admin toolbar.
  5. *
  6. * Available variables:
  7. * - $classes: String of classes that can be used to style contextually through
  8. * CSS. It can be manipulated through the variable $classes_array from
  9. * preprocess functions. The default value has the following:
  10. * - toolbar: The current template type, i.e., "theming hook".
  11. * - $toolbar['toolbar_user']: User account / logout links.
  12. * - $toolbar['toolbar_menu']: Top level management menu links.
  13. * - $toolbar['toolbar_drawer']: A place for extended toolbar content.
  14. *
  15. * Other variables:
  16. * - $classes_array: Array of html class attribute values. It is flattened
  17. * into a string within the variable $classes.
  18. *
  19. * @see template_preprocess()
  20. * @see template_preprocess_toolbar()
  21. *
  22. * @ingroup themeable
  23. */
  24. ?>
  25. <div id="toolbar" class="<?php print $classes; ?> clearfix">
  26. <div class="toolbar-menu clearfix">
  27. <?php print render($toolbar['toolbar_home']); ?>
  28. <?php print render($toolbar['toolbar_user']); ?>
  29. <?php print render($toolbar['toolbar_menu']); ?>
  30. <?php if ($toolbar['toolbar_drawer']):?>
  31. <?php print render($toolbar['toolbar_toggle']); ?>
  32. <?php endif; ?>
  33. </div>
  34. <div class="<?php echo $toolbar['toolbar_drawer_classes']; ?>">
  35. <?php print render($toolbar['toolbar_drawer']); ?>
  36. </div>
  37. </div>

Related topics