toolbar.tpl.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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>